Questions tagged [discount]

405 questions
1
vote
2 answers

How to get the catalog price rule programmatically in Magento2

Simply I just want to get the catalog price rules applied to products during checkout. I know a lot of solution is out from some sources for Magento 1, an example is this blog…
afro-Nija
  • 185
  • 1
  • 4
  • 17
1
vote
1 answer

Enable a calculated cart discount limit in Woocommerce

I am trying to put together a WooCommerce discount without the use of coupons and all is working except for the "limit" function. Each new customer will receive a 20% (first time shoppers) on their purchase but that 20% cannot and should not exceed…
user9725110
1
vote
0 answers

How to offer discount in auto renewable subscription

Hi Apart from introductory discount is there some way by which we can offer discount to users? Example : Say he has cancelled the subscription and his subscription is about to expire then offer him 45% discount on prices? Solution : We can create…
user3519594
  • 387
  • 1
  • 11
1
vote
1 answer

Percentage discount only on not in-sale items subtotal in Woocommerce

There is an excellent answer for discount based on not-in-sale items count but If there is one item-in-sale in the list it's not working for all other not-in-sale items... My question is: How can I make discount only to the "items not in sale" when…
Arie B
  • 71
  • 1
  • 1
  • 7
1
vote
1 answer

Cart discount for product that cost less in Woocommerce

How can I apply a discount in products cart for product that costs less? For example: I have two product in cart: one cost 150$ and one 200$. I would like to apply a 10 percent discount only for product that cost less, in this case the first one. I…
marco
  • 13
  • 2
1
vote
1 answer

WooCommerce Points and Rewards and discount rounds up

I am using WooCommerce Points and Rewards plugin. The issue I have is when applying points to cart, it is rounding up to the nearest integer. I would like for it to apply in cents. For example: 10 points = 1 dollar. If customer has 11 points so the…
RobinHood
  • 23
  • 5
1
vote
0 answers

WooCommerce Cart Quantity Base Discount dispaly also in mini-cart(.php)

Related to: WooCommerce Cart Quantity Base Discount In WooCommerce, how do I set a cart discount based on the total number of items in the cart? ## Tested and works on WooCommerce 2.6.x and 3.0+ add_action(…
Dom
  • 443
  • 1
  • 5
  • 22
1
vote
2 answers

Get customer's total paid orders sum in Woocommerce 3

For example, if customers previous shopping record is more than 50k then he gets 50% discount. Here is my code, which is used to retrieve the customer's current order price, but I want to retrieve the total order price: add_action(…
1
vote
1 answer

Get a dynamic calculated fee based on postcode input in Woocommerce

I trying to pass a variable in woocommerce_cart_calculate_fees hook, but this code doesn't work. When I try to pass static value within a variable it works. Here is my code: add_action('woocommerce_cart_calculate_fees' , 'add_custom_fees', 20,…
rafiq islam
  • 21
  • 1
  • 7
1
vote
2 answers

Paypal discount code with buy now button

I've created a paypal buy now button and integrated it successfully. When testing I notice that once I reach the paypal site there's an option to redeem a "voucher, reward or other discount". How do I create the voucher/discount codes? The…
opsb
  • 29,325
  • 19
  • 89
  • 99
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
1 answer

Adding a custom cart negative fee tax issue in woocommerce

I have a shipping discount in my woocommerce site, I would like to show it on cart page and checkout page, for that I used add_fee() method. WC()->cart->add_fee( 'Shipping Discount', -20, false ); It subtract 20 from total amount, but when I go to…
1
vote
1 answer

Open cart bulk discount

I want to add a flat discount on my opencart based site Help me how to add this discount? i tried to search extensions but i can't find a free extension to do that any body help Bulk discount on all products.
R.Haider
  • 11
  • 4
1
vote
1 answer

In OpenCart, how to make customers get a discount if choose a specific payment method?

In OpenCart, how do you make customers receive a discount if they chose "western union" payment? The desired effect is that the total would auto-change, once the customer clicks to select "western union" payment.
bestshop24h
  • 111
  • 2
  • 8
1
vote
1 answer

Custom discount for every NTH item in the cart

I came here from this question here looking to find a solution for my WooCommerce site. I am looking for a way to get a discount in my cart only for even number of items in the cart. For example: If there's only 1 item in the cart: Full Price 2…
Simon
  • 1,314
  • 4
  • 14
  • 26