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
 Customization
 random display if cimageurl not equal to empty
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

skynet104
VP-ASP New User

92 Posts

Posted - February 09 2004 :  00:24:28  Show Profile  Reply with Quote
Hi there:

"random display if cimageurl not equal to empty"

Dear Sirs:
I have several products that I would like to present in the the main page, however most of my database is not completed yet, I would like to show only the items that contain something in the "cimageurl" field.
Is there some codding I can use to setup the random feature to just to show those that contain information in the "cimageurl" field?

help will be greattly appreciated.

Thanks in Advance.



siraj
VP-ASP New User

USA
194 Posts

Posted - February 09 2004 :  00:37:45  Show Profile  Visit siraj's Homepage  Reply with Quote
Hi..
Locate this line (around 121) in shoprandomproducts.asp
sqlstr="SELECT catalogid FROM products where hide=0"
and change to
sqlstr="SELECT catalogid FROM products where hide=0 AND cimageurl <> ''"
Something like this would work for you but never tested.
GOOD LUCK.
SIRAJ.

[email protected]

Edited by - siraj on February 09 2004 00:41:54
Go to Top of Page

skynet104
VP-ASP New User

92 Posts

Posted - February 09 2004 :  13:13:10  Show Profile  Reply with Quote
You are Great !

It Works perfect.


Thanks a lot.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000