| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Include search by SKU into basic search in v4 | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
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? |
|||||||
#22
|
|||||||||
|
|||||||||
Anybody get this working for 4.016. The code is different than the original post.
__________________
4.4 Code:
|
|||||||||
#23
|
|||||||
|
|||||||
For people using 4.0.16 and higher this works for me
In /include/search.php Add: Code:
AFTER: Code:
and do rest as in the other posts on here |
|||||||
#24
|
|||||||||
|
|||||||||
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.
__________________
X-Cart pro v4.0.17 X-Cart pro v4.1.6 X-Cart pro v4.2 |
|||||||||
#25
|
|||||||
|
|||||||
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...
__________________
Zak Xcart Version 4.18 |
|||||||
#26
|
|||||||
|
|||||||
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?
__________________
X-Cart version 4.3.2, 4.4.2, Windows OS |
|||||||
#27
|
|||||||
|
|||||||
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!
__________________
Version 4.0.17 |
|||||||
#28
|
|||||||
|
|||||||
thanks so much - i forgot i left this post up here and figured it out...have a great day
__________________
X-Cart version 4.3.2, 4.4.2, Windows OS |
|||||||
#29
|
|||||||
|
|||||||
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!
__________________
Shannon Williams for Chris Ollar chrisollar@grandecom.net x-cart gold 4.0.18 x-cart gold 4.1 LC v2.1 LC v2.2 beta 1 unix |
|||||||
#30
|
|||||||||
|
|||||||||
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
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
|
|||
X-Cart forums © 2001-2020
|