Hi Nicolas,
Ok, here is the scenario that I am now facing. I am told there are up to 300 custom colours that can be possible to be used.
I have a set of standard colours maybe up to 30. Then a range of custom colours up to 200, then the rest are not so used colours, but are requested every now and then.
How do I present that against a product?
Do I do what I did for the custom field, have a drop down with Yes - Standard Colours, Yes - Regular Custom, Yes - Non Regular Custom and then turn on whichever Characteristics dropdown is selected ?
Meaning I have 3 Characteristics :
Standard Colours [125]
Regular Custom [126]
Non Regular Custom [127]
Depending on the dropdown display that Characteristics
<script>window.Oby.registerAjax("hkAfterUpdateVariant", my_custom_function);
function my_custom_function()
{
if(document.getElementById('hikashop_product_characteristic_57').value == '56') {document.getElementById('hikashop_product_characteristic_125').style.display = 'block';document.getElementById('hikashop_product_characteristic_126').style.display = 'none';document.getElementById('hikashop_product_characteristic_127').style.display = 'none';
else
if(document.getElementById('hikashop_product_characteristic_57').value == '57') {document.getElementById('hikashop_product_characteristic_125').style.display = 'none';document.getElementById('hikashop_product_characteristic_126').style.display = 'block';document.getElementById('hikashop_product_characteristic_127').style.display = 'none';
else
if(document.getElementById('hikashop_product_characteristic_57').value == '58') {document.getElementById('hikashop_product_characteristic_125').style.display = 'none';document.getElementById('hikashop_product_characteristic_126').style.display = 'none';document.getElementById('hikashop_product_characteristic_127').style.display = 'block';
else
{document.getElementById('hikashop_product_characteristic_125').style.display = 'none';
document.getElementById('hikashop_product_characteristic_126').style.display = 'none';
document.getElementById('hikashop_product_characteristic_127').style.display = 'none';}
}
my_custom_function();</script>
Would this work, or am I pushing it?
Regards,
MSF