![]() |
Quote:
Nice work! I've tried your version as well as the original up top but I can't seem to find any difference in functionality? Clue? |
Anybody get this working for 4.016. The code is different than the original post.
|
For people using 4.0.16 and higher this works for me
In /include/search.php Add: Code:
if (!empty($data["by_productcode"])){ AFTER: Code:
if (!empty($data["by_fulldescr"])) { and do rest as in the other posts on here :) |
Great mod. Thanks, but I 'm having one problem for some reason the sku check box isn't checked by default. So customer have to enter the SKU then after no results are found then they can check the SKU checkbox and searh again to get the product. Any help would be appreciated.
|
I ran into the same problem on a version 4.11 with the sku box having to be checked after returning no results. I finally figured out that you have to edit the product search form to include the sku input.
Open skin1/customer/search.tpl and find: <FORM method="POST" action="search.php" name="productsearchform"> <INPUT type="hidden" name="simple_search" value="Y"> <INPUT type="hidden" name="mode" value="search"> <INPUT type="hidden" name="posted_data[by_title]" value="Y"> <INPUT type="hidden" name="posted_data[by_shortdescr]" value="Y"> <INPUT type="hidden" name="posted_data[by_fulldescr]" value="Y"> And add: <INPUT type="hidden" name="posted_data[by_productcode]" value="Y"> Hope this helps... |
I am not seeing Product.php or include/
Can someone help - Im trying to track down the locations of these files but do not see Product.php or a directory called include...is this the name of the main directory or is it found for instance in the Customer menu?
|
Re: Search Variants in 4.0.10 Code
Quote:
Are you looking in the X-cart webmaster mode, or accesing your site through your ftp client? The include directory is in the root of your x-cart installation.. so http://www.mysite.com/include -or- http://www.mysite.com/store/include depending on how and where you chose to install the X-Cart files Quote:
Thanks Mike. After playing around with a few of the suggested changes, and climbing the walls from frustration at the poor X-Cart search (after only using it for 2 days), this did the trick. Spot on! |
thanks so much - i forgot i left this post up here and figured it out...have a great day
|
version 4.0.18 gold sku search
Quote:
Was able to find and use this code (using ftp) but not find the second half of any of the other codes posted. I was able to make the skin mod but never shows up. (I figure that it won't show without other necessary changes.) We have over 30,000 products and our client wants to be able to search by sku. The only thing that happens in search is when we search by generic "calendar" or "post its" etc. not by SKU. Please help a frustrated user! Thanks! |
Re: Include search by SKU into basic search in v4
This is now supported within v4.1.x ... i didnt need to make any modifications to the php code...
It even searches the Product Variant SKU's too. Regards Shafiq :sK |
All times are GMT -8. The time now is 01:06 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.