Questions tagged [discount]
405 questions
3
votes
1 answer
Discounts via PayPal REST API sample?
PayPal GURUS, i need a help, how to insert discount, i use REST API, may be some one, can show sample of code?Is there any way to send discount amount using PHP REST API?

Vladimir Vodcic
- 31
- 3
3
votes
1 answer
How to Group Discounts in Magento?
Anyone knows how to group the discounts in Magento? How to set the maximum total discount per group? And how to set the maximum total discount?
For example:
Discount Group 1:
a. Early Bird Discount = 10%
b. Member of ABC Organization = 8%
c. Member…

maa_ku
- 111
- 2
- 5
2
votes
0 answers
Magento Shopping Cart Rule not getting simple product attribute values
On a client's store we have configurable products based on a custom weight attribute (4kg, 10kg, 12.5kg etc...). I've set up a discount rule so that the discount only applies to products that are above 4Kg.
However, i realised the discount is also…

erezie
- 141
- 5
2
votes
1 answer
Magento discount errors….one cent off
Of the 500 orders that we’ve had since we are testing , we got 4 or 5 case where the discount is showing like
9.99 instead of 10.00
24.99 instead of 25.00
49.99 instead of 50.00
it appears to be no outstanding correlation in regards to SKU number,…

magento2new
- 517
- 1
- 10
- 38
2
votes
1 answer
Quantity discount of one free product in WooCommerce
I have three products that I want to give as a free item. If anyone adds more quantity from an item I want to give only one quantity as free. That means deducting price of one quantity from the subtotal. For example: the price of a product is 4 and…

Shahadat Hossain
- 69
- 6
2
votes
0 answers
Trying to round last section to two decimal places in terms of discount
I cannot figure out rounding to two decimals for the cost with a discount and without a discount.
print('You are welcome to the AMC Movie Theaters. There are three categories of ticket prices based on age:')
print('1. Children (ages 2-12) costs…

Dylan Brunkow
- 21
- 3
2
votes
0 answers
Flutter: Using the iOS Promotional Offers
I am having some hard time trying to use iOS subscriptions promotional offers.
I was able to retrieve the discounts list from the productDetails after casting it to AppStoreProductDetails.
if (Platform.isIOS) {
List…

Alaa Eddine Cherbib
- 1,062
- 14
- 17
2
votes
1 answer
Using "contain" operator in Shopify Ruby for cart.discount_code - Not working
I have a Shopify ruby code, that basically triggers a price discount at checkout when a valid code is used. I use a script instead of a normal Shopify discount because I need to manually limit the total amount discounted when reached a max basket…

Marcosgarmar
- 21
- 3
2
votes
1 answer
Discount Rules for WooCommerce not working on the checkout page
I use Discount Rules for WooCommerce, everything works fine except on the cart page and in the summary despite the settings.
I am using wordpress 5.5.1. Version 2.3.2 and 2.3.7 of the Discount Rules plug-in work everywhere except the checkout…

david
- 53
- 6
2
votes
1 answer
Calculate discount % on a product in Vanilla JS
Hi what I'm trying to do is calculate the percentage discount on products that are on sale using Vanilla JS. So if a sale price exists '.product-price__discount' then i'd want to work out the percentage off for that product.
So far I'm able to work…

harryJamesJS
- 69
- 8
2
votes
1 answer
Get WooCommerce product regular price and sale price from a WP_Query
I run mass discounts in a specific category successfully (lets say -50% in category id 123) and everything runs smoothly in product grid, product page and orders. (Wordpress 5.7, Woocommerce: 5.1.0, tried various mass-discount plugins)
However the…

WhiteHatMan
- 63
- 1
- 6
2
votes
1 answer
Add the discount total for each item as WooCommerce order item metadata
I need to add in order metadata the amount of the discount for each product individually. For example, There are ten products in the order. The user has applied a coupon discount to the products. The total amount of the discount was calculated (if…

Victor Sokoliuk
- 435
- 4
- 17
2
votes
2 answers
Calculate percentage discount of multiple products on a product listing page
Hi i'm trying to work out the percentage discount of products that are on sale on a product listing page which have a was and now price.
I've got the code working to get the percentage discount, but i can't seem to get it to work dynamically for…

leek1234
- 470
- 2
- 9
2
votes
1 answer
Local Pickup fixed discount by product for specific products in WooCommerce
In our shop, we want to offer our customers the option to pick up products. For products of type X, we want to give our customers a discount of 6€ on each of those products if they choose the pick-up option. To make it even more, complicated if they…

Lucas
- 21
- 1
2
votes
1 answer
Apply a welcome discount to non "on sale" items in WooCommerce
I use this code to set up a "welcome" discount for a registered user:
add_action( 'woocommerce_cart_calculate_fees', 'personal_discount_based', 20, 1 );
function personal_discount_based( $cart ) {
if ( is_admin() && ! defined( 'DOING_AJAX' ) )
…

Victor Sokoliuk
- 435
- 4
- 17