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

different footer for customer and admin interface

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-11-2005, 06:26 AM
  just_me's Avatar 
just_me just_me is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Spain
Posts: 69
 

Default different footer for customer and admin interface

I use affiliate banners on my shopping cart footer. It bothered me that they should show up on the admin side too.
A part from being useless, they slow down the page reloading so I searched and found that by removing the following line at the bottom of /single/home.tpl

{ include file="rectangle_bottom.tpl" }

I now see the footer with affiliate banners customer-side, while it's gone from the admin interface. Kinda radical but achieves the purpose.
__________________
Cordially,
Just me
X-Cart Gold
Version 4.2.3
Multilingual shop: Spanish, French and US English
Reply With Quote
  #2  
Old 11-11-2005, 06:51 AM
 
balinor balinor is offline
 

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

Default

I always edit both rectangle_top.tpl adn rectangle_bottom.tpl when I first install X-Cart to include an {if $usertype eq "C"} section so that it seperates the admin content from the customer content. That way, you can have your admin side at 100% width while your customer side is a fixed width. Would also eliminate the problem of having a custom footer show on your admin side
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-12-2005, 05:00 PM
  just_me's Avatar 
just_me just_me is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Spain
Posts: 69
 

Default header and footer admin and customer side differentiation

Great tip!
__________________
Cordially,
Just me
X-Cart Gold
Version 4.2.3
Multilingual shop: Spanish, French and US English
Reply With Quote
  #4  
Old 12-13-2005, 12:19 PM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

Quote:
Originally Posted by balinor
I always edit both rectangle_top.tpl adn rectangle_bottom.tpl when I first install X-Cart to include an {if $usertype eq "C"}
{if $usertype eq "C"}

what should I replace this with so I could display different things for different memberships?
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #5  
Old 12-13-2005, 12:22 PM
 
balinor balinor is offline
 

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

Default

Read through this:

http://forum.x-cart.com/viewtopic.php?t=12234
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 06:45 AM.

   

 
X-Cart forums © 2001-2020