Welcome Guest
(
Login
|
Register
)
Latest Posts
Popular Topics
Home
Search
Tags
Members
Home
»
Kartris ASP.NET Ecommerce Software
»
Kartris technical issues
»
Search results issue and query
Search results issue and query
Posted By
amscompanies
Fri 13 Jan 2012
0
POST REPLY
LIKE
1,148
Search results issue and query
Flat Ascending
Flat Descending
Threaded
Topic View
Add To Favorites
Print This Topic
Goto Topics Forum
Topic Options
Author
Message
amscompanies
Posted Fri 13 Jan 2012
Supreme Being
Group: Awaiting Activation
Last Active: Wed 8 Feb 2012
Posts: 11,
Visits: 1,149
8,143
When I do a search for something I KNOW is on my store, it returns the result but states:
Your search for '
arsenal
' produced
0
match(es)
How can I get the results to ONLY display items that have a quantity greater than 0
Tags
instock only
,
quantity
,
search issue
,
search question
Edited
Fri 13 Jan 2012 by
amscompanies
REPLY
QUOTE
LIKE
378
saturation
Posted Fri 13 Jan 2012
Supreme Being
Group: Forum Members
Last Active: Fri 30 Nov 2012
Posts: 108,
Visits: 1,185
65,010
I can't say for sure, but I'm guessing you'll need to find the code that evaluates the search results and puts an if statement in there telling it to only return if it's greater than 0.
REPLY
QUOTE
LIKE
395
Mohammad
Posted Sun 15 Jan 2012
Kartris Expert
Group: Administrators
Last Active: Sun 27 Sep 2015
Posts: 115,
Visits: 706
78,965
You need to modify the search stored procedure in order to do that.
Quantities are linked to versions not directly to products, so if you have multiple versions product that could slow down your search - anyway, you need to make sure that the products returned are exist in the result of the below query:
"SELECT DISTINCT V_ProductID FROM tblKartrisVersions WHERE V_Quantity > 0"
A better solution is to set all the out of stock products as "Not Live" and automatically they will appear in the search results.
REPLY
QUOTE
LIKE
375
POST REPLY
LIKE
1,148
Similar Topics
Reading This Topic
Powered By InstantForum.NET 2012-1 © 2024
Execution: 0.031.
8 queries.
Compression Enabled.