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

Gibberish 11-06-2003 11:05 AM

product title.
 
I am trying to modify the product title in product.tpl

It put the title with title=$product.product

I want it to display like this $product.product - #$product.productcode

So in front end it will look like "Pentium 4 - #3456

Anyone know a way to do this?

I have tried calling to a new variable such as $productTitle and deifining that variable in product.php but it errors out the php and if I just put:
title = $product.product - #$product.productcode it errors and if I put:
title = "$product.product - #$product.productcode" I get:
$product.product - $product.productcode where the title is on the fron end.

Any suggestions would be most helpful.

B00MER 11-06-2003 11:25 PM

edit include/func.php

In the function func_select_product() you will find:

Code:

$product["producttitle"]="$product[product]  #$product[productid]";

Leaving the product.tpl with the default capture statement code that you've modified should allow you to easily manipulate how the product title is generated.

hth. ;)

Gibberish 11-07-2003 06:21 AM

worked like a charm.

Thanks.


All times are GMT -8. The time now is 03:09 PM.

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