Hi there!
Need to show all product's parents by text like "Parent1/Parent2/Parent3" on the product page. It's like breadcrubms but little different and use for another goals.
But don't know how to do it. Help, please!
Help please!
https://www.freelancer.com
Or try a search..... eg http://forum.virtuemart.net/index.php?topic=135879.msg475444#msg475444
Quote from: powercoders on November 14, 2020, 02:25:50 AM
Need to show all product's parents by text like "Parent1/Parent2/Parent3" on the product page
Hi, maybe something like this? ;)
$cat_model = VmModel::getModel('category');
$parent_cat = $cat_model->getCategory($this->product->virtuemart_category_id);
$parent_cats = $parent_cat->parents;
// echo '<pre>'; print_r($parent_cats); echo '</pre>';