Author Topic: VM 4.0.6 Product details, check if product has childs  (Read 462 times)

razor7

  • Jr. Member
  • **
  • Posts: 365
    • MGSCreativa - Professional VM!
VM 4.0.6 Product details, check if product has childs
« 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!
MGS Creativa - VirtueMart Payment Plugin Experts
http://www.mgscreativa.com

Take a look at our downloads section for VirtueMart payment plugins and mouch more!
http://www.mgscreativa.com/en/online-store

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4663
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: VM 4.0.6 Product details, check if product has childs
« Reply #1 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