X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Your Cart Is Empty Page (https://forum.x-cart.com/showthread.php?t=37920)

photo 02-28-2008 02:00 AM

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

photo 02-28-2008 02:10 AM

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?

carpeperdiem 02-28-2008 03:23 AM

Re: Your Cart Is Empty Page
 
Try commenting out this line in cart.tpl:

{* {if $cart.coupon_discount eq 0 and $products ne ""} *}

photo 02-28-2008 04:12 AM

Re: Your Cart Is Empty Page
 
Quote:

Originally Posted by carpeperdiem
Try commenting out this line in cart.tpl:

{* {if $cart.coupon_discount eq 0 and $products ne ""} *}


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.

carpeperdiem 02-28-2008 04:19 AM

Re: Your Cart Is Empty Page
 
Quote:

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.

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 ""}

photo 02-28-2008 04:29 AM

Re: Your Cart Is Empty Page
 
Quote:

Originally Posted by carpeperdiem
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 ""}


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.

Jon 02-28-2008 11:19 PM

Re: Your Cart Is Empty Page
 
On skin1/customer/main/cart.tpl

Use:

{if $products ne ""}
There are items in the cart.
{/if}

photo 02-29-2008 02:05 AM

Re: Your Cart Is Empty Page
 
Quote:

Originally Posted by Jon
On skin1/customer/main/cart.tpl

Use:

{if $products ne ""}
There are items in the cart.
{/if}


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.