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

product name with extra field

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-04-2005, 09:01 PM
 
kyh kyh is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 5
 

Default 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
__________________
Version 4.0.14
Reply With Quote
  #2  
Old 10-05-2005, 02:06 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

not sure i fully understand your post. maybe try and explain a little better
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 10-05-2005, 05:46 AM
 
kyh kyh is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 5
 

Default 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"
__________________
Version 4.0.14
Reply With Quote
  #4  
Old 10-05-2005, 05:50 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

post a link to the page
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 10-05-2005, 06:14 AM
 
kyh kyh is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 5
 

Default

http://www.buddhalightshop.com/product.php?productid=16145&cat=3&page=1
__________________
Version 4.0.14
Reply With Quote
  #6  
Old 10-05-2005, 06:21 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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%"}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 10-05-2005, 06:46 AM
 
kyh kyh is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 5
 

Default

ya, i looked there already too, i can switch the title there, but i cant figure out how to assign two variables there
__________________
Version 4.0.14
Reply With Quote
  #8  
Old 10-05-2005, 07:14 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #9  
Old 10-05-2005, 07:23 AM
 
kyh kyh is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 5
 

Default

i see, thx
__________________
Version 4.0.14
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 10:39 PM.

   

 
X-Cart forums © 2001-2020