AbanteCart Community

Shopping Cart Operations => Support => Topic started by: AzidVurn on April 25, 2014, 04:54:20 AM

Title: New tooltip not functioning
Post by: AzidVurn on April 25, 2014, 04:54:20 AM
<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
Title: Re: New tooltip not functioning
Post by: abantecart on April 25, 2014, 10:27:18 AM
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