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)
-   -   join two variables in one (https://forum.x-cart.com/showthread.php?t=2658)

Cefko 05-12-2003 05:08 AM

join two variables in one
 
Hi, I am probably missing something very obvious here, but I can't figure it out.

I have 2 variables
$lng.lbl_related_products and $product.product

I have tried to join them into one variable, used all known operators, then I checked whole Smarty manual, but I can't find a solution.

So... please help me :)

funkydunk 05-12-2003 08:36 AM

Quick question:

why? :?:

Why not just display them in the template next to each other? :D

Alan 05-12-2003 10:44 PM

Hello Cefko,

Do you want to display it to your customers this?

Related Products --> Smelly Socks

If so then write it literally like:

[$lng.lbl_related_products} --> {$product.product}

inside your product.tpl (I'm taking a wild guess here!)

HTH

Cefko 05-20-2003 06:36 AM

The problem is, that variables should be in the Dialog Title

Code:

{include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"}

I would like to add product name ($product.product) + some text in the dialog title. Tried many ways, but I couldn't do it


All times are GMT -8. The time now is 11:40 PM.

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