• 1.
    foreach( array( 3, 6, 7, 8 ) as $form_id ) {
  • 2.
     new GW_Inventory( array(
  • 3.
     'form_id' => $form_id,
  • 4.
     'field_id' => 17,
  • 5.
     'stock_qty' => 15,
  • 6.
     'out_of_stock_message' => 'Sorry fully booked.',
  • 7.
     'not_enough_stock_message' => 'You selected %1$s participants. There are only %2$s spaces left.',
  • 8.
     'approved_payments_only' => true,
  • 9.
     'hide_form' => false,
  • 10.
     'enable_notifications' => true
  • 11.
     ) );
  • 12.
    }
foreach( array( 3, 6, 7, 8 ) as $form_id ) { new GW_Inventory( array( 'form_id' => $form_id, 'field_id' => 17, 'stock_qty' => 15, 'out_of_stock_message' => 'Sorry fully booked.', 'not_enough_stock_message' => 'You selected %1$s participants. There are only %2$s spaces left.', 'approved_payments_only' => true, 'hide_form' => false, 'enable_notifications' => true ) ); }

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter