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-Cart StoreFront Customer Forum

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

 All Forums
 VPCart Forum
 generate static html
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

29 Posts

Posted - March 06 2009 :  07:45:14  Show Profile  Reply with Quote
I previously have been using the generate static html tool, and have been very pleased with it.
I am now lookign to use it to formulate my site map-not to be submitted to google-but just as an alternative way for customers to navigate.

However the standard version generates html for every product on my site whether in stock or out of stock.
Does anyone know how i can have the generate html tool filter for only products currently in stock-otherwise inevitably i will be asked about out of stock products.

Many thanks

VP-ASP New User

130 Posts

Posted - July 04 2009 :  04:34:12  Show Profile  Reply with Quote

You will need to modify the code at shopa_generatehtml.asp

Locate the code:
psql="select * from products where catalogid=" & catalogid & " and hide=0"

modify to:
psql="select * from products where catalogid=" & catalogid & " and hide=0 and cstock>0"

Locate the code:
sql="select * from products where hide=0 order by catalogid "

modify to:
sql="select * from products where hide=0 AND cstock >0 order by catalogid "

Go to Top of Page

Starting Member

40 Posts

Posted - January 30 2010 :  11:57:42  Show Profile  Reply with Quote
Thanks for this! Was one of the things I wanted to fix.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000