News:

Looking for documentation? Take a look on our wiki

Main Menu

Price dependent on some variables

Started by kamil_w, July 26, 2012, 10:54:17 AM

Previous topic - Next topic

kamil_w

Is there a possibility to set price dependent on some variables?

For example - variables for mp3 player:
quantity (10, 20, 50, 100),
color (white, red, black),
memory (4gb, 8gb, 16gb)

... and price for product:
10 x white, 4gb = $100
10 x white, 8gb = $160
20 x white, 4gb = $180
20 x white, 8gb = $270

Other worlds I want to make such a form as in the site below:
http://print4all.pl/products-teczki_ofertowe-32.html

So it should goes like that:
IF variable1=param1_1 AND variable2=param2_1 AND variable3=param3_1 THEN price=cost1
IF variable1=param1_1 AND variable2=param2_1 AND variable3=param3_2 THEN price=cost2
IF variable1=param1_1 AND variable2=param2_2 AND variable3=param3_2 THEN price=cost3
IF variable1=param1_2 AND variable2=param2_2 AND variable3=param3_2 THEN price=cost4
IF variable1=param1_1 AND variable2=param2_1 AND variable3=param3_3 THEN price=cost5
IF variable1=param1_1 AND variable2=param2_3 AND variable3=param3_3 THEN price=cost6
IF variable1=param1_3 AND variable2=param2_3 AND variable3=param3_3 THEN price=cost7
IF variable1=param1_2 AND variable2=param2_2 AND variable3=param3_3 THEN price=cost8
IF variable1=param1_2 AND variable2=param2_3 AND variable3=param3_3 THEN price=cost9
IF variable1=param1_2 AND variable2=param2_2 AND variable3=param3_1 THEN price=cost10
IF variable1=param1_2 AND variable2=param2_1 AND variable3=param3_1 THEN price=cost11
IF variable1=param1_3 AND variable2=param2_3 AND variable3=param3_1 THEN price=cost12
etc...



Is it possible?