-
-
Save anonymous/f7c29149d7b1d1bc0bd54730f416dca6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using version 2.11 of GW_Inventory | |
new GW_Inventory( array( | |
'form_id' => 13, | |
'field_id' => 4.3, | |
'stock_qty' => 3, | |
'out_of_stock_message' => 'Sorry, there is no more Ice Cream!', | |
'not_enough_stock_message' => 'You ordered %1$s tickets. There are only %2$s tickets left.', | |
'approved_payments_only' => false, | |
'hide_form' => false, | |
'enable_notifications' => true | |
)); | |
// Cold Stone Cupcakes | |
new GW_Inventory( array( | |
'form_id' => 13, | |
'field_id' => 6.3, | |
'stock_qty' => 3, | |
'out_of_stock_message' => 'Sorry, there are no more Cupcakes!', | |
'not_enough_stock_message' => 'You ordered %1$s tickets. There are only %2$s tickets left.', | |
'approved_payments_only' => false, | |
'hide_form' => false, | |
'enable_notifications' => true | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment