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

Edit Product Name On Product Detail Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-17-2007, 10:08 AM
 
tpl tpl is offline
 

Member
  
Join Date: Nov 2007
Posts: 19
 

Default 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 ?
__________________
Version 4.1.9
Reply With Quote
  #2  
Old 12-17-2007, 10:12 AM
 
balinor balinor is offline
 

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

Default 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?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-17-2007, 10:43 AM
 
tpl tpl is offline
 

Member
  
Join Date: Nov 2007
Posts: 19
 

Default 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 ?
__________________
Version 4.1.9
Reply With Quote
  #4  
Old 01-07-2008, 09:26 AM
 
plathw plathw is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 46
 

Default 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...
__________________
X-Cart Version 4.1.9
Coker Tire Company
Reply With Quote
  #5  
Old 01-07-2008, 09:38 AM
 
balinor balinor is offline
 

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

Default 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}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 01-07-2008, 10:41 AM
 
plathw plathw is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 46
 

Default Re: Edit Product Name On Product Detail Page

Worked perfect. Helpful as always, thanks, Balinor.
__________________
X-Cart Version 4.1.9
Coker Tire Company
Reply With Quote
  #7  
Old 10-17-2008, 12:56 PM
 
boxerbay boxerbay is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 170
 

Default 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!!!
__________________
Thanks,
Alex.
Too many version to list. I have some on 3.51 and some on the latest version.
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 02:00 PM.

   

 
X-Cart forums © 2001-2020