Last active
March 31, 2021 05:40
-
-
Save ipokkel/d927f2f2577321cb2fc19e7917d74672 to your computer and use it in GitHub Desktop.
Sample for creating seats for parent membership level at checkout.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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