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)
-   -   product name with extra field (https://forum.x-cart.com/showthread.php?t=17086)

kyh 10-04-2005 09:01 PM

product name with extra field
 
Hi, is it possible to display extra field, or any other info even, with product name?

i'm selling books, and some have sub titles, i wanna display it with product name above the line,

i tried playing around with dialog.tpl, adding something after the line

<TD class="DialogTitle" valign="bottom">[img]{$ImagesDir}/spacer.gif[/img]{$title}</TD>

but it didnt work coz the extra field would appear everywhere if theres a line

how can i change product name? Thx

shan 10-05-2005 02:06 AM

not sure i fully understand your post. maybe try and explain a little better

kyh 10-05-2005 05:46 AM

Re: product name with extra field
 
like for a product, it has a product name, and a line to seperate the product image and full description,

i wanna edit that product name to show extra field as well, but when i go to dialog.tpl and change this chunk of code

<TD class="DialogTitle" valign="bottom">[img]{$ImagesDir}/spacer.gif[/img]{$title}</TD>

, the extra field i want to show will appear at every line seperator, ie. lines following "send to a friend", "recommended product list", "product rating"

shan 10-05-2005 05:50 AM

post a link to the page

kyh 10-05-2005 06:14 AM

http://www.buddhalightshop.com/product.php?productid=16145&cat=3&page=1

shan 10-05-2005 06:21 AM

ah, you shouldnt edit dialog.tpl

that effects every instance as you have seen

you just need to edit product.tpl

have a look around here to adjust only the product area

Code:

{/capture}
{include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra="width=100%"}


kyh 10-05-2005 06:46 AM

ya, i looked there already too, i can switch the title there, but i cant figure out how to assign two variables there

shan 10-05-2005 07:14 AM

you would need to assign a new variable and send that to title=

have a look round here for more info on smarty variables

http://smarty.php.net

kyh 10-05-2005 07:23 AM

i see, thx


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

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