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

Move some text links from cart box to authentication box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-15-2009, 04:39 PM
 
Christofer Christofer is offline
 

eXpert
  
Join Date: Apr 2009
Location: Thessaloniki, Greece
Posts: 202
 

Default Move some text links from cart box to authentication box

When a user is logged in, in the cart box it appears 4 text links if i am correct. The text links are :
Modify profile
Delete profile
Orders history
bonuses

And in the authentication box it appears "users is logged in"..

So i believe that those 4 texts links, would be better to appears on the authentication box, just before the text "user is logged in". Coz these links are related to user and not to cart.

How can i do this? I know that i have to move them, but it makes me scared coz it has to be with an (if) coz those menu has to appears only to logged in users. If the users isn't logged it, he has to see the normal authentication with option to login etc
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql)
Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server
Modules : X-Offer & X-Aom & One page checkout
Product tabs & Product downloads & many more
Reply With Quote
  #2  
Old 04-16-2009, 02:05 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Move some text links from cart box to authentication box

if you have anonymous checkout disabled try cut from skin1/customer/menu_cart.tpl
Code:
{if $anonymous_login eq "" && $login ne ""} <li><a href="register.php?mode=update">{$lng.lbl_modify_profile}</a></li> <li><a href="register.php?mode=delete">{$lng.lbl_delete_profile}</a></li> {/if} <li><a href="orders.php">{$lng.lbl_orders_history}</a></li>

and insert into skin1/customer/authbox.tpl before {/capture}

Code:
<ul> <li><a href="register.php?mode=update">{$lng.lbl_modify_profile}</a></li> <li><a href="register.php?mode=delete">{$lng.lbl_delete_profile}</a></li> <li><a href="orders.php">{$lng.lbl_orders_history}</a></li> </ul>

backup the files before you change them to be able revert changements easily
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #3  
Old 04-16-2009, 02:30 AM
 
Christofer Christofer is offline
 

eXpert
  
Join Date: Apr 2009
Location: Thessaloniki, Greece
Posts: 202
 

Default Re: Move some text links from cart box to authentication box

why i have to disable the anonymous checkout?
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql)
Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server
Modules : X-Offer & X-Aom & One page checkout
Product tabs & Product downloads & many more
Reply With Quote
  #4  
Old 04-16-2009, 02:45 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Move some text links from cart box to authentication box

i have said if you don't use anonymous checkout.
This may work with enabled anonymous checkout also, I didn't check it
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
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 09:42 AM.

   

 
X-Cart forums © 2001-2020