Skip to content

Instantly share code, notes, and snippets.

/file1.php Secret

Created August 28, 2017 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e56562626ec5cec60392ddec6fe75a3f to your computer and use it in GitHub Desktop.
Save anonymous/e56562626ec5cec60392ddec6fe75a3f to your computer and use it in GitHub Desktop.
# Configuration
new GW_Inventory( array(
'form_id' => 1,
'field_id' => 10.3,
'stock_qty' => 50,
'out_of_stock_message' => 'Sorry, there are no more tickets!',
'not_enough_stock_message' => 'You ordered %1$s tickets. There are only %2$s tickets left.',
'approved_payments_only' => true,
'hide_form' => false,
'enable_notifications' => true
) );
new GW_Inventory( array(
'form_id' => 1,
'field_id' => 11.3,
'stock_qty' => 50,
'out_of_stock_message' => 'Sorry, there are no more tickets!',
'not_enough_stock_message' => 'You ordered %1$s tickets. There are only %2$s tickets left.',
'approved_payments_only' => true,
'hide_form' => false,
'enable_notifications' => true
) );
new GW_Inventory( array(
'form_id' => 1,
'field_id' => 12.3,
'stock_qty' => 50,
'out_of_stock_message' => 'Sorry, there are no more tickets!',
'not_enough_stock_message' => 'You ordered %1$s tickets. There are only %2$s tickets left.',
'approved_payments_only' => true,
'hide_form' => false,
'enable_notifications' => true
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment