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

showing something in cart totals, but only when logged in.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-23-2005, 11:11 AM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default showing something in cart totals, but only when logged in.

i dont know much about template editing and writing code.
but ive learned a little here and there by just reading the forums and trying things out.

what i need to do is have a shipping notice. that shows underneath the shipping totals.

what i did i created a customer/main/shipping_notice.tpl and then referenced it in the cart_totals.tpl


Code:
{include file="customer/main/shipping_notice.tpl"}

but it shows all the time when someone is looking at their cart, even if they are not logged in.

ideally i would like it to show only when a person is logged in (and showing real shipping totals)

how would i do that?
__________________
4.2.2
Reply With Quote
  #2  
Old 07-23-2005, 11:39 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Code:
{if $login ne ""} {include file="customer/main/shipping_notice.tpl"} {/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-23-2005, 12:36 PM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default

beautiful.
thanks!
__________________
4.2.2
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:03 AM.

   

 
X-Cart forums © 2001-2020