View Single Post
  #862  
Old 03-05-2015, 06:50 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart - reBOOT - Responsive Template

Quick adjustment to show NEW product labels / ribbons automatically...

(Adheres to Modules > New Arrivals > Show products marked as new for N days)

skin/reboot/custom/product_promo_ribbons.tpl

Replace...

Code:
{if $active_modules.New_Arrivals && ($product.mark_as_new eq "A" || $product.mark_as_new eq "S")}

With...

Code:
{math equation="a - (b * c)" a=$smarty.now b=86400 c=$config.New_Arrivals.show_products_marked_new_n_days assign=limit} {if $active_modules.New_Arrivals && ($product.mark_as_new eq "A" || $product.mark_as_new eq "S") || ($product.add_date lte $smarty.now && $product.add_date gte $limit)}

If you don't want new labels to appear on the homepage, you can use...
Code:
{if !$homepage} {math equation="a - (b * c)" a=$smarty.now b=86400 c=$config.New_Arrivals.show_products_marked_new_n_days assign=limit} {if $active_modules.New_Arrivals && ($product.mark_as_new eq "A" || $product.mark_as_new eq "S") || ($product.add_date lte $smarty.now && $product.add_date gte $limit)} <div class="ribbon-wrapper-left"> <div class="ribbon-left">{$lng.lbl_new|upper}</div> </div> {/if} {/if}
__________________
xcartmods.co.uk
Reply With Quote