Doesn't appear to have worked
$related = JRequest::getInt('related_product',0);
if(!empty($related)){
$class = hikashop::get('class.product');
$prod = $class->get($class);
if(!empty($prod)){
$prod->alias = JFilterOutput::stringURLSafe($prod->product_name);
$pathway->addItem($prod->product_name,hikashop::completeLink('product&task=show&cid='.(int)$prod->product_id.'&name='.$prod->alias.'&category_pathway='.$category_pathway.$url_itemid));
}
}
$pathway->addItem($product_name,hikashop::completeLink('product&task=show&cid='.(int)$element->product_id.'&name='.$element->alias.'&category_pathway='.$category_pathway.$url_itemid));
}
I also tried removing the last line as it appears to be replaced by the last line of the new code, but that didn't work either.