X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Search listings by Brand Name? (https://forum.x-cart.com/showthread.php?t=5081)

bluecat 11-04-2003 10:15 AM

Search listings by Brand Name?
 
I apologize if this was answered, but I wasn't able to find anything on it. I want a customer to be able to search listings by a manufacture. I've set up each title so that it first lists the manufacture first then the description (i.e. Safariland - 38" Belt), so when you enter Safariland in the search, it works perfectly. Is there a way I add navigation to list the brands so it's easier for the customer? Thank you.

bluecat 11-05-2003 04:05 PM

How about this; can someone tell me which file to edit to directly edit the "Products" section of links? Thanks.

DogByteMan 11-05-2003 04:11 PM

I think this will work for you bluecat.... It did for me

http://forum.x-cart.com/viewtopic.php?t=5971&postdays=0&postorder=asc&star t=0

If they search the manufacturer they will find em...

Or you can link some searches for them.

bluecat 11-05-2003 04:30 PM

Hey thanks DobByteMan, I appreciate it. Actually, that was my idea was to add some links with that linked (with a click) on manufacturer names, because that works perfect; I just want to put it in link form. But I will read through that, thanks again!! :wink:

DogByteMan 11-05-2003 04:40 PM

The links would be....

usual stuff/customer/search.php?substring=searchword

or

usual stuff/customer/search.php?substring=searchword1+searchword2


Is that what you wanted???

bluecat 11-05-2003 04:56 PM

Well, I meant which template can I add those links to so they'll show up in the "Product" menu as normal links to the customer but they'll really be search links for them. When a customer clicks on one, it will search the manufacture. Is that possible?

DogByteMan 11-05-2003 04:58 PM

I think in menu.tpl but I'd wait to see if someone agrees

bluecat 11-05-2003 04:59 PM

Yeah I played with that one and it showed up like 6 times under each category, lol.

DogByteMan 11-05-2003 05:00 PM

Yeah, you have to place it perfect or it will do that...

bluecat 11-05-2003 05:10 PM

I'll keep on, lol. But thanks for that link, that code definitely helped my searches; now they can search multiple words and get results. :)

DogByteMan 11-05-2003 05:18 PM

Yeah I Love It... I just wonder why it wasn't that way to start with

bluecat 11-05-2003 05:19 PM

I agree. :lol:

jeeya 11-05-2003 07:21 PM

.
 
I sell dvds, I just put genre or year name in description and it shows up perfect in search engine.

But you may also want to try boomer's product sort mode, you can use extra field and put up manufacture name in it. and in product list you will have option in dropdown box to sort it by manufacture, price, free shipping, popular, ratings..

bluecat 11-07-2003 08:02 AM

Ok, here's what I came up with. Add this code (your modified version) using links as DogByteMan illistrated (and already in the code below) to your skin1/customer/categories.tpl. Add it toward the very bottom between the
and {/capture} tags.

This is the code to add:

Code:

<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" style="font-size: 9pt" color="#CC0000">Manufacturer Search</font>
</p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" style="font-size: 9pt">
<a href="http://www.yoursite.com/xcart/customer/search.php?substring=safariland">
Safariland</a></font></p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" style="font-size: 9pt">
<a href="http://www.yoursite.com/xcart/customer/search.php?substring=bianchi">
Bianchi</a></font></p>


So the whole file should look like this:

Code:

{* $Id: categories.tpl,v 1.18 2003/02/25 08:58:46 olga Exp $ *}
{capture name=menu}
{if $config.General.root_categories eq "Y"}
{section name=cat_num loop=$categories}
<font class=CategoriesList>{ $categories[cat_num].category_name|escape }</font>

{/section}
{else} {section name=cat_num loop=$subcategories}
<font class=CategoriesList>{ $subcategories[cat_num].category_name|escape }</font>

{/section}
{/if}


<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" style="font-size: 9pt" color="#CC0000">Manufacturer Search</font>
</p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" style="font-size: 9pt">
<a href="http://www.yoursite.com/xcart/customer/search.php?substring=safariland">
Safariland</a></font></p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" style="font-size: 9pt">
<a href="http://www.yoursite.com/xcart/customer/search.php?substring=bianchi">
Bianchi</a></font></p>


{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }


This will enable you to add a drop down menu if you like as well. You can see what it looks like here: http://store.realpolice.net :)

One other thing: I added the manufacturer name to each title of every product which will obviously help in the searches.

DogByteMan 11-07-2003 08:16 AM

Like I've said before....

What's next bluecat???

Good Job =D>

bluecat 11-07-2003 08:31 AM

lol, but honestly, the head.tpl. :)


All times are GMT -8. The time now is 01:32 PM.

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