![]() |
Your Cart Is Empty Page
Hello
Currently if a customer does not have anything in their cart the page displays the txt_your_shopping_cart_is_empty language label and the Redeem a discount coupon dialog template. How would I go about changing this to not show the Redeem a discount coupon option if the cart is empty? Thanks |
Re: Your Cart Is Empty Page
Another way of putting this,
what would the {if cart has products in it}do this{/if} else do this code be? |
Re: Your Cart Is Empty Page
Try commenting out this line in cart.tpl:
{* {if $cart.coupon_discount eq 0 and $products ne ""} *} |
Re: Your Cart Is Empty Page
Quote:
Hello Jeremy That will work but I will lose the option for a customer to add a coupon on the cart page if there are items in the cart. Being they can add the coupon code on the one page checkout this may be ok. I would think there would be a {if} statement for this though. |
Re: Your Cart Is Empty Page
Quote:
In my opinion, the ONLY place to add a coupon is right with payment (read: checkout_one) -- however, if a coupon is used to add a free item to the cart, this is a potential gotcha -- since the customer won't see the free item added to the cart -- but I still like this better than the alternative of more than one place for a coupon code. I used this to hide the minicart on home.tpl if the cart was empty -- maybe this will work? {if $minicart_total_items ne ""} |
Re: Your Cart Is Empty Page
Quote:
Thanks Jeremy I think I will just set it up so they can only add a coupon on the OPC. The way I got going on this is it was one of the comments made in the review I got from usertesting.com. I was very fortunate, I got a real computer novice as my reviewer. |
Re: Your Cart Is Empty Page
On skin1/customer/main/cart.tpl
Use: {if $products ne ""} There are items in the cart. {/if} |
Re: Your Cart Is Empty Page
Quote:
Thanks Jon |
All times are GMT -8. The time now is 12:00 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.