Skip to content

Instantly share code, notes, and snippets.

/file1.php Secret

Created March 14, 2018 15:09
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/5f7625f7f7828df1b4c1c8647d7272d7 to your computer and use it in GitHub Desktop.
Save anonymous/5f7625f7f7828df1b4c1c8647d7272d7 to your computer and use it in GitHub Desktop.
new GW_Inventory(
array(
'form_id' => 37,
'field_id' => 6,
'stock_qty' => 4,
'out_of_stock_message' => 'Sorry, there are no more spots left for 1:00 - 2:00 PM.',
'not_enough_stock_message' => 'Sorry, there are no more spots left for 1:00 - 2:00 PM.',
'approved_payments_only' => false,
'hide_form' => false,
'enable_notifications' => true,
)
);
new GW_Inventory(
array(
'form_id' => 37,
'field_id' => 9,
'stock_qty' => 4,
'out_of_stock_message' => 'Sorry, there are no more spots left for 2:00 - 3:00 PM.',
'not_enough_stock_message' => 'Sorry, there are no more spots left for 2:00 - 3:00 PM.',
'approved_payments_only' => false,
'hide_form' => false,
'enable_notifications' => true,
)
);
new GW_Inventory(
array(
'form_id' => 37,
'field_id' => 14,
'stock_qty' => 4,
'out_of_stock_message' => 'Sorry, there are no more spots left for 3:00 - 4:00 PM.',
'not_enough_stock_message' => 'Sorry, there are no more spots left for 3:00 - 4:00 PM.',
'approved_payments_only' => false,
'hide_form' => false,
'enable_notifications' => true,
)
);
new GW_Inventory(
array(
'form_id' => 37,
'field_id' => 17,
'stock_qty' => 4,
'out_of_stock_message' => 'Sorry, there are no more spots left for 4:00 - 5:00 PM.',
'not_enough_stock_message' => 'Sorry, there are no more spots left for 4:00 - 5:00 PM.',
'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