Questions tagged [discount]
405 questions
2
votes
1 answer
OpenCart - Display price after Discount
I have been playing around with the Default Template and trying to change some of it's features. On my product page (catalog/view/theme/mytheme/template/product/product.tpl), I want to display the price after the discount has been applied, depending…

davewoodhall
- 998
- 3
- 18
- 43
2
votes
1 answer
How to set Grandtotal / BaseGrandTotal with Observer?
Config.xml
discount/observer
discountMethod
…

Josua Marcel C
- 3,122
- 6
- 45
- 87
2
votes
1 answer
Magento Subtotal/VAT error with discount code applied - PayPal wrong breakdown of payment
I am desperately hoping someone is able to assist with this error that seems to be occurring with our magento (version 1.6.2.0) checkout and applying a discount code. It isn't the easiest to explain so I have attached an…

user994319
- 253
- 1
- 7
- 22
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
1 answer
Magento discount calcuation 1p off
I have setup a shopping cart price rule of 10%. If I add a product value 33.95 in the cart and apply that rule, it shows discount of 3.40 which is suppose to be 3.39. I am assuming its rounding up to 2 digit and may be needs changing to 3 digit (I'm…

Hum
- 531
- 2
- 12
- 30
1
vote
1 answer
Product page custom checkbox enable a percentage discount on WooCommerce cart subtotal
The goal is simple, add a checkbox to the WooCommerce Product Page. If the user checks the checkbox, a 5% discount is applied on cart subtotal.
I have checked and doubled checked the code like ten times, I just cannot figure out why it gives me the…

Learning WooStoreFront
- 113
- 6
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
Custom WooCommerce checkout fields interactions adding discounts
I need to add three checkout fields in WooCommerce checkout:
A checkbox labelled "I'm already a member". Checking this will display a field below the checkbox where the person must fill in their member number, which is a 6 digit number. When the…

Inger
- 13
- 5
1
vote
1 answer
Discount rules in WooCommerce excluding categories with user roles conditions
I use this code which gives customers a discount based in speific amount ranges that generates discount of 2% 4% 6% for regular buyers and 3% 5% 7% for customers with the role "vip".
The code must also exclude the categories I added.
If a customer…

Boggie
- 75
- 4
1
vote
2 answers
Discount for specific shipping methods in WooCommerce checkout
I like to give a discount on some Local Pickup shipping methods. With the code below I get a discount on all shipping methods (including also Flat Rate and Free Shipping).
But I would like this discount to be applied only on some specific Local…

Mike de Geus
- 13
- 2
1
vote
0 answers
How to retrieve the product variant ID that a specific discount code applies to
How can I retrieve the product variant ID that a specific discount code applies to using Shopify GraphQL?
This is my GraphQL query
const query = `query codeDiscountNodeByCode($code: String!) {
codeDiscountNodeByCode(code: $code) {
…

icingonthecake
- 11
- 3
1
vote
1 answer
WooCommerce discount for unlogged users based on if a field has any input add 10% discount
I would like to give 10% discount for companies (B2B) but I don't want to give discount for individual person (B2C). The only way to check if somebody (not logged in) is an individual person or a company is to check the VAT Number field in the…

Antal Szabó
- 11
- 1
1
vote
0 answers
Google Play Console subscription Percentage discount offer
Adding a discount offer to the yearly subscription doesn't seem to be working. The billing dialog still shows the full price.
I have set up a yearly subscription. I want to give new subscribers a 20% discount as a new years special. I have added the…

tcox
- 126
- 2
- 6
1
vote
1 answer
Shipping discount in WooCommerce based on cart subtotal
I want to activate a shipping cost discount based on the cart subtotal.
Examples:
Order subtotal above R$ 350 -> get 50% of Shipping Discount
Order subtotal above R$ 450 -> get 70% of Shipping Discount
Therefore, I use the following…

Felipe SooUl
- 71
- 1
- 7
1
vote
1 answer
How to change Woocommerce variable product min and max prices to reflect discounts
I have implemented this custom code to programmatically discount prices for logged-in users. The discount correctly applies to variation prices, after I choose a variation.
I slightly changed the code to not take into account already discounted…

Stanislav
- 11
- 5