Quantity price adjust at product page when quantity is increased.

PremiumBolts
New Member
1 0 0

Looking for options to automatically increased the price/cost of product when customer adjusts quantity on the product page. Example: Item price is $1, customer ups quantity to x2. It still says $1 on the product page, but shows $2 in the checkout/cart. Is there any coding that can be done or maybe an affordable app? I see some that cost $7 a month but have tons of extra features I dont need. Thanks for the assistance!

0 Likes
David_Weru
Trailblazer
153 14 32

Hello, @PremiumBolts 

This is done with javascript and event listeners. Namely "onchange"

When the value is changed, a script runs multiplying the price by the number in the input field.  (Obviously the input value is stripped of all non numeric numbers first) the result replaces the value in the total price for the item.

Lastly, all the totals are gathered and the subtotal is changed.  

If you'd like further assistance implementing this, just let me know.

 

0 Likes
Stu-organics
Tourist
18 0 2

@PremiumBolts 

I need this also on my site.  I want the price to stay product price until the cart quantity reaches 7 then from 7-9 another price, then from 12 and onwards another price.  

I use the debut theme.  Hope you can help me

Stu

0 Likes