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)
-   -   help combining variables! (https://forum.x-cart.com/showthread.php?t=1181)

belen 01-14-2003 12:16 PM

help combining variables!
 
i have created a set of text entries in my Languages that i now want to display on product pages, based on what product page is up.

the text variable tag looks like this:

{$lng.seo_descrip_67} (with "67" being the productid)

so when i am calling it on the .tpl page, i have tried variations of

{$lng.seo_descrip_{$product.productid}}

with quotes, taking out the brackets etc - i know what i want, i just don't know the syntax to combine 2 variables like this!

anyone have a quick answer?

thanks in advance
belen

funkydunk 02-22-2003 12:35 AM

Quick answer...not possible as far as I am aware directly in the template.

Longer answer.. it is possible but not quite as you suggest you would need to amend the php files and assign a new value to smarty.


All times are GMT -8. The time now is 08:51 AM.

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