VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: bartpg on May 26, 2015, 15:57:23 PM

Title: Multi variants - Child product without price
Post by: bartpg on May 26, 2015, 15:57:23 PM
VirtueMart 3.0.9, Joomla 3.4.1, PHP 5.5.9

I want to be able to show a parent product including price in the category, being the default product. One of the childs should show a button to contact the seller for an actual price. Unfortunately having both of these things at the same time proves a little difficult.

Situation A)

Parent - 10 euro Shows 10 euro as default price in category view
- Child 1 / 11 euro
- Child 2 / 12 euro
- Child 3 / Blank (to contact seller) Does not work due to inheriting 10 euro price of parent

Situation B)

Parent - Blank Does not show any price in category view
- Child 1 / 10 euro
- Child 2 / 11 euro
- Child 3 / 12 euro
- Child 4 / Blank (to contact seller) Works due to inheriting blank price of parent

This last situation unfortunately doesn't show the price of the default product in the category-view. The only alternative I see now, is to make a separate "contact buyer"-view, using an alternative prices.php-sublayout. However, this is a little bit messy. Is my thinking too complicated or is there an easier solution?
Title: Re: Multi variants - Child product without price
Post by: balai on May 26, 2015, 17:31:18 PM
I would do that by creating an override of the product details page, not to display the cart button for a product with a specific id.