Conditional logic for project postings plan
Hi, on my website I have a Basic-plan ($xx) for posting every projects. I also want to inspire Employers to Upgrade their membership to Premium & with this membership plan they will have the ability to post unlimited projects and they will not have to pay separately for the Basic-plan ($xx) as they already own a premium plan.
In plain english I am trying to achieve following:
PHP Code:
<?php
while( have_premium_plan() ) {
go ahead and let the employer post without charging for basic-plan;
} else{
charge them for the basic plan;
}
?>
In another words, if the logged in employer have a premium plan I don't want to show the payment option. Please see attached image [pmw]
pmw.png
In one more another words, for the option "Charge for projects/addons" I want this option Unchecked for premium employers and Checked for those employers who don't have premium plan. Please see attached image [bpnpm]
bpnpm.jpg
How can I achieve it & which file should I edit?
Thank you.