Hello
use of VM 3.2.14 and Joomla! 3.8.6
I would need to add, on the product page, the available quantity of the various products
up to the previous version I used in the override file in /templates/mytemplate/html/com_virtuemart/productdetails/default.php the following code:
echo "Disponibili: "; echo $this->product->product_in_stock;
but now it does not work, then I ask who is more experienced than me where I can insert the code (as long as it is still valid)
thank you and everyone for your attention
Adriano
The available stock is $product->product_in_stock - $product->product_ordered
So this code should display it.
echo "Disponibili: ".($this->product->product_in_stock - $this->product->product_ordered);
Hello
Thank you for your quick answer
I tried your suggestion, but appears, for each article
Disponibilità: 0
also for those items whose availability is greater than 0
regards
Hello
thank you so much!!
now it works (I was wrong to override) :-[
regards