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

Linked Or Chained Custom Fields drop Box or multivariant

Started by overseas, February 10, 2016, 11:50:55 AM

Previous topic - Next topic

overseas

Hello,

is it possible to link or chain customfields without explaining all the child variants?

I have optical products with many parameters with lots of values (example : REF0 ray from 10 to 100 by 1, sphere from 0 to 360 by 0.5,... ==> REF01(sphere<180 if ray <50) and REF02 (sphere>180 if ray>50)).
All these "variants" of product have same price.

I have try to use multivariant but it is necessary to explain all possibilities :
ray 10 sph 0
ray 11 sph 0
...
ray 10 sph 0.5
....
...
Impossible to explain all.

Actually, I use pre filtering with a child variant based on a reference indicating a scale of number :
REF01 : sphere<180 and ray <50
REF02 : sphere>180 if ray>50

Inside each reference, I use customfields dropbox to explain all possibilities with "," (easy to import with CSVI). exemple : Ray 10,11,12,13,...,50  Sph 0,0.5,1,1.5,...,180

All child variant corresponds to a subreference on my supplier howerver its not user friendly for the customer.

It will be better if the child variant change automatically with the value chosde in custom fields drop box.

Do you have a better idea to do that? With natif virtuemart, a plugin or a hack

May joomla : 3.4.8
My virtuemart : 3.0.12

AH

QuoteInside each reference, I use customfields dropbox to explain all possibilities with "," (easy to import with CSVI). exemple : Ray 10,11,12,13,...,50  Sph 0,0.5,1,1.5,...,180

If someone wants to develop the code for "conditional" dropbox customfields - I would be happy to review, test and add to the plugin
Regards
A

Joomla 4.4.5
php 8.1