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
2 answers

Limit cart to only use 1 coupon - woocommerce

how can I limit my coupon so a customer won't be able to use multiple coupon on the same checkout? I'm using WP Woocommerce 4.2.2
2
votes
3 answers

Making the coupon field mandatory on WooCommerce

I was wondering if it was possible to make the coupon field mandatory on WooCommerce. I know that this is possible using functions, however this is slightly above my current skill level so I was wondering if you could give me a step-by-step version…
Lukas_T
  • 279
  • 1
  • 4
  • 15
2
votes
1 answer

Magento Tax Calculation with Coupon Code

If no coupon code is added the calculation of the tax and end price is fine. But if i add a coupon code (fixed price 10€ on basket total) the calculation of the tax is not correct and the basket total also. For better understanding what i meed i…
2
votes
3 answers

how to findout a promotion applied from a coupon in atg

We can assign a promotion to a coupon and redeem it in ATG 10.0.x. How can we find out which promotion is applied from which coupon in atg order? Do we have this out of the box or need to do any customization to add this?
Nagarjuna
  • 25
  • 1
  • 6
2
votes
1 answer

Make a coupon so that a certain product is free including the tax

I have created a shopping cart rule in Magento so that I can sell coupon codes and have the product free including shipping. I did this, If an item is FOUND in the cart with ALL of these conditions true: Category is 65 Quantity in cart is 1 Row…
Gr8image
  • 23
  • 3
2
votes
2 answers

Magento shopping cart price rule not working on bundled product

I am trying to apply a shopping cart price rule to a bundled product, but without success. What I want to do is, create a coupon code that applies a discount of 10% on a bundled product with the SKU 'ABC'. So, I set the SKU-attribute to 'Use for…
Giel Berkers
  • 2,852
  • 3
  • 39
  • 58
2
votes
1 answer

How to apply an automatic discount in WooCommerce based on cart total?

Referring to this question How do I programmatically apply a coupon in Woocommerce? I'm looking for something very similar to the final solution in the first post, but I'd like the coupon to be applied if the subtotal is > 99 euros. How do you think…
Vainucleo
  • 29
  • 2
2
votes
1 answer

a coupon (unique code) for a like clicked. what is the best way

The unique code is given to whoever clicked like (only the first time he clicks) in order to make sure that he is not going to have a unique code again. I have to have his fb id in my database, but I read that it is impossible to know the fb id of…
Eli Cohen
  • 131
  • 1
  • 10
2
votes
4 answers

Ecommerce Coupon Codes: Generate many unique coupons that map to one discount?

I'm making my own ecommerce site with php. I want to offer my past customers coupon codes without sending a generic "10%OFF" to everyone that may spread around like wildfire. I would like every code to be unique but map to a known discount value. Is…
Tim
  • 2,147
  • 4
  • 17
  • 20
2
votes
1 answer

django - promo code - coupon code - discount generator

I am attempting to create a promo code for a shopping cart that I already have. I want it to be simple, such as typing 100off to get $100 off, I am getting a error saying "global name 'PromoCode' is not defined". models.py class…
Ryan Tice
  • 731
  • 3
  • 13
  • 16
1
vote
4 answers

Coupons doesn't work in opencart

i am doing an updation in an opencart project.we create coupons that will apply a rebate. it is included in checkout page. we are adding this coupon details like coupon code,discount,exp date etc from admin side.but nothing happens on user side. …
Natasha
  • 980
  • 4
  • 16
  • 33
1
vote
1 answer

Drupal generate commerce coupon programmatically

I am using drupal with drupal commerce, when a user like the page with facebook like button, I generate a coupon and serve it to the client. All is going well atm. except for one thing, how do I generate a new coupon?
Nealv
  • 6,856
  • 8
  • 58
  • 89
1
vote
1 answer

Add a discount on undiscounted items with specfic attribute value in WooCommerce

I am trying to exclude any products where any coupon code is applied, from my custom discount code, on the checkout page. In my code, I am applying a discount to the order when x amount of products are added to the cart, with a specific variation…
Richard
  • 61
  • 7
1
vote
1 answer

Reset coupon usage limit after a specified time in WooCommerce

So basically in WooCommerce, I would like to reset coupon 'usage_limit' and 'usage_limit_per_user', after an hour of interval periodically. But, I'm unable to do that. I tried the following: add_action( 'save_post', $this,'reset_usage_limit'…
1
vote
1 answer

Display a custom checkbox in a specific location in WooCommerce admin single coupon settings

I'm adding a new field in the Usage Restriction tab in the coupon single page of WooCommerce. The newly added field is being displayed at the bottom of the tab. I want it to be displayed before the exclude products field. I'm using the…