Hey brian!,
i want product id on hook AfterShoppingCartCheckout
this is how i'm doing this
function hook_handleconnectorders_AfterShoppingCartCheckout($vars) {
$productId = $vars['pid'] ?? null;
echo $productId;
die;
}
// Register hooks with WHMCS
add_hook('AfterShoppingCartCheckout', 1, 'hook_handleconnectorders_AfterShoppingCartCheckout');
is this the right way?
i have created the provisioning module and when user order any product save the product in database something like this