Questions tagged [coupon]

For questions related to performing discounts on eCommerce transactions. (Please do not use this tag for questions regarding financial calculations regarding bond coupons and interest rates.)

This tag refers to performing discounts on eCommerce transactions (i.e. taking coupons in the applications OpenCart, Magneto, or WooCommerce applications.) Besides the logic to implement the discounts, this tag could also refer to generation of unique or batch coupon codes.

For financial calculations regarding bond coupons and interest rates, please use a different suitable tag, such as:

499 questions
1
vote
1 answer

Detect when a "remove" coupon button is clicked in Woocommerce

How can I detect that Remove button/link clicked to remove the coupon from the checkout page in woocommerce.
Sushil
  • 39
  • 9
1
vote
1 answer

Hide cart coupon field for specific products category in Woocommerce 3

function hidding_coupon_field_on_cart_for_a_category($enabled) { // Set your special category name, slug or ID here: $special_cat = 'clothing'; $bool = false; foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { …
Lars Hanck
  • 13
  • 2
1
vote
1 answer

Change Flat rate shipping method cost if a specific coupon is applied in Woocommerce

I have a specific coupon which is special50. When someone applied this coupon on the store then a new shipping method need to add. When current shipping method price is $50 (flat rate) and after applying coupon new shipping method, pricing will be…
Sonjoy Datta
  • 1,188
  • 2
  • 13
  • 21
1
vote
1 answer

WooCommerce coupon code wildcard

I have my cart set with a minimum order of $15. However, I want to create some coupon codes that will bypass the minimum order requirement. My code below allows me to name a specific coupon. How do I use a wildcard so that I don't have to list…
Cindy
  • 23
  • 3
1
vote
1 answer

Restrict use of coupons on weekends

I'm using woocommerce booking and I need generate coupon restriction for the bookings. All my bookings have a duration of one hour and the customers can use coupons to reduce the cost of the booking but I need restrict the use of this coupons based…
1
vote
1 answer

Mandatory Coupon code for specific Woocommerce product category items

In Woocommerce, I'm trying to make a Coupon Code mandatory for all Products from a specific Category. The following code (placed in functions.php) works well, but makes Coupon Codes mandatory for all Products regardless of the product…
Crundi
  • 25
  • 5
1
vote
1 answer

Alter specifically coupon validation minimum amount filter hook in Woocommerce

I want to Alter function validate_coupon_minimum_amount() adding a condition that if a user use coupon "refresh18", check to see if subtotal in cart for a product category is greater than the coupon's minimum amount. How could I do that? Here is…
M.Tian
  • 35
  • 6
1
vote
1 answer

How to generate multiple prestashop discounts/coupons?

I want to generate 100+ coupons for my prestashop 1.7 site, but i don't know how to to do it. Looks like there is now such possibility in backoffice. Thanks for help)
user2955324
  • 73
  • 1
  • 6
1
vote
0 answers

Add coupon after order creation in payment pending status in Woocommerce

I am creating order programmatically with order status Pending Payment in Woocommerce ver. 3.2.6. Can I add coupon in existing order (Pending Payment atatus) programmatically?
1
vote
0 answers

Add coupon expiry date custom variable to the WooCommerce Follow-up Emails

In my Woocommerce website I am using Follow-up Emails plugin for sending email to customer. On that Follow-up Emails I send coupon code to customer by using {coupon_code} email variables. Now I would like to create a new custom variable for coupon…
sarun
  • 298
  • 5
  • 23
1
vote
1 answer

WooCommerce - Buy one Get one Free

I have created a code in WooCommerce Coupon Codes called "2FOR1WOW" and added this code to functions.php but it's not working. The ticket gets applied and a confirmation message says it's ok but the total is not reduced. Any help would be greatly…
Melkiades
  • 11
  • 1
  • 3
1
vote
1 answer

Send an email notification when a specific coupon code is applied in WooCommerce

I'm looking to setup an affiliate program, starting with the email notifications like when someone applies the coupon code of a an affiliate user. For example: Coupon code "Bob" applied by a customer. An email notification is sent to…
Joe Adroit
  • 25
  • 1
  • 6
1
vote
0 answers

woocommerce coupon in cart page like the one in checkout

I'm trying to copy the coupon form from the checkout page to the cart page. In the checkout page is the coupon field displayed as a hidden element, that it's shown after a click on a url. I've managed to move the field with, add_action(…
1
vote
1 answer

Mandatory coupon for specific product categories avoiding checkout in Woocommerce

I'm looking to create "invitation codes" using woocommerce smart coupons. To do so I want specific products to REQUIRE a coupon code at cart/ checkout. I have seen ways to to do this however they affect all products, not just the ones I want. I'm…
jimmyjames
  • 55
  • 1
  • 9
1
vote
0 answers

Magento Shopping Cart Price Rule's Are Not Working

Magento Shopping Cart Price Rule's Are Not Working. I Have Add Coupon Code But It Not Reflect Any Output. Please Share Any Documents For The Same.