Welcome, Guest ( Customer Panel | Login )




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

mcg
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

madbug
VP-CART New User

130 Posts

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

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

mikeach
Starting Member

USA
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
0 Item(s)
$0.00