News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to create linked custom fields for length and height?

Started by wonderland, March 17, 2015, 13:33:47 PM

Previous topic - Next topic

wonderland

Hello,

I browsed through virtue mart's demo site but I couldn't find how to do this, let me explain what I want to achieve with an example.

I have a product which has 2 width options - 2800mm and 4200mm
And 8 height options
But height price is dependent on selected width, If I select width 2800mm I would need one set of prices for height options, but when I select width 4200mm I would need a completely different set of prices for height options.

Table to illustrate this:
Width 2800 mm
h2500 = 111.80
h2700= 111.80 + 6.46 = 118.26
h2900 = 111.80 + 12.92= 124.72
h3100 = 111.80 + 19.38 = 131.18
h3300 = 111.80 + 25.84 = 137.64
h3500 = 111.80 + 32.30 = 144.10
h3700 = 111.80 + 38.76 = 150.56
h3900 = 111.80 + 45.22 = 157.02

Width 4200mm
h2500 = 168.01
h2700 = 168.01 + 9.72 = 177.73
h2900 = 168.01 +19.44 = 187.45
h3100 = 168.01 + 29.16 = 197.17
h3300 = 168.01 + 38.88 = 206.89
h3500 = 168.01 + 48.60 = 216.61
h3700 = 168.01 + 58.32 = 226.33
h3900 = 168.01 + 68.06 = 236.07

I'm really stuck at this.

Edit: been trying to find a solution for this all day, could you at least let me know is something like this even possible?

wonderland

#1
I think I have found a solution on how to do this, but it doesn't seem very good solution. I can create a child product for each size combination and then use multi variant custom field, but that means that I will need to create around 16 child products for this product alone.

Also there is another problem with this approach. I also need to create color option with product image that changes when different color is selected. Child product is a good solution for this, but what to if I'm already using child products for all the size combinations mentioned above?

Is there a way to change product image based on color option, without using child products?

I'm using Joomla 3.3.6 and VM 3.0.6