Skip to content

Instantly share code, notes, and snippets.

@ipokkel
Last active March 31, 2021 05:40
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 ipokkel/d927f2f2577321cb2fc19e7917d74672 to your computer and use it in GitHub Desktop.
Save ipokkel/d927f2f2577321cb2fc19e7917d74672 to your computer and use it in GitHub Desktop.
Sample for creating seats for parent membership level at checkout.
<?php
/*
Define the global array below for your main accounts and sponsored levels.
Array keys should be the main account level.
*/
global $pmprosm_sponsored_account_levels;
$pmprosm_sponsored_account_levels = array(
//set 3 seats for level 8 at level 2 checkout
2 => array( //id # of parent level
'main_level_id' => 2, //redundant but useful
'sponsored_level_id' => 8, //array or single id of sponsored levels
'seats' => 3
),
//set 3 seats for level 9 at level 4 checkout
4 => array( //id # of parent level
'main_level_id' => 4, //redundant but useful
'sponsored_level_id' => 9, //array or single id of sponsored levels
'seats' => 3
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment