Author |
Topic |
|
Mark Priest
VP-CART Expert
United Kingdom
580 Posts |
Posted - June 27 2007 : 10:41:17
|
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 |
|
|
Mark Priest
VP-CART Expert
United Kingdom
580 Posts |
Posted - June 27 2007 : 10:45:03
|
IGNORE ME!!!
Me being thick!! i deleted the end sub
Regards,
Mark Retail Fireworks |
|
|
Mark Priest
VP-CART Expert
United Kingdom
580 Posts |
Posted - June 27 2007 : 10:47:18
|
Mmmm, OK, when an item has 0 stock it still shows LIMTIED STOCK instead of out of stock?
Regards,
Mark Retail Fireworks |
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - June 27 2007 : 11:31:04
|
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 |
|
|
Mark Priest
VP-CART Expert
United Kingdom
580 Posts |
Posted - June 27 2007 : 11:51:49
|
Thanks Simon.
Works a treat! a bit of tweeking and it will be an excellent addition!
Regards,
Mark Retail Fireworks |
|
|
|
Topic |
|