VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: JMoVS on September 22, 2013, 14:09:26 PM

Title: product price hidden when out of stock and using product variants
Post by: JMoVS on September 22, 2013, 14:09:26 PM
Hi,

I have a problem with Virtuemart and displaying the product Prices. (Stats and used versions see on the bottom)

I use product variants (one main product and a variant) which are selectable with a custom field of produt variants. The problem is, when one of either of the products is out of stuck, it doesn'T show the product price anymore. It blinks with the correct price when loading the page and then disappears (in HTML, it's set to "0" and "display:none". PricesalesPrice is although correctly shown on the

To reproduce the issue, try the following:

Have a product, and create a child product. Now create/use a custom field with options set to "show base product as variant" and "base product is orderable". Have 0 items remaining, and load the product details page. First, the correct price will appear, then it will just go away (display:none) and even if you force it to show up, it's just "0". Can you reproduce the issue and fix it?


Sorry, forgot versions:
Joomla 2.5.14
PHP 5.3.18
Virtuemart 2.0.22c
Title: Re: product price hidden when out of stock and using product variants
Post by: Maxim Pishnyak on September 26, 2013, 14:00:43 PM
Maybe it's stock misconfiguration in your VM setup?

'c' versions is not latest (check Dev Portal at the top of current page).

Does issue exist on standard template?
Title: Re: product price hidden when out of stock and using product variants
Post by: JMoVS on September 26, 2013, 16:33:26 PM
What do you mean by "stock misconfiguration" in my vm setup? Might be the case but I don't know how I would either realize it nor how to fix it.

Well, as far as I can see, the stable and production version right now is the c version and as this is a live shop, I only want stable production releases.

I'm using the standard template ;-)
Title: Re: product price hidden when out of stock and using product variants
Post by: Maxim Pishnyak on September 26, 2013, 18:11:23 PM
1. What stock related options do you have in your VM config?

2. ANY latest version could be safely tested NOT on the LIVE version of web site.

3. Do you have VM template overrides?
Title: Re: product price hidden when out of stock and using product variants
Post by: JMoVS on October 02, 2013, 13:35:40 PM
Hey thank you for the help, it works again with v2.0.24 and I think it was indeed some custom template I had. Strange. But it works now. ;-)