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

Product Title and ID shows! How to remove ID

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-30-2003, 01:37 AM
 
domvista domvista is offline
 

Member
  
Join Date: Aug 2003
Location: Switzerland
Posts: 17
 

Default Product Title and ID shows! How to remove ID

Hi, i have on the detail page from each product on the title the product name and after the product id. I searched in each .tpl but found nothing. I want to have just the product name and not the product id after, does somebody know how to remove the tag?

Thanks for helping!
Reply With Quote
  #2  
Old 12-30-2003, 03:26 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

This is amended in customer/main/product.tpl

change:

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

to

Code:
{include file="dialog.tpl" title=$product.product content=$smarty.capture.dialog extra="width=100%"}
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 12-30-2003, 03:34 AM
 
domvista domvista is offline
 

Member
  
Join Date: Aug 2003
Location: Switzerland
Posts: 17
 

Default

Works great - thank you!

you know also, why in product.tpl the script is out with <!-- ??

Code:
{literal} <SCRIPT language=JavaScript1.2> <!-- var store_language='{/literal}{$store_language}{literal}'; function product_option(name_of_option) { {/literal} for(i=0; i<{php}echo count($product_options) {/php}; i++) if (document.orderform[i].name.search(name_of_option) != -1) return document.orderform[i]; return -1; {literal} } function FormValidation() { {/literal} {if $javascript_code} {$javascript_code} {else} return true; {/if} {literal} } --> </SCRIPT> {/literal}
Reply With Quote
  #4  
Old 12-30-2003, 03:39 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

this is in case a user has javascript disabled - they will not get shown the javascript code in the browser. These get ignored if they have enabled js.
__________________
ex x-cart guru
Reply With Quote
  #5  
Old 01-03-2004, 10:02 AM
 
domvista domvista is offline
 

Member
  
Join Date: Aug 2003
Location: Switzerland
Posts: 17
 

Default

Thank you for your help, when you are so good in x-carting, can you help me too with some languages problems? I posted it in Internationalization, the problem is with the translation from mr, mrs etc and the payment methods - thanks for your help.
Reply With Quote
  #6  
Old 01-23-2004, 09:23 PM
 
GregCroft GregCroft is offline
 

Newbie
  
Join Date: Oct 2003
Posts: 9
 

Default

Quote:
Originally Posted by funkydunk
This is amended in customer/main/product.tpl

change:

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

to

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

Brilliant! I been try'n to figure that out for a couple days now..

Hrm, I should start here when working on issue.

Thanks again!
__________________
Greg Croft
-Webmaster for ModernPerformance.com, your domestic 4 cylinder performance specialists.
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:08 AM.

   

 
X-Cart forums © 2001-2020