Ok, I built an EE site for a client earlier this year. Before it was ready to roll, the client and I parted ways. It was working and now it isn’t… at least part of it anyway.
Here is the code that seems to be having an issue
{if group_id == '5'}
<!-- -------------------------if they are members but haven't paid, they are presented with the payment link -->
<div class="purchase">
{exp:weblog:entries orderby="date" limit="1" weblog="{my_weblog}" username="CURRENT_USER"}
{exp:simple_commerce:purchase entry_id="{entry_id}" success="index.php/site/my_videos" cancel="site/index"}
<h1>Thank you for allowing me to help you improve your game!</h1>
Please consider signing up for one year of access to the adamsmithgolf.com. Access will provide you with a personalized page, unique to you. After each recorded session, I will upload a video of a portion of our session and add some helpful comments.
One year of access to your personal page costs only <strong>${item_sale_price}</strong> USD.
Once you have paid, any and all videos will be immediately available for you to view!
<div id="buynow"><h2></h2></div>
{/exp:simple_commerce:purchase}
{/exp:weblog:entries}
</div>
{if:elseif group_id == '6'}
<!-- -------------------------if they are members that have paid, they will see their videos and the appropriate comments -->When someone logs in and meets the group id 5 condition, they should get a link to pay for the service. Instead, now, the entire contents of the purchase div is empty, the rendered code leaves a gap there where the EE generated code should be.
If any of the other conditionals are met, it works.