With Perch Shop how do you skip payment for certain users and simply add the order automatically?
You can use the manual checkout for that.
Thanks Rachel
For some reason this code doesn't work when the member has the reseller tag. It goes to the ''regular'' payment processor
if (perch_member_has_tag('reseller')) { // your 'success' return URL $return_url = 'https://website.com/thanks'; $cancel_url = 'https://website.com'; perch_shop_checkout('manual', [ 'return_url' => $return_url, 'cancel_url' => $cancel_url, ]); } else { perch_shop_checkout('our-regular-processor', [ 'return_url' => '/payment/success', 'cancel_url' => '/payment/failure', ]); }
Have you checked if the member is logged in?
Of course. Otherwise the process wouldn't go through.
In fact
if (perch_member_has_tag('reseller')) { echo "is reseller"; } else { echo "regular member"; }
Works as intended
Ok, great.
You can use the manual checkout for that.
Thanks Rachel
For some reason this code doesn't work when the member has the reseller tag. It goes to the ''regular'' payment processor
Have you checked if the member is logged in?
Of course. Otherwise the process wouldn't go through.
In fact
Works as intended
Ok, great.