product macro docs

This commit is contained in:
Colin Kuskie 2005-10-10 23:21:12 +00:00
parent 3b2ea13b57
commit 35b2b94e1d
3 changed files with 128 additions and 1 deletions

View file

@ -19,7 +19,7 @@ sub process {
($productId) = WebGUI::SQL->quickArray("select productId from products where sku=".quote($_[0])) unless ($productId);
($productId) = WebGUI::SQL->quickArray("select productId from products where productId=".quote($_[0])) unless ($productId);
return 'Cannot find product' unless ($productId);
return WebGUI::International::get('cannot find product','Macro_Product') unless ($productId);
$product = WebGUI::Product->new($productId);