Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Your Cart Is Empty Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-28-2008, 02:00 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default 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
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #2  
Old 02-28-2008, 02:10 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default 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?
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #3  
Old 02-28-2008, 03:23 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Your Cart Is Empty Page

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
Reply With Quote
  #4  
Old 02-28-2008, 04:12 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default 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.
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #5  
Old 02-28-2008, 04:19 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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 ""}
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #6  
Old 02-28-2008, 04:29 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default 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.
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #7  
Old 02-28-2008, 11:19 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Your Cart Is Empty Page

On skin1/customer/main/cart.tpl

Use:

{if $products ne ""}
There are items in the cart.
{/if}
Reply With Quote
  #8  
Old 02-29-2008, 02:05 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default 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
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:39 AM.

   

 
X-Cart forums © 2001-2020