Hello everyone!
Not sure if cs cart is PHP based but code seemed similar. I am working on a client site and ran into a small problem of two boxes that should not display when one of them is in use. I attached pictures of:
a - normal state both boxes should display
b - promo code entered / points box disappears which works perfect
c- promo code box should disappear when points entered
This code is used for image b
[php]{if $cart_products && $cart.points_info.total_price && $user_info.points > 0 && !$cart.discount } [/php]
This is the code that needs to be changed for image c to work. My thoughts is that “{if $cart.has.coupons}” should have something added to it will not show when the points box has an input
[php]
{if $cart_products }
{if $cart.has_coupons}
{include file=“views/checkout/components/promotion_coupon.tpl”}
{/if}
{hook name="checkout:payment_extra"}
{/hook}
</div>
{/if}
{hook name="checkout:payment_options"}
{/hook}
{include file="views/checkout/components/checkout_totals_info.tpl"}
<div class="clear"></div>
<ul class="statistic-list total">
<li class="total">
<span class="total-title">{__("total_cost")}</span><span class="checkout-item-value">{include file="common/price.tpl" value=$_total|default:$smarty.capture._total|default:$cart.total span_id="cart_total" class="price"}</span>
</li>
</ul>
<!--checkout_totals--></div>[/php]
Any help or direction will be greatly appreciated!