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
2
votes
1 answer

Set a coupon description in WooCommerce

My site dynamically gives users coupons if they have been a member for a long enough time. When I am generating the coupon I want to assign a description to the coupon. However, I seem to be unable to assign a description by updating the post's…
Marcello B.
  • 4,177
  • 11
  • 45
  • 65
2
votes
1 answer

Which hook to add custom data In New Order Admin Woocommerce email

In WooCommerce, How and where I can apply some code for New Order Email notification, where I should get the Applied Coupon Code display. In the template for New Order Email notification I have @hooked WC_Emails::order_details() that shows the order…
2
votes
2 answers

Auto add a coupon discount only when cart items are from 3 different product categories

IN WooCommerce I would like to add 10% of discount with WooCommerce Coupon feature, only when customer purchases products from 3 different product categories (like Category1, Category2, Category3). How this can be done with WooCommerce Coupon…
sarun
  • 298
  • 5
  • 23
2
votes
1 answer

Magento 2 apply discount on tax issue + FPT

Firstly I am using Magento 2.1.8 version I'm facing an issue with tax total amount and discount from coupon code. Whenever I apply a discount coupon on cart, tax amount stays the same. I have read a few posts saying that Magento 2 option: My…
Macas
  • 560
  • 3
  • 22
2
votes
1 answer

If WooCommerce Cart items are on backorder do not apply coupon

So far this is what I've got: add_filter('woocommerce_coupon_is_valid','coupon_always_valid',99,2); function coupon_always_valid($valid, $coupon){ global $woocommerce; $valid = true; foreach ( $woocommerce->cart->get_cart() as…
Shinosky
  • 89
  • 1
  • 10
2
votes
1 answer

Bypass validate_product_categories() in is_valid function core code for Class WC_Coupon

How to remove $this->validate_product_categories(); in is_valid function in WooCommerce class-wc-coupon.php file without editing plugin? Is there any hook for to do that in functions.php? Here is the source code of class-wc-coupon.php: /** *…
sarun
  • 298
  • 5
  • 23
2
votes
0 answers

Subscriptions - Apply coupon code for the first month only, with no initial payment

I use WooCommerce Subscription plugin What I would Like: For new Customers only, I would like to auto apply a coupon code for the first payment only, on the first subscription. I don't use a signup fee, and our payments are synchronized each 2nd day…
daniyalahmad
  • 3,513
  • 8
  • 29
  • 52
2
votes
2 answers

Woocommerce: Removing PayPal Fees when Coupon makes the total Zero / 0

Hoping i can get a solution for the following undesired behavior: I'm running Wordpress 4.5.3 with Woocommerce 2.6.4. I also have installed WooCommerce Payment Gateway Based Fees 2.2.16. This plugin allows me to add PayPal fees at checkout…
Payges
  • 61
  • 4
2
votes
1 answer

Check if WooCommerce Coupon already exists

I'm editing a packing slip, which is generated when the order is paid and being packed. The packing slip automatically adds a coupon which will be printed on it as well, if a product of a certain category is included. My problem is, that every time…
clukas
  • 40
  • 1
  • 6
2
votes
1 answer

How to track multiple coupons?

Is is possible to track multiple coupons for a single order/transaction in Google Analytics? According to the documentation, the key 'coupon' should be an text... In our store, customers can fill in multiple coupons for a single order. All the…
2
votes
1 answer

How to send coupon code to user when register account in opencart

How can I email a coupon code to new customers when they register on the Opencart website? i have set Customer Login=yes on the coupon section. When customer register it doesn't contain any coupon code.
2
votes
2 answers

Checking if a Stripe Coupon is invalid

I am using the stripe gem for rails and I am trying to check if a user's coupon code is invalid. If the code is invalid, then the user is redirected to users/show.html.haml Here is my code if Stripe::Coupon.retrieve(current_user.coupon_code) == nil …
szier
  • 1,427
  • 3
  • 19
  • 32
2
votes
1 answer

Admin grid columns change after mass action or page switch - Magento 1.9

Problem: My new columns to Coupon grid disappear after AJAX pagination or delete calls. My goal: I want to extend Coupons grid in Shopping Cart Rule edit page by adding some columns. How to: If you create a shopping cart rule and set "Autogenerate…
AzaFromKaza
  • 768
  • 1
  • 10
  • 24
2
votes
0 answers

How can I bulk publish 11,500 coupon codes in WooCommerce Smart Coupons?

We are running a deal with Groupon and have used Smart Coupons plugin with WooCommerce to import 11,500 Groupon codes. I now need to activate them (aka plublish.) However, currently in the WooCommerce interface you can only select and publish 20…
MelodyL
  • 21
  • 1
2
votes
0 answers

How to validate coupon code on wishlist page on magento?

How can we validate coupon code on a custom form on wishlist page? Is there any way to check the validity of the coupon code with ajax functionality? I have used the following code, but it always return valid message: $codeLength =…
chithra
  • 756
  • 7
  • 12