X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Related Keywords (https://forum.x-cart.com/showthread.php?t=15555)

PremiumPonyParts 07-29-2005 12:39 PM

Related Keywords
 
For those that have come to grasp that the search function in x-cart lacks funcitionality that most of us need, I figured out a quick and easy way for my website to deal with a problem I needed fixing. It's kinda like googles
did u mean??

First step: Create and extra field and label it Related.
Do not Show it. Otherwise, your related keywords will show up in the product page.
Next Open: search.tpl in /customer and add this line

<INPUT type="hidden" name="posted_data[extra_fields][xx]" value="Y">

You will see exactly where to put it, if you miss it then look again. Replace xx with the field number. You can find this by opening your db in phpmyadmin and looking at the extra_fields table.

Helpful when maybe customers search for an item you no longer sell or one that you recommend more. Also, can help with misspellings. I get a lot of people misspelling carberuator, and myself probably just misspelt it.

jeanne 07-29-2005 03:40 PM

Another way
 
I always put the misspellings and related words in hidden text in the long description. The search function will find the words.


PremiumPonyParts 08-01-2005 02:45 PM

I may be mistaken and if thats the case your way would work. But one SEO guru told me that using hidden words can hurt SEO rank.
If Im wrong, please let me know.

balinor 08-01-2005 02:57 PM

Hidden words are not advised.

PremiumPonyParts 08-01-2005 03:55 PM

Then in that case, this quick and easy mod helps out a lot.

balinor 08-01-2005 04:46 PM

Agreed, looks like a nice little hack :)

jeanne 08-04-2005 09:51 AM

Thanks
 
Thanks guys.
I didn't realize that using to hide words would be as bad putting them in the same color as the background.
The x-cart forum is so much more informative than the forum about the current cart that I am using.

jeanne 08-05-2005 07:16 AM

Using 4.0.14 I cannot get this to work.
Looking at the code it seems like it should, but the search terms are not found. No errors, just no search results.
Back to commenting out the words.

PremiumPonyParts 08-05-2005 09:58 AM

Did u make sure you have the right number replacing xx ??

If you dont use the right number, example 01, or 02, it won't work.


All times are GMT -8. The time now is 03:17 AM.

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