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