Post by Mustafamarket » Sat Jun 20, 2020 4:22 pm

Hello Dears
I'm constructing a website and faced a technical issue with the total product price, please see the example below:

Product price is 100,000 IQD
Blue color option is - 20,000, so the total should be 80,000.
the black color option price is + 10,000 so the total should be 110,000 IQD.
if some one clicks blue option and black option (means he selected two colors), the total is 90,000!!!!.(it is subtracting 20,000 of blue and adding 10,000 of black)
while it should be 80,000(blue price) + 110,000(black price) = 190,000.
kindly explain how opencart deals with option price calculations, selecting two colors mean two products?
thank you.
Mustafa

Newbie

Posts

Joined
Sat Dec 22, 2018 12:12 am

Post by OSWorX » Sat Jun 20, 2020 5:27 pm

As it says: it's an option.
You have once the product price.
Further you have the options.

Now, when someone selects the defined options, the calculation is correct (base price + option - option = final price).
What you would need is not a + (plus) or - (minus) more a = (equal).

Or when I look at your sample, in such a case you would need 2 different products (1 blue, 1 black).

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by pprmkr » Sat Jun 20, 2020 6:19 pm

Change option type to select or radio. In that case customer can only select one color and add it to basket. Adding other color creates new product in cart ...

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by Mustafamarket » Sat Jun 20, 2020 7:55 pm

Thank you all for assistance,,
now I have better view on how options work.

regards
Mustafa

Newbie

Posts

Joined
Sat Dec 22, 2018 12:12 am
Who is online

Users browsing this forum: No registered users and 19 guests