Post by BrandonBerner » Thu Aug 20, 2015 11:51 am

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!

Active Member

Posts

Joined
Sat Dec 15, 2012 4:49 am

Post by imdevlper18 » Thu Aug 20, 2015 1:40 pm

it would be great to mention your url. so test can be made.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by BrandonBerner » Thu Aug 20, 2015 3:44 pm

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.

Active Member

Posts

Joined
Sat Dec 15, 2012 4:49 am

Post by imdevlper18 » Thu Aug 20, 2015 5:06 pm

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.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by Kenberne1965 » Fri Aug 21, 2015 6:23 am

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:

Freelance Opencart 1.5.x and 2.x Developer - Available For Hire
Latest Opencart 2 Project --> http://www.falcon-rangecookers.co.uk


User avatar
Active Member

Posts

Joined
Wed Apr 22, 2015 9:37 pm
Location - Doncaster, UK

Post by BrandonBerner » Fri Aug 21, 2015 8:36 am

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 :)

Active Member

Posts

Joined
Sat Dec 15, 2012 4:49 am

Post by imdevlper18 » Fri Aug 21, 2015 1:05 pm

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

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm
Who is online

Users browsing this forum: No registered users and 3 guests