View Single Post
  #10  
Old 08-17-2008, 11:02 AM
 
chiactivate chiactivate is offline
 

Senior Member
  
Join Date: Feb 2007
Location: Canada
Posts: 148
 

Default Re: Display Membership Levels on all Pages

I've found it.

Quote:
In post #4, the question is asked if the coupon box can be hidden based on a membership level, then the poster raises a problem: "What if the customer enters the coupon before they log in?".
You can't hide the coupon box based on a membership level unless the user is logged in.


That's what membership is - the cart recognizes your membership level after it knows who you are.


You can easily hide the coupon box in 4.0.x with this code, so the logged in user can't take advantage of, both, wholesale prices and a discount coupon at the same time:


{if $active_modules.Discount_Coupons ne "" and $userinfo.membership ne "Wholesale"}
{include file="modules/Discount_Coupons/add_coupon.tpl"}
{/if}

thanks for all your advice
__________________
www.ChiMassager.com
X-cart Version 4.44

www.SEOMarketing30days.com
--> Download FREE SEO marketing Ebook (valued $50)
Attract more visitors and sales with top 5 most powerful SEO marketing strategies. Converting visitors into buyers, not just traffic!
Reply With Quote