| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Your Cart Is Empty Page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Another way of putting this,
what would the {if cart has products in it}do this{/if} else do this code be? |
|||||||||
#3
|
|||||||
|
|||||||
![]() Try commenting out this line in cart.tpl:
{* {if $cart.coupon_discount eq 0 and $products ne ""} *}
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#5
|
|||||||
|
|||||||
![]() 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 ""}
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#7
|
|||||||||
|
|||||||||
![]() On skin1/customer/main/cart.tpl
Use: {if $products ne ""} There are items in the cart. {/if} |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() Quote:
Thanks Jon |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|