Text only
|
Text with Images
VirtueMart Forum
VirtueMart 2 + 3 + 4
=> Templating & Layouts => Topic started by: razor7 on September 07, 2022, 01:11:01 AM
Title:
VM 4.0.6 Product details, check if product has childs
Post by:
razor7
on
September 07, 2022, 01:11:01 AM
Hi! Is it possible in the product details template to check if the $product has childs?, or if it's a parent product?
Thanks!
Title:
Re: VM 4.0.6 Product details, check if product has childs
Post by:
Studio 42
on
September 07, 2022, 10:16:56 AM
You have $this->product->parent_id is = 0 for a parent
ANd $this->product->has_child
If i remember right
Text only
|
Text with Images