Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-Cart 8.00 Issues
 SEARCH (predictve text list)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

skynet104
VP-CART New User

94 Posts

Posted - October 29 2015 :  18:21:20  Show Profile  Reply with Quote
When using search we encounter a big problem:

We have items with similar names, since we sell music CD''s, our clients will look for artist name (cname) and also for the name of album....
The problem is that since we have several cd''s of the same artist, when predictive text shows the name of the artist, the first one you choose will only display that item and not the entire list of all the items in the inventory with the same name (cname)...
Is there any way to have the predictive text just to show the name from the database and when choosing that name it will go to search all items with the same name and display the results in a list?


Please Advise.
VPASP 8.010

skynet104
VP-CART New User

94 Posts

Posted - October 30 2015 :  19:27:57  Show Profile  Reply with Quote
Just had to the work myself:

in shopajaxsearchlookup.asp changed shopexd.asp to shopdisplayproducts.asp, that will give me the list of all available names and not only the chosen one when selecting from predictive text.

Hope helps some one.

Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - November 02 2015 :  16:38:49  Show Profile  Visit serjtankian's Homepage  Reply with Quote
so all shopexd.asp changed to shopdisplayproducts.asp?

i noticed there''s 3 relevant line








*serj*
Go to Top of Page

skynet104
VP-CART New User

94 Posts

Posted - November 02 2015 :  19:16:11  Show Profile  Reply with Quote
Yes here is the code I modified:

''800 - 2015.08.10 - Bug Fix: Ajax Search xCrossLinkurl not working properly
if lcase(GetConfig("xGenerateShopexdLink")) = "yes" then
mylink = "<a href=""javascript:popUpAjaxSearchLookup(''"& xmysite2 &"/shopdisplayproducts.asp?Search=Yes&sppp=100&page=1&Keyword="& catalogid &"'')"">"& productlist &"</a>"
else
if ucase(GetConfig("xCrossLinkurl")) = "shopdisplayproducts.asp" then
mylink = "<a href=""javascript:popUpAjaxSearchLookup(''"& xmysite2 &"/shopdisplayproducts.asp?Search=Yes&sppp=100&page=1&Keyword="& catalogid &"'')"">"& productlist &"</a>"
else
mylink = "<a href=""javascript:popUpAjaxSearchLookup(''"& xmysite2 &"/"& GetConfig("xCrossLinkurl") &"?catalogid="& catalogid &"'')"">"& productlist &"</a>"
end if
end if
else
''800 - 2015.08.10 - Bug Fix: Ajax Search xCrossLinkurl not working properly
if lcase(GetConfig("xGenerateShopexdLink")) = "yes" then
mylink = "<a href=""shopdisplayproducts.asp?Search=Yes&sppp=100&page=1&Keyword="& productlist &""">"& productlist &"</a>"
else
if ucase(GetConfig("xCrossLinkurl")) = "shopdisplayproducts.asp" then
mylink = "<a href=""shopdisplayproducts.asp?Search=Yes&sppp=100&page=1&Keyword="& productlist &""">"& productlist &"</a>"
else
mylink = "<a href="""& GetConfig("xCrossLinkurl") &"?catalogid="& catalogid &""">"& productlist &"</a>"
end if
end if
end if

''700 - SEO
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00