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 Number in Title (https://forum.x-cart.com/showthread.php?t=10658)

ProjectShadow 11-30-2004 11:11 AM

Product Number in Title
 
Okay, since my last thread has somehow vanished, I'll ask again.

When you look at the Product Details page after the title of the product the Product Number/ID appears, as pictured in the screenshot below:

http://www.asianbeads.com/screenshot1.gif

I have narrowed this to being defined by the following:
Code:

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


However, this directory, nor this file exist on the server. So I'm as lost as they come. If anyone could at least point me in the right direction, as to where I can find and get rid of this item number in the title I'd appreciate it.

Thanks in advance.

jhug 11-30-2004 11:46 AM

That bit of code you have posted checks to see if you have a "configurable product" which uses the configurator add-on so I doubt it is generating your product number listing.

It appears as though this is the code to display the product code/sku {$products[product].productcode} but I can't find it in the product.tpl file so it must be part of an included file within the page. You may have to dig around for it a bit. I'm new to X-Cart so I can't give you much more direction

ProjectShadow 11-30-2004 12:08 PM

Alright, I thought that as well, but here is the top part of the product.tpl file:

Code:

{* $Id: product.tpl,v 1.78.2.4 2004/02/27 13:47:00 mclap Exp $ *}
<table width=620 border=0 cellpadding=0 cellspacing=0><tr><td nowrap>

{include file="check_product_options_js.tpl"}
{include file="location.tpl"}
</td></tr></table>
{if $product.product_type eq "C"}
{include file="modules/Product_Configurator/pconf_customer_product.tpl"}
{else}
{capture name=dialog}
<table border=0 width=100%>
<form name=orderform method=post action="cart.php?mode=add" OnSubmit="javascript:if (!FormValidation()) return false">
<tr>
<td valign=top colspan=2 align=left width=100>
{if $active_modules.Detailed_Product_Images ne ""}



{include file="modules/Detailed_Product_Images/detail_images.tpl"}
{/if}
</td>
</tr>
<tr>
<td colspan=2 valign=top>
<span class=>
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}
</span>


It has to be defined somewhere here I would think. But I don't know what's going on.

balinor 11-30-2004 01:33 PM

Actually, here is what you want to do.

Replace this:
Code:

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

With this:
Code:

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

That should take care of it for you :)

ProjectShadow 12-01-2004 08:42 AM

That's awesome! Thank you so much! :D

--Adam


All times are GMT -8. The time now is 02:20 AM.

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