-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
From the show_default.php view I want ot check if the product has
more than zero related products assigned
more than zero options assigned.
i don't want to show them not load any content module but to activate something in the case it is true there is at least one product as related or as option.
what would be the code to check this?
I tried with this some kind of invention starting from the development guide
$show_related = 0;
$related_productClass = hikashop_get('class.product');
$show_related=$related_productClass->get($product_related);
but is always giving value '1' no matter if there is none or ten products related.
UPDATE:
I found for
options that this code works:
if (!empty ($this->element->options)) { code to execute}
But still don't know how for
related