X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Passing Variable Help (https://forum.x-cart.com/showthread.php?t=5521)

thinksuccess 12-08-2003 09:24 AM

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

groovico 12-08-2003 09:38 AM

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

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

thinksuccess 12-08-2003 09:43 AM

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?


All times are GMT -8. The time now is 12:24 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.