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

SKU in Product Title - Which template?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-19-2004, 10:41 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default SKU in Product Title - Which template?

Hi all, just installed the shiny new version 4.0.0, and so far only a few bugs from my end. One thing that is driving me nuts though: on the product detail page, the title of the product is showing up with the SKU (actually the X-cart generated sku, not the one you input) at the end of it. So my product title appears as "Product Title #5" instead of just "Product Title". In the Related Products links below, same thing, just reversed: "#5 Product Title".

Anyone know which template this lives in? I can't seem to track it down. Even the smarty tag for the SKU would be helpful. Thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #2  
Old 07-19-2004, 04:00 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

I don't recall for sure, I think you need to edit the product.php file to pull .product instead of .producttitle in the mysql select statement.
Reply With Quote
  #3  
Old 07-19-2004, 05:57 PM
 
laureon laureon is offline
 

Senior Member
  
Join Date: Oct 2003
Posts: 171
 

Default

Hello,

If you open 'product.tpl' from skin1/customer/main directory. Find:

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

replace
Code:
$product.producttitle
with
Code:
product.product

That will avoid the sku appearing after the product title.

HTH
__________________
X-Cart Gold Version: 4.0.17
X-Configurator
X-AOM
X-FancyCategories
X-RMA
X-Offers
Reply With Quote
  #4  
Old 07-19-2004, 06:26 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

BEAUTIFUL! Thanks Laureon! Now that I know what I am looking for, I managed to remove it in the Related products template as well (/modules/Upselling_Products/related_products.tpl if anyone else wanted to know)

Don't know what I would do without this forum!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 08:44 PM.

   

 
X-Cart forums © 2001-2020