• Resolved monolith920

    (@monolith920)


    I have added BrainTree button to this page using the do_shortcode() method and tried adding the shortcode in a wysiwyg. Both times I am unable to see the credit card input fields and two buy now buttons appear. I am not getting any JS errors or PHP errors in our log files. Any advice would be helpful.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hi @monolith920.

    I can see the form is partially displayed, but it’s distorted.

    Can you try disabling all the plugins BUT WP Braintree and see if it helps?

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Ok, never mind, I think I can see what’s the problem.

    Since you’re doing it using do_shortcode() function, you also need to enqueue following css and js files (using wp_enqueue_style() and wp_enqueue_script() respectfully):

    wp-braintree/css/front_page.css
    wp-braintree/js/wp-braintree/js/front_page.js

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    This is actually a bug that plugin is not inserting frontend css and js when shortcode is processed via do_shortcode() function. I’ve filed a bug report regarding this. It should be fixed in next plugin version which is coming shortly.

    Thread Starter monolith920

    (@monolith920)

    Thanks things are getting better. But not I am getting these js errors:
    wp_braintree_scripts_front_js_vars_bt is not defined
    .dialog is not a function (front_page.js line 22)

    Are there other JS libraries that this plugin is dependent on?

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    If you can wait for like 24 hours, I’ll try to release a version where this all is fixed. It can’t be easily resolved using the current version without hardcoding things (which is a bad thing).

    Thread Starter monolith920

    (@monolith920)

    Great. Just drop me a line when its ready to go and I will update and test. Thank you.

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hey @monolith920 , the changes have been made to the upcoming version, which should be released soon (tomorrow or Monday).

    If you wish to test it before it’s released, you get a copy from the repo here: https://github.com/erommel/wp-braintree

    Plugin Author mra13

    (@mra13)

    The new version has been released.

    Thread Starter monolith920

    (@monolith920)

    That did the trick. Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Credit Card Fields Not Displaying’ is closed to new replies.