• Resolved nils235

    (@nils235)


    I had the problem that there was no Paypal JS object.
    I found the culprit in main.php, line 139:
    —>
    if(is_a($post, 'WP_Post')
    && has_shortcode($post->post_content, 'wp_paypal_checkout')
    || has_shortcode(get_post_meta($post->ID, 'wp-paypal-custom-field', true), 'wp_paypal_checkout')){

    <—
    This doesn’t account for calling the plugin with do_shortcode.
    I fixed it locally by removing the has_shortcode part.

    Could you maybe include a fix in the code base, so I can savely install the next update without breaking things?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Noor Alam

    (@naa986)

    Hi, Thanks for the feedback. We have added a new option to load the script on every page. You will find it in the settings after updating the plugin.

    Thread Starter nils235

    (@nils235)

    Thanks, Noor!

    Keep up the awesome work!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Calling plugin with do_shortcode doesn’t create Paypal object’ is closed to new replies.