Page 1 of 1

Product Price is not updating when selecting product options

Posted: Thu Aug 20, 2015 11:51 am
by BrandonBerner
OC 2.0.3.1

Ok I am selling Product A for $100

Inside Product A there are different options with different values.

Product Option #1 +$50
Product Option #2 -$20

So without the Options selected, I see the listed price which is $100. Now when i select Product Option #2, it adds $20 to the total making it $120. I have confirmed that the option tab under the product is ( - ) not ( + ). After selecting Option #2, and click checkout, I then see the price of $80 (Which is correct)

So why is the individual product page adding when it should be subtracting?

Help Please :)

THANKS!

Re: Product Price is not updating when selecting product opt

Posted: Thu Aug 20, 2015 1:40 pm
by imdevlper18
it would be great to mention your url. so test can be made.

Re: Product Price is not updating when selecting product opt

Posted: Thu Aug 20, 2015 3:44 pm
by BrandonBerner
imdevlper18 wrote:it would be great to mention your url. so test can be made.
Thanks! Here it is:

http://blazervaporizer.com/index.php?ro ... uct_id=223

Under the Select Blazer Tank Color there is an option called Tinted, and it should remove $20 from the sale price however it shows up as $120 on my end, when it should be $60.

Re: Product Price is not updating when selecting product opt

Posted: Thu Aug 20, 2015 5:06 pm
by imdevlper18
Thank you for the link.
I checked the calculation on your page.
It is not checking the sign. It is assuming that it is always positive so adding amount and showing it to you.
Where as, internally opencart checks the value and then it adds to cart.
So you see correct value on shopping cart and checkout page.
I hope this can help you fix the problem.

Re: Product Price is not updating when selecting product opt

Posted: Fri Aug 21, 2015 6:23 am
by Kenberne1965
I really don't understand why opencart does it this way, it should simply allow a signed number to be entered into the admin section as then opencart could simply add that to the price, if its a negative number it will subtract from the price and if its a positive number it will add it to the price. This is how ive always done it in my PHP projects.

:crazy:

Re: Product Price is not updating when selecting product opt

Posted: Fri Aug 21, 2015 8:36 am
by BrandonBerner
imdevlper18 wrote:Thank you for the link.
I checked the calculation on your page.
It is not checking the sign. It is assuming that it is always positive so adding amount and showing it to you.
Where as, internally opencart checks the value and then it adds to cart.
So you see correct value on shopping cart and checkout page.
I hope this can help you fix the problem.
Is this normal with opencart? or is something corrupted?

Is there a solution to this problem?

Thanks :)

Re: Product Price is not updating when selecting product opt

Posted: Fri Aug 21, 2015 1:05 pm
by imdevlper18
Sir,
This calculation on product page is not present by default.
This is added on your store.

This can be corrected by working and fixing the calculations.
You can contact us at : Contact Us