| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Show clickable manufacturer in description of product | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I have added the following code in product.tpl:
Code:
This shows the manufacturer name of the product shown and it's clickable but the url goes to manufacturers.php?manufacturerid= without the manufacturer's id behind it; is there a way to get this done?
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Try this:
HTML Code:
|
|||||||||
#3
|
|||||||||
|
|||||||||
![]() You're the man Bill! Working great
![]() Thanks, Pieter
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Do you also know how to get clickable search keywords? (see also: http://forum.x-cart.com/showthread.php?t=26481)
I know how to display them on the product page (by adding {$product.keywords}) but I want them to be clickable so that the search function is used with the clicked word. Imagine something looking like this: Related search terms: blue, medium, cotton when you click on let's say 'blue' the search engine is used displaying all products found with 'blue' as search keyword. I hope this makes sense?
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() I'm not sure, I will work something out and post it for you later today.
|
|||||||||
#6
|
|||||||||
|
|||||||||
![]() That would be great!
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#7
|
|||||||||
|
|||||||||
![]() First you will need to configure your search to work with URL queries. You can try this mod (I have never used this mod, so it may or may not work).
http://forum.x-cart.com/showthread.php?t=18488 Then you will have to separate your keywords with just a space (so they be separated and placed into an array). Open product.php. After this: PHP Code:
Add these lines PHP Code:
Then add this to your product.tpl wherever you want the links: HTML Code:
Let me know if the search by URL mod doesn't work for 4.1.x |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() You're not the man you're the master! Works great
![]() Thanks a million.
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() Final question; is it also possible to get the search keywords that are in the 'international description' of the product?
i.e. to make it multilanguage (english keywords shown when English is selected as language; french keywords shown when French language is selected by visitor). Now it is showing the search keywords from the 'Product details' in the backoffice.
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#10
|
|||||||||
|
|||||||||
![]() Is there anybody outthere who can help me with this?
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25 X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many ∙∙ Experience: Somewhere beyond newbie ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|