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

Stuck on Product Title tag

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-13-2007, 06:14 PM
 
yuichi yuichi is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 42
 

Default 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??
__________________
X-Cart Ver: 4.1.9 Gold
X-Cart Ver: 4.1.10 Gold
Reply With Quote
  #2  
Old 06-13-2007, 11:27 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Stuck on Product Title tag

try {$product.product}
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #3  
Old 06-14-2007, 03:11 PM
 
yuichi yuichi is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 42
 

Default 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!!!!!!
__________________
X-Cart Ver: 4.1.9 Gold
X-Cart Ver: 4.1.10 Gold
Reply With Quote
  #4  
Old 06-14-2007, 08:12 PM
 
yuichi yuichi is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 42
 

Default 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...
__________________
X-Cart Ver: 4.1.9 Gold
X-Cart Ver: 4.1.10 Gold
Reply With Quote
  #5  
Old 01-02-2009, 08:50 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default 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}
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #6  
Old 01-02-2009, 09:06 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default 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.
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #7  
Old 01-03-2009, 09:57 PM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default 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.
Reply With Quote
  #8  
Old 01-04-2009, 01:29 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: Stuck on Product Title tag

Great. Thanks Vetrivel.
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:39 AM.

   

 
X-Cart forums © 2001-2020