Welcome, Guest ( Customer Panel | Login )




 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-CART Expert

United Kingdom
580 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-CART Expert

United Kingdom
580 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-CART Expert

United Kingdom
580 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
1904 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-CART Expert

United Kingdom
580 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
0 Item(s)
$0.00