Author Topic: Hide add to cart button from parent items  (Read 224 times)

marvays

  • Jr. Member
  • **
  • Posts: 102
    • http://marvays.cz
  • Skype Name: marvays
Hide add to cart button from parent items
« on: July 27, 2018, 04:20:37 am »
Hi,
When I am in the Product Details page the "Add to Cart" is still visible for the parent items, which means that someone can click on it with no effect (he will get the message 'To add this product into your cart you have to select a product variant on the details page.'). How I can remove the Add to Cart button or disable it until someone selects a child item? I am using joomla 2.5.28 and VirtueMart 2.6.22. Maybe i must use any other Custom Fields For ALL plugin?
Thank you!

marvays

  • Jr. Member
  • **
  • Posts: 102
    • http://marvays.cz
  • Skype Name: marvays
Re: Hide add to cart button from parent items
« Reply #1 on: July 27, 2018, 04:47:45 am »
For a quick solution, I've dealt with sh404sef as an alias on url for now. I redirected the parent's address to the cheapest child.

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3402
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Hide add to cart button from parent items
« Reply #2 on: July 27, 2018, 04:54:30 am »
I have write plugin doing this for you, bt in Vm 3.2, this is perhaps solved. Why you dont update ?

marvays

  • Jr. Member
  • **
  • Posts: 102
    • http://marvays.cz
  • Skype Name: marvays
Re: Hide add to cart button from parent items
« Reply #3 on: July 27, 2018, 05:20:32 am »
I will be update this website after done summer. will be after the season. client sells bows and arrows.
Do you have link to your plugin?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8221
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Hide add to cart button from parent items
« Reply #4 on: July 27, 2018, 11:47:22 am »
In VM3 you can mark parents as non saleable -- so u get a please make a choice dropdown on the parent
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation