Skip to content

Instantly share code, notes, and snippets.

/file1.php Secret

Created October 11, 2017 04:39
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/a8f09a0a7b961edf4136b60938b4ab6a to your computer and use it in GitHub Desktop.
Save anonymous/a8f09a0a7b961edf4136b60938b4ab6a to your computer and use it in GitHub Desktop.
// Cold Stone Ice Cream
new GW_Inventory( array(
'form_id' => 11,
'field_id' => 2.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' => 11,
'field_id' => 7.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
));
// Cold Stone Cake
new GW_Inventory( array(
'form_id' => 11,
'field_id' => 10.3,
'stock_qty' => 3,
'out_of_stock_message' => 'Sorry, there is no more cake!',
'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
));
// Lawton’s Automotive Free Summerization/Winterization Package
new GW_Inventory( array(
'form_id' => 11,
'field_id' => 12.3,
'stock_qty' => 4,
'out_of_stock_message' => 'Sorry, there are no more Automotive Summerization or Winterizations!',
'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
));
with the following representative remaining shortcodes:
Remaining: [gravityforms action="remaining" id="11" input_id="2.3" limit="3" /]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment