VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 General help me questions
 Link to show group of products
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

meldrape
Starting Member

37 Posts

Posted - May 31 2004 :  08:23:22  Show Profile  Reply with Quote
Hi all, I don't even know how to search for the answer so forgive me if it's already been answered. I have a group of products, all products start with "aura" so when I do a search on aura all of the products are fetched, works just great. I'm doing a mailing and would like to include a link that only pulls products that start with aura but the search link on says "yes" in the querystring. What link do I use to single out certain products for display? Many thanks in advance for your thoughts and ideas.



devshb
Senior Member

United Kingdom
1898 Posts

Posted - May 31 2004 :  11:09:55  Show Profile  Visit devshb's Homepage  Reply with Quote
your link would be:

shopdisplayproducts.asp?product=aura

and in shopproductcreatesql.asp, you'll need to correct/change the line:

sql = sql & "p.cname like '"& productname & "%'"

to:

sql = sql & " UPPER(p.cname) like '%"& UCase(productname) & "%'"
(for sqlserver)

sql = sql & " UCASE(p.cname) like '%"& UCase(productname) & "%'"
(for access)

(note the extra space in front of UPPER/UCASE; that's a bug-fix).

Simon Barnaby
Developer
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000