| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Remove product title in location.tpl | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi all,
Does anyone know how i can remove the product title from the breadcrumb do i have to edit location.tpl? Many Thanks Richie
__________________
Version 4.1.9 X-Cart Sites:- www.artyfect.com www.naval-military-press.com www.bookguild.co.uk www.humangivens.com |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Edit the 'product.php' script, replace:
PHP Code:
with PHP Code:
__________________
Eugene Kaznacheev, Evangelist/Product Manager at Ecwid: http://www.ecwid.com/ (since Sept 2009) ex-Head of X-Cart Tech Support Department ex- X-Cart Hosting Manager - X-Cart hosting ex-X-Cart Technical Support Engineer Note: For the official guaranteed tech support services please turn to the Customers HelpDesk. |
|||||||||
|
#3
|
|||||||
|
|||||||
![]() ah great thanks Ene worked perfectly.
__________________
Version 4.1.9 X-Cart Sites:- www.artyfect.com www.naval-military-press.com www.bookguild.co.uk www.humangivens.com |
|||||||
#4
|
|||||||
|
|||||||
![]() Hi,
Although this removes the product title from the breadcrumb it also removes it from the page title which is rubbish for SEO. I didnt realise but the page titles(home.tpl) are built from the breadcrumb(location.tpl) is there any way around this does anyone know of a solution? So is there a way of hiding the product title in the breadcrumb but showing it in the page titles? Many thanks in advance
__________________
Version 4.1.9 X-Cart Sites:- www.artyfect.com www.naval-military-press.com www.bookguild.co.uk www.humangivens.com |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Quote:
A quick rehash (including warts and all) of location.tpl for you... PHP Code:
Hope this helps. ========================== Edit: Note: It will always remove the current area. For example, it will remove the breadcrumb from the home page or the current category you reside in on a page.
__________________
Doms kube v4.1.9 |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() Another quick rehash at the tpl level, but this time to specifically remove the product name on just the product page...
PHP Code:
Might want to clean up the if statements though. Some of the section's attributes might produce cleaner code but unable to make it work at the moment.
__________________
Doms kube v4.1.9 |
|||||||||
#7
|
|||||||
|
|||||||
![]() hey thanks, your update works may look into cleaning up the second example many thanks though
![]() I didnt know you could use section attributes?
__________________
Version 4.1.9 X-Cart Sites:- www.artyfect.com www.naval-military-press.com www.bookguild.co.uk www.humangivens.com |
|||||||
#8
|
|||||||||
|
|||||||||
![]() Section attributes...
http://www.smarty.net/manual/en/language.function.section.php And another crack at tpl level for removing the product name on the product page's breadcrumb (a little cleaner, no idea if it is quicker though)... PHP Code:
__________________
Doms kube v4.1.9 |
|||||||||
#9
|
|||||||
|
|||||||
![]() Do you also know how to do the opposite? I want to remove the Shop name (First breadcrumb) from the breadcrumbs. I'm affraid that the breadcrumb gets to wide since i changed it into a bigger font.
Thanks!
__________________
In Motion Media |
|||||||
#10
|
|||||||||
|
|||||||||
![]() Hi inmotionmedia,
add the start attribute to the section (I've also removed the outer lying FONT tags as they'll get printed on the home page as an empty tag) Code:
If you need the FONT tags find the appropriate IF statement to exclude breadcrumbs from the home page Hope this helps.
__________________
Doms kube v4.1.9 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|