Pro Form Button?
-
I did not realize (before dropping $130) that this plugin does not use a standard checkout page, rather short codes for an inline checkout form.
Every post has a custom field which I put in a rental ID, some post will share the same rental ID as they are “bundled”
I then call on this custom field when displaying content, I set up my template files to block content (via php if else)
<?php $rental = get_custom_field('rentalid'); if (current_user_can("access_s2member_ccap_" . $rental)){ THE HIDDEN CONTENT } else { BUTTON TO RENT }
Before owning the pro version, I inserted the custom field in for ccaps
<input type="hidden" name="item_number" value="1:<?php get_custom_field('rentalid'); ?>" />
This made it so depending on the post, the button would set that users ccap to the rental ID allowing them to see all content using that ID for a period of time.
With the pro form it is not as straight forward. Seems my only option is a popup or modal window to display the form after the button is clicked (which is not ideal) as I do not want the forms displayed on the post’s page.
I was hoping to have a button “Become a Member” that took you to another page (like the standard paypal button) bringing along the data from the button.
Any help would be greatly appreciated.
- The topic ‘Pro Form Button?’ is closed to new replies.