News:

AbanteCart v1.4.2 is released.

Main Menu
support

New tooltip not functioning

Started by AzidVurn, April 25, 2014, 04:54:20 AM

Previous topic - Next topic

AzidVurn

<div class="thumbnail">
               <?php if ($product['special']) { ?>
                  <span class="sale tooltip-test"><?php echo $text_sale_label; ?></span>
               <?php } ?>
               <?php if ($product['new_products']) { ?>
                  <span class="new tooltip-test"><?php echo $text_new_label; ?></span>
               <?php } ?>
               <a href="<?php echo $item['info_url'] ?>"><?php echo $item['image'] ?></a>

I tried differnt ID: 'latest', 'latest products', etc... nothing works. What seems to be the problem. What triggers this tooltip to work?

TIA

abantecart

Showing new products icon is a reserved functionality, since 'new_product' flag in NOT set in the controllers.
There is question what to consider new product. This will require creating a setting to identify new products. 
Possibly have this setting for date range or something.

If you want to change it you need to set 'new_product' flag in following controllers:
https://github.com/abantecart/abantecart-src/tree/master/public_html/storefront/controller/pages/product





Forum Rules Code of conduct
AbanteCart.com 2010 -