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

Passing Variable Help

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-08-2003, 09:24 AM
 
thinksuccess thinksuccess is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default Passing Variable Help

Hi,

I have partner stores that have their own storefronts and I want to pass a preview link from the admin to the storefront site.

Example: domain.com/store/affiliates/partner_user/

I need to know how to make an <a href="" to link and replace the partner_user with the user that is logged in at that time.

Thanks
Reply With Quote
  #2  
Old 12-08-2003, 09:38 AM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

smarty template variable {$login} holds the current login name so putting that in your link should work

http://blah.com/customer/{$login}
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #3  
Old 12-08-2003, 09:43 AM
 
thinksuccess thinksuccess is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default That Worked!

Thank you so much! I was looking everywhere. I guessit doesn't help not knowing smarty that well. Is there a list of what variables control what?
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 01:41 PM.

   

 
X-Cart forums © 2001-2020