| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Show search keywords in description of product | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
![]() Well I did but it only works when you have the smart search mod from alteredcart installed ... if you do I can quote the code needed.
p.s. the mod isn't needed to get this working but I haven't got the old code (anymore) ...
__________________
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 ![]() ----------------------------------------------------------------------------------------------------------------------------------------- ![]() ![]() |
|||||||||
#12
|
|||||||
|
|||||||
![]() Got this working on 4.3.1. I'm using my Search Keywords as "Tags" to encourage customers to browse more.
After searching for clickable search keywords, I got a lot of help from this thread by wjbrewer. Please read that over first. Firstly, I didn't need to mod my search so you can ignore the part about that. In product.php, where wjbrewer indicated, I pasted in: Code:
The above is different from what wjbrewer originally posted in that it recognizes that my keywords are comma-separated and will break them up as such, including keyword phrases that consist of more than one word with spaces in between. Then in my template where I want the keywords to show up (/customer/main/products_details.tpl in my case), I put in the following which will return my keywords on one line, followed by a pipe symbol (except for the last value) and each will be turned into a link: Code:
The end result looks like this: Tags: Feminine | Floral | Sweet and Sassy Hope this helps someone!
__________________
X-Cart Gold 4.3.1 Military Support Shop :: Army Wife Clothing, Military Support T-Shirts |
|||||||
#13
|
|||||||
|
|||||||
![]() Hello,
I am looking to do something similar, but instead of the keywords appearing on the product pages themselves, I am wanting to create a page with all of the keywords entered across the site. Other than that, the same fuctionality (clickable tags that take you to a results page with the products associated with that tag). Any ideas on how to implement this on it's own page? Let me know, thanks!
__________________
nick hoag looking forward to the future http://thefutureforward.com xcart versions 4.2.x, 4.3.x, 4.4.x |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|