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
 [cstock] - Display ''In Stock'' instead of quantity
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Mark Priest
VP-ASP Expert

United Kingdom
570 Posts

Posted - June 27 2007 :  10:41:17  Show Profile  Reply with Quote
Hi Simon

Im getting the follwing error.

Description = Syntax error
File = /store/byz_template_codes_functions_example1.asp
Line = 37
Number = -2146827286
Source = Sub BYZ_EXAMPLE1_NOARGS(arg_out_value,arg_in_cursor)


Regards,

Mark
Retail Fireworks
Go to Top of Page

Mark Priest
VP-ASP Expert

United Kingdom
570 Posts

Posted - June 27 2007 :  10:45:03  Show Profile  Reply with Quote
IGNORE ME!!!

Me being thick!! i deleted the end sub

Regards,

Mark
Retail Fireworks
Go to Top of Page

Mark Priest
VP-ASP Expert

United Kingdom
570 Posts

Posted - June 27 2007 :  10:47:18  Show Profile  Reply with Quote
Mmmm, OK, when an item has 0 stock it still shows LIMTIED STOCK instead of out of stock?

Regards,

Mark
Retail Fireworks
Go to Top of Page

devshb
Senior Member

United Kingdom
1898 Posts

Posted - June 27 2007 :  11:31:04  Show Profile  Visit devshb's Homepage  Reply with Quote
hard to do this without seeing the nesting properly, working it out in notepad...ok, try this....



Dim retval
retval=""
if (arg_in_value<>"" and IsNull(arg_in_value)=false) then
if (CLng(arg_in_value)>CLng(0)) then
if (Clng(arg_in_value)<CLng(5)) then
retval="LIMITED STOCK"
else
retval="In Stock"
end if
else
retval="Out of Stock"
end if
else
retval="Out of Stock"
end if
arg_out_value=retval



Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons

Edited by - devshb on June 27 2007 11:33:37
Go to Top of Page

Mark Priest
VP-ASP Expert

United Kingdom
570 Posts

Posted - June 27 2007 :  11:51:49  Show Profile  Reply with Quote
Thanks Simon.

Works a treat! a bit of tweeking and it will be an excellent addition!

Regards,

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