This topic contains 1 reply, has 1 voice. Last updated by Maarten Ottens 3 years, 1 month ago.
Topic Author | Topic |
---|---|
Posted: Monday Dec 9th, 2013 at 1:54 am #61775 | |
I’m using authorize.net with pro forms but for renewals the pro form does not recognize that a user is logged in when the form is generated from within php (this used to work). For example if I use “echo do_shortcode([s2Member-Pro-AuthNet-Form … ])” the css and js for s2member is not loaded and the complete form is displayed (including create profile). If I use the same shortcode directly in the page content it works fine. Unfortunately i need some variables in the shortcode so I need a php version. I also tried echo (c_ws_plugin__s2member_pro_authnet_form::sc_authnet_form($attr)); In all cases the user is logged in. The code I tried is: Odd that do_shortcode does not work and using the shortcode in the content does work, especially as the forms are in fact generated in all cases, just not the php/js that needs to be loaded. |