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)
-   -   Edit Product Name On Product Detail Page (https://forum.x-cart.com/showthread.php?t=36228)

tpl 12-17-2007 10:08 AM

Edit Product Name On Product Detail Page
 
I am trying to find where on the customer/main/product.tpl page you can edit the display of the product name?

The only thing I think it could be is
Quote:

{if $product.product_type eq "C" && $active_modules.Product_Configurator}
{include file="modules/Product_Configurator/pconf_customer_product.tpl"}

But that modules doesn't exist in the install ?

balinor 12-17-2007 10:12 AM

Re: Edit Product Name On Product Detail Page
 
It is called from dialog.tpl actually, but the reference to the product name is this part of product.tpl:

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

What do you want to change about it?

tpl 12-17-2007 10:43 AM

Re: Edit Product Name On Product Detail Page
 
Thanks. I actually just wanted to change the style and the position on the page.

Is it possible to change the position ?

plathw 01-07-2008 09:26 AM

Re: Edit Product Name On Product Detail Page
 
Were you able to move this? I am having a heck of a time just moving the product title to a different spot on the product details page...

balinor 01-07-2008 09:38 AM

Re: Edit Product Name On Product Detail Page
 
If you want to use the default dialog.tpl, you really can't move it. The solution is to comment out dialog.tpl, and use this variable to display the title where you want. So in customer/main/product.tpl, comment out these lines:

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

and then use this variable to display the title where you want:

{$product.product}

plathw 01-07-2008 10:41 AM

Re: Edit Product Name On Product Detail Page
 
Worked perfect. Helpful as always, thanks, Balinor.

boxerbay 10-17-2008 12:56 PM

Re: Edit Product Name On Product Detail Page
 
Quote:

Originally Posted by balinor
If you want to use the default dialog.tpl, you really can't move it. The solution is to comment out dialog.tpl, and use this variable to display the title where you want. So in customer/main/product.tpl, comment out these lines:

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

and then use this variable to display the title where you want:

{$product.product}


U DA MAN BALI!!!


All times are GMT -8. The time now is 01:29 AM.

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