View Single Post
  #34  
Old 08-22-2019, 10:38 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: altered carts OnSale mod for php 7+

could I do something like this so the badge shows up for NON members but is hidden when a customer has a membership or will that not work? (not sure if my additional code is correct)

Code:
{if $active_modules.Special_Offers ne "" and $product.have_offers and $_userinfo.membership eq ""} {include file="modules/Special_Offers/customer/product_offer_thumb.tpl"} {/if}
I does remove it completely when I comment out the line like you said but I thought it would be nice to show to customers it is meant for and hide it from everyone else.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote