News:

Support the VirtueMart project and become a member

Main Menu

Message of stock alert in the product view

Started by thefbi, May 07, 2020, 10:47:34 AM

Previous topic - Next topic

thefbi

Hello,
is it a possibility to have the message say the product quantity is updated due to stock but in the product view.

Actually, if i have 5 products in stock and want to order 6, when i add to cart, my cart is updated and i see 5 products in. My cart is always on top of site, so the client can see it without redirect, when in the product details view.
When i go in the cart, if i want to force the number to 6, i have the message from COM_VIRTUEMART_CART_PRODUCT_OUT_OF_QUANTITY.

I want to have this message in the product detail view, so like this the user can know why he cant add 6 products if i have only 5 in sitock.

I use VM 3.6.10 10211
Joomla 3.9.18
Template custom with Themler


jenkinhill

Product stock can be displayed on the Product details page using   <?php echo $this->product->product_in_stock ?>   That may work for you.
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

thefbi

Hello, yes it work.

I will use this to show the stock on the products. Thank you.