News:

Looking for documentation? Take a look on our wiki

Main Menu

VM as catalogue show products stock

Started by evin63, May 23, 2013, 11:59:21 AM

Previous topic - Next topic

evin63

Hi, I'm using joomla 2.5.11 and VM 2.0.20b
I use VM as catalogue  mode, and my problem is that I want to display the products quantity stock (in product details page)
Now I can see only the price and "ask a question"
Is there a way to display also stock?

I think I have to modify default.php
in mytemplate/html/com_virtuemart/productdetails/default.php

I found about in line 240 this code
<?php // Add To Cart Button
if (!VmConfig::get('use_as_catalog', 0)  ecc...

that I think remove all the cart but also stock.

but I'm not able to modify it to remove cart, but not the stock.

Can anyone please help me?

Thanks
Regards


jenkinhill

Use <?php echo $this->product->product_in_stock ?>    See http://forum.virtuemart.net/index.php?topic=92756.0

Make sure you make overrides from your modified template files.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

evin63

Thank you very much!
Your answer to my question was really helpful for me!
Best Regards