Russian  English  All projects

Opencart Options Price Calculator



Modules of type related options are not suitable.
It is necessary to set up a recalculation of the price by the cost of options and assign to the goods.
The product has 3 options you need to link them together and add the cost, the module related options did not fit (since it works only with radio and list).
There is a hose with options 2 front, 2 rear, 2 front two rear. (you can choose several and buy) each option has a price = the cost of 1 hose * for the number of hoses and if the user chooses several variations they are fine with each other.
--- The first question is to implement that when choosing several options, the prices of variations add up, and not multiply. (the cost of the option is *2, *5, *4). For example, the cost of one hose is 1000p, 2 front, 2 rear and 2 front and 2 rear are selected. Accordingly, the formula should be: 2 * 1000 2 * 1000p 4 * 1000p = 8000r.

--- And the second question arises this option of wires to link with the other two?:
And there are 2 options: protective spiral (yes = 150p for one hose / no), shrinkage (yes = 100p for one hose / no). Accordingly, if the buyer chooses one of the options (or both), then 150/100 rubles (depending on the option) for each hose should be added to the cost. For example, the cost of one hose is 1000p, 2 front, 2 rear and 2 front and 2 rear are selected. Accordingly, the formula should be: 2 * 1000 2 * 1000p 4 * 1000p = 8000p. Next, shrinkage is chosen, respectively, the formula = 8000p 100 * 2 100 * 2 100 * 4 = 8800p.

--- It is also necessary for all products to add a color option with an addition to the cost of 20%
01.06.2022 18:21



 Answers freelancers