Product availability icon not showing

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Feb 05, 2016 11:56 am
Reply with quote
Report this post
Hi,
is there a way to display an availability icon in a product? For example I have enabled the icon that product is available within 24h or 3-4 days but nothing is displayed.

Thank you
User avatar
Fresh Boarder

teitbite
Wed Feb 10, 2016 11:19 am
Reply with quote
Report this post
Hi

Please tell me the url to example page where You want this icon. Also make sure You are using the latest version of template.
User avatar
Moderator

teitbite
Tue Mar 08, 2016 3:30 pm
Reply with quote
Report this post
Hi

I've just found Your access. Sorry, I must have mark it as seen by accident and just came across it again. I think it's not showing because of configuration.

The code to show this icon is there:

Code: Select all
               <?php if ( VmConfig::get ('display_stock', 1)) : ?>
               <div class="stockLavel"> <span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span> <span class="stock-level"><?php echo JText::_('COM_VIRTUEMART_STOCK_LEVEL_DISPLAY_TITLE_TIP') ?></span> </div>
               <?php endif; ?>


but "display_stock" must apparently be set to 0. When I look at it in default template than it is not visible as well. You may need to look into VM documentation to learn where to enable it. I'm afraid I'm not VM expert to help with this problem.
User avatar
Moderator


cron