Hi,
A strange issue has been encountered, since upgrading to 1.5.8, when adding characteristics to products.
After adding a Characteristic to a product and then going to the 'Manage Variants' screen only one variant is displayed. I've looked at the database hikashop_product table and sure enough there is only one variant listed.
I have created a new test product and a new test Characteristic but the issue persists.
I have a custom modification in administrator/components/com_hikashop/classes/product.php.function updateCharacteristics
$subplu=1;
foreach($keys as $key){
//$product_code = $element->product_code.'_'.implode('_',$key); // original code
$product_code =$element->product_code.str_pad($subplu,2,"0",STR_PAD_LEFT); // generate full plu
$subplu++; // increment sub plu by 1 each time around
That creates product codes xxxx01, xxxx02, xxxx03 etc. I restored the original code but still the issue persists. Interestingly, as you can see from one of the images, the only variant present in the list is what should be the second variant created - I would expect it to be 9998887701, not 9997777702, as this is the first variant created by the code above.
Just to compound the issue, I have had it work as expected, only to use the same characteristic on another product and it not work. It fails far more often than it succeeds, though.
The default size drop down always shows the sizes available for the characteristic, but I guess that may be populated from the characteristic data rather than the product.
Please let me know if further information is required.
Regards,
Martyn.