This is probably a stupid question, but I thought I’d ask.
I’m using Memberpress and the Beaver Builder theme. Memberpress outputs a no-frills checkout/registration form on BB’s default plain page.
One way around this is to create a stylised template and then use a Memberpress shortcode, in an HTML module, to render the registration form. All good.
The problem is that if a buyer chooses to pay with credit card (Stripe), they are taken to another autogenerated, completely plain, non-editable page (e.g. /action=checkout&txn=1N).
I noticed that Memberpress has the option of using a custom page template for the whole checkout. So I was wondering if I could somehow create such a file out of the template I already created using Beaver Builder?
If the page is dynamically created by MemberPress then, no you won’t be able to use BB nor can you convert our pre-built templates to actual template files.
However, if you can assign a template to that Stripe page. You could create you could create your own template file and use our shortcode functionality to include your saved rows onto the page.
I believe this would work. However, I don’t have access to MemberPress, so I am unable to give you a definitive answer, but the suggestion above should work.
I think I follow what you’re saying. Memberpress does allow you to select a custom template. In my case, I have three options: no header/footer; sidebar; custom post (one I created for a different area of the site).
So am I right in thinking it would be similar to a page.php file, but with the desired shortcodes inserted? And, if so, could you point me to any examples of this being applied with Beaver Builder? It’d be hugely helpful.
For the shortcodes being inserted, see this topic, it should give you a good understanding of how to add them to your custom template.
However, the code in that topic is using an action. You won’t need to do this if you create a custom template. You will want to just use the do_shortcode function. Like so:
I’ve had a go at it, and can’t get it to swing just yet. I can add the heading text to ensure it is recognised as a custom template, and I’ve got the slug and added it to the shortcode, but think I am placing the snippet in the wrong place. Could you please advise where I’d place it in the standard page.php file (and what I might replace):
Where you place the shortcode would depend on where you want it to be on the page and you should be able to place it anywhere on that file. Where exactly did you place your shortcode? Do you mind sharing the code you have as well? Better yet, can you place your code on the file, and share the entire code again so we can check?