Questions tagged [discount]

405 questions
2
votes
1 answer

Progressive percent discount based on cart amount

I am trying to make a simple discount code for WooCommerce that gives you a percent discount before buying. Lets say that if you add products worth $100 you get 2% discount and if you add products worth $250 you get 4%, etc. The only thing I found…
Florina Adriana
  • 141
  • 1
  • 8
2
votes
1 answer

Applying to cart a discount of 20% limited to a max amount

I Would like in woocommerce cart, that customers will get a 20% discount, but I want to limit the discounted amount to $500 for example. Is that possible in WooCommerce? Thanks.
2
votes
2 answers

OOP PHP price calculator

Code returns undefined variable, I think something is wrong with the function I wrote, it was supposed to divide $value and $splitfee class Product { public $name; public $value; public $price; public $splitfee; function split()…
2
votes
1 answer

Discount for Certain Category Based on Total Number of Products

In WooCommerce, I have a category of products called Samples, each sample costs $2.99. But I'd like a way to automatically change the cost of the Samples from $2.99 to $1 when 5 Samples are added to cart. So if 4 samples are added to cart, the…
Carlos Daniel
  • 127
  • 2
  • 11
2
votes
0 answers

OpenCart - Static discount percent

I've added some discount percent extension on the opencart 1.5.4.1 and it works, if i add the percent, the product price with discount updates automatically. But if i update the original price of the product, the value with discount doesn't changes…
Alisson
  • 21
  • 2
2
votes
1 answer

Paypal subscription with lower first payment amount, discount, with Rest api?

We are using billing agreement with rest api and we are able to successfully do it on sandbox. Now we have requirement of discount on first month, so if the have an agreement of 100$ for every month and when user applies some referral coupon, he…
Hari
  • 452
  • 1
  • 6
  • 16
2
votes
1 answer

Conditional discount in woocommerce with credit card payment

I am developing an online store based on woocommerce and I have some question. The website will be sponsored by some credit card providers and I want to give the discount to customer who purchases with the credit card that the website is sponsored…
scottymorg
  • 123
  • 1
  • 15
2
votes
1 answer

Get quote id on admin new order create page

I want to add one price match textbox when admin try to create an order. Like this: so when customercare got a customer for price match they just enter amount difference then we give total discount to customer. But I am faceing big problem so when…
Sandeep Singh
  • 161
  • 2
  • 16
2
votes
0 answers

set custom discount amount in create order magento in quote and order

I want to give custom discount to user while creating order from the backend and i have used code from http://pradeepkumarrcs.blogspot.in/2011/12/applying-custom-discount-amount-in.html and it is working fine in applying discount in the Quote but it…
user0509
  • 295
  • 3
  • 18
2
votes
2 answers

Stuck writing a little discounts function

I need to write a function to calculate the fictitious value of some selected items in a website. If The user Selects 1 item there is no discount and the value would be 1. If The user Selects 8 items there would be a little discount and the value…
Egidi
  • 1,736
  • 8
  • 43
  • 69
2
votes
1 answer

Magento: Can I change the discount on an order that is payed for?

We are developing this Magento site where we need to be able to add discounts on a order after the order is payed for (order has a invoice). Is this possible? All is done in the backend. This is our scenario: 1. Backend user adds order. 2. Order is…
jivanrij
  • 157
  • 2
  • 12
2
votes
0 answers

Calculate price using percentage from product field

I'm using drupal commerce module and drive with pricing rule problem. User and product have percentage fields, which are discount values separately. Final discount gathered from sum of this fields. How can I calculate line item price with discount…
Tigran Vardanyan
  • 305
  • 1
  • 3
  • 10
2
votes
1 answer

Magento - Dynamically change discount cost in cart

In my magento store how can i go about changing the discount total in my shopping cart dynamically? I'm able to access and get the current discount with this code: getQuote(); $totals = …
odd_duck
  • 3,941
  • 7
  • 43
  • 85
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