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)
-   -   Stuck on Product Title tag (https://forum.x-cart.com/showthread.php?t=31824)

yuichi 06-13-2007 06:14 PM

Stuck on Product Title tag
 
I've been stuck and have TONS of questions.... I feel bad for asking all these questions, but I am sooo stuck..
I've been trying to put a Product Title tag on product.tpl for the past 2 hours, but I had no luck.

I have tried placing {$products[product].product} but no luck.

On the dialog.tpl, I deleted the {$title} tag since I did not want to display the Product title on the top of the images. I want to place right before the item description...
I also tried putting {$title} on the product.tpl, but no luck either...

How can I achieve it??

inebriate 06-13-2007 11:27 PM

Re: Stuck on Product Title tag
 
try {$product.product}

yuichi 06-14-2007 03:11 PM

Re: Stuck on Product Title tag
 
Thankyou! You saved me.
I was actually trying ($product.products} and wasnt working.
Just having or not having a "s" does make a difference!!
Thanks Again!!!!!!

yuichi 06-14-2007 08:12 PM

Re: Stuck on Product Title tag
 
Hey Inebriate,

I'm sorry but I do have an another question...
I am trying to put a manufactures title on each featured item (home.php & each products page).
I placed ($manufacturer.manufacturer} but did not work...
Is there anywhere I can get the code from or get a reference?
I'm sorry for asking so many questions...

ADDISON 01-02-2009 08:50 AM

Re: Stuck on Product Title tag
 
How do I concatenate two variables in product title?

I want like this [Product_Manufacturer] SPACE [Product_Title]. I should do this in product.tpl I used this but gives me an error:

{include file="customer/dialog.tpl" title=$product.manufacturer $product.producttitle|escape content=$smarty.capture.dialog}

ADDISON 01-02-2009 09:06 AM

Re: Stuck on Product Title tag
 
You can use the following in product.tpl to have manufacturer name (take it as a brand name) in product title

title=$product.manufacturer|cat:" "|cat:$product.producttitle|escape

For a Smarty specialist: Is it a way to make this look better? I used two times |cat: operator. It looks ugly.

Vetrivel 01-03-2009 09:57 PM

Re: Stuck on Product Title tag
 
If you feel ugly then try this:

title="`$product.manufacturer` `$product.producttitle`"

Quote:

Originally Posted by am2003
You can use the following in product.tpl to have manufacturer name (take it as a brand name) in product title

title=$product.manufacturer|cat:" "|cat:$product.producttitle|escape

For a Smarty specialist: Is it a way to make this look better? I used two times |cat: operator. It looks ugly.


ADDISON 01-04-2009 01:29 AM

Re: Stuck on Product Title tag
 
Great. Thanks Vetrivel.


All times are GMT -8. The time now is 08:22 PM.

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