-- HikaShop version -- : 2.3.3
-- Joomla version -- : 2.5.27
-- PHP version -- : 5.4.33
Hi,
I have a problem with the incorrect display of sub categories in the hikashop module if a product has characteristics and the variants are out of stock.
Relevant setting in the configuration: only direct sub categories are shown
If the product without characteristics is out of stock the display is correct: the product page shows the text Out of stock and only direct sub categories show in the module.
However if a product has characteristics and all variants are out of stock, the display of sub categories is incorrect: now ALL sub categories are shown in the module.
The error notice in the Javascript console in Chrome is:
Uncaught TypeError: Cannot read property 'type' of null
This refers to:
function hikashopUpdateVariant(obj){
if(obj.type=='radio')
Apparently the problem is caused by the fact that there's no characteristic to select.
Is there a way to correct this incorrect behaviour?
Thanks,
Udo