VM catalog mode showing PRODUCT_UNITS / IN_STOCK

25 April, 2016
GK User
Mon Aug 29, 2016 5:14 pm
Hi,
The VM was setup using "Use only as catalogue = True".
Product pages show COM_VIRTUEMART_PRODUCT_UNITS_ IN_BOX and TPL_GK_LANG_IN_STOCK apparently at addtocart-area.
Is correct show "stock Quant" on Catalog mode ?
I attached a sample of product page.
We appreciate your opinion !
Best Regards.
Paulo
User avatar
Fresh Boarder

teitbite
Thu Sep 01, 2016 12:17 pm
Hi

I'm having problems to see what is on screenshot. It's very small.

From what I know You can select which informations should be visible in VM configuration. So I believe it's up to You what to show in catalog version.
User avatar
Moderator

GK User
Thu Sep 22, 2016 3:37 pm
Hi I don't know if it is too late but I think I can help you, I had the same problem.

I made a modification in default.php (templates/gk_box/html/com_virtuemart/productdetails

In line 250 aprox I've include this line:
<?php if ($this->product->product_in_stock == 0) { ?>
<div>Stock available</div>
<?php }?>
That means that when you create a product and leave the stock in 0 your website will show "Stock Available", you can put there any message you want.
It's a solution, maybe not the best solution but the best i could find for my problem :)
User avatar
Fresh Boarder

teitbite
Sun Sep 25, 2016 1:40 pm
Hi

Thank You for help @DominioDePunctum, that's probably best solution in ths case. templates/gk_box/html/com_virtuemart/productdetails/default.php is an override already, so it's a place where all the change should be done.
User avatar
Moderator


cron