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)
-   -   Product Variant Searching (https://forum.x-cart.com/showthread.php?t=46494)

presson83 03-24-2009 03:53 AM

Product Variant Searching
 
Hi All,

I'm developing a site that sells shoes and I'm trying to figure out if I can get a search function implemented that searches by product variant (in this case shoe size) from within a category. So while in the "mens" category you could search for size 8 via a drop-down menu and it would bring up all of the shoes in size 8 within that category.

I've already got "Search Style" (aka product) and "Search Brand" (aka manufacturer) implemented. Just needing to figure out "Search Size" in the same manner as the others.

Check it out here:

http://eternitywebdev.com/~kicks/home.php?cat=249

Here's what my code looks like for the product drop-down:

Code:

      <select name="mySelect" onchange="if(this.options[this.selectedIndex].value != '')window.top.location.href=this.options[this.selectedIndex].value">
        <option value="search style">Search Style</option>
        {section name=product loop=$products}
              <option value="product.php?productid={$products[product].productid}&amp;cat={$cat}&amp;page={$navigation_p age}{if $featured eq 'Y'}&amp;featured{/if}">
                  {$products[product].product|truncate:30:"..":true}
              </option>
        {/section}
      </select>


Let me know if you have any ideas on how to do this. Thanks!

balinor 03-24-2009 07:57 AM

Re: Product Variant Searching
 
http://bcsengineering.com/store/catalog/Advanced_Filter_for_Xcart-p-290.html

TanyaG 05-13-2009 02:06 AM

Re: Product Variant Searching
 
Hi presson83,

I've seen you managed to implement search feature on your site. Which mode did you use?

Many thanks

presson83 05-13-2009 03:49 AM

Re: Product Variant Searching
 
Hi Tanya,

I used the Quick Search Mod by xcartmod.com - http://www.xcartmod.com/cart/product/quick-search.html

While it doesn't say it in the description, this mod DOES filter by product variant if you want it to (as you can see by the "size" filter on my site.)

I highly recommend it!

TanyaG 05-13-2009 04:52 AM

Re: Product Variant Searching
 
Hi presson83,

Thanks a lot for your reply. So how are you doing search by size if its out of stock?

Many thanks

vasilis 06-26-2009 02:11 PM

Re: Product Variant Searching
 
I was wondering if this mod can make dependent drop-downs populated by product options that filter subsequent selections, e.g. you enter a product's detail page and you have 2 drop-downs for style and color. Once you select style, the color drop-down filters its values outputting colors that belong only to the selected style. At the end of the procedure a variant's details are output (after all the options are selected).
Is there any manual available for that mod?


All times are GMT -8. The time now is 06:56 PM.

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