Author Topic: "Generic Child Variant" - Prevent adding Parent to Shopping cart  (Read 31613 times)

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3160
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #60 on: March 20, 2018, 15:41:33 pm »
This https://shop.st42.fr/en/products/shortcodes.htm implement mandatory fields without any hacks or template changes.
See http://pro.st42.fr/en/shortcodes/test-product-no4-in-engb.html for eg.

lausianne

  • Beginner
  • *
  • Posts: 48
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #61 on: March 20, 2018, 19:49:02 pm »
"Rating: 5 based on 1 rating" - This must be good  ;)

Could actually be the solution, plus some extras, thank you!

EDIT: It actually solved my problem. But mine was not about variants (OP), only about custom field options.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3327
  • using Matomo instead of Google Analytics
Re: "Generic Child Variant" - Prevent adding Parent to Shopping cart
« Reply #62 on: March 20, 2018, 21:01:56 pm »
Normally you would add a custom field type 'Generic child variant' to the parent product. Afterwards you can select the option 'Parent orderable' Yes/No in the 'Product Edit' view > 'Custom Fields' tab.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations