Author |
Topic |
|
surplus
Starting Member
Canada
16 Posts |
Posted - October 27 2023 : 15:41:05
|
Hello,
We would like the search results on our VPASP cart to show by default only products with a lowprice > .01
I know this can be manually set on the shopsearch page --- https://www.fcsurplus.ca/shopping/shopsearch.asp
But we would like to always exclude products in the search result that have a price of zero. So I added this to shopsearch.asp
if lowprice =0 then lowprice = .01 end if
The interesting thing is that the result should be correct if you click the url below --- https://www.fcsurplus.ca/shopping/shopdisplayproducts.asp?Search=Yes&sppp=&Keyword=boots&lowprice=0.01&allwords=boots&exact=&searchfields=
But it does not work if the search is done from the cart. It appears that the cart somehow does the search first and then generates the results page and then posts the url address onto the browser.
Has anyone had any experience with the VPASP product search system?
Thanks, Bob
|
Edited by - surplus on October 28 2023 21:20:35 |
|
diegomilito
VP-CART Expert
Argentina
779 Posts |
Posted - October 30 2023 : 05:19:18
|
it''s been a while since I last checked the forum. are you v8 user or v9 user?? i need to remember first. when you say:it does not work if the search is done from the cart. do you mean if we search from the top right of your site??
diego
|
|
|
surplus
Starting Member
Canada
16 Posts |
|
diegomilito
VP-CART Expert
Argentina
779 Posts |
Posted - October 31 2023 : 04:47:14
|
Bob, to make sure I''ve got it right, are you telling me that the search result from https://www.fcsurplus.ca/shopping/shopsearch.asp is correct, and the search result from the top right search box returning wrong result?
diego
|
|
|
surplus
Starting Member
Canada
16 Posts |
Posted - October 31 2023 : 19:01:38
|
Hi Diego,
The best way to explain is for you to try it yourself. If you go to our site https://www.fcsurplus.ca/ and enter BOOTS into the search box that is on the main page and press enter, you will see a page displaying many types of boots. Some pages have no prices and we would like to hide them from customers as they are discontinued.
If you go to this page https://www.fcsurplus.ca/shopping/shopsearch.asp and search for BOOTS with a low price of .01 you will see the result that we would like customers to see.
I hoped that this would be simple but there seems to be many individual programs involved in generating a search result.
We keep the discontinued products on our site to retain our connection with search engines.
Thanks, Bob
|
|
|
diegomilito
VP-CART Expert
Argentina
779 Posts |
Posted - November 01 2023 : 04:57:06
|
Bob, now I totally get it. I''m playing around with the v8 code to see if I can send you a way to do it.
diego |
|
|
diegomilito
VP-CART Expert
Argentina
779 Posts |
Posted - November 01 2023 : 06:07:42
|
ok i tried an experiment and seems to work for me.
shopdisplayproducts_subs.asp: sql = "* from products where CatalogId=" & CatalogId you may just update to below: sql = "select * from products where CatalogId=" & CatalogId & " AND cprice > 0.01"
diego |
|
|
surplus
Starting Member
Canada
16 Posts |
Posted - November 01 2023 : 11:36:57
|
Hi Diego,
I added your suggested change to shopdisplayproducts.asp
sql = "* from products where CatalogId=" & CatalogId & " AND cprice > 0.01"
and this error message was generated at the bottom of the display products page -- ADODB.Field error ''800a0bcd'' Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. /shopping/shop$db.asp, line 2207
So I commented the line out.
Bob
|
|
|
diegomilito
VP-CART Expert
Argentina
779 Posts |
Posted - November 02 2023 : 03:14:06
|
Bob,,I refer to file shopdisplayproducts_subs.asp, not shopdisplayproducts.asp. please check again. i dont get the error with the fix i sent you.
diego. |
|
|
surplus
Starting Member
Canada
16 Posts |
Posted - November 02 2023 : 10:21:25
|
Hi Diego,
I really appreciate that you have tried to help us but there is no shopdisplayproducts_subs.asp program in our version of VPASP. I believe we have version 8.0. I will try to setup a support request with VPASP.
Thanks, Bob
|
|
|
|
Topic |
|