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 Title and ID shows! How to remove ID (https://forum.x-cart.com/showthread.php?t=5773)

domvista 12-30-2003 01:37 AM

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!

funkydunk 12-30-2003 03:26 AM

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%"}

domvista 12-30-2003 03:34 AM

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}


funkydunk 12-30-2003 03:39 AM

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.

domvista 01-03-2004 10:02 AM

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.

GregCroft 01-23-2004 09:23 PM

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!


All times are GMT -8. The time now is 11:27 AM.

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