• Resolved tshwanom

    (@tshwanom)


    Hi, Sell content Buy Button not working inside elementor. the button does not do any action when clicked

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @tshwanom,

    Thank you for contacting us, Can you please share with us the screenshots or a screencast video so we can replicate it on our end?

    Thread Starter tshwanom

    (@tshwanom)

    I managed to fix it with this code

    function mounir_enqueue_scripts() {
        /**
         * frontend ajax requests.
         */
        wp_enqueue_script( 'mycred-sell-this' );
        wp_localize_script(
                        'mycred-sell-this',
                        'myCREDBuyContent',
                        array(
                            'ajaxurl'    => esc_url( ( isset( $post->ID ) ) ? mycred_get_permalink( $post->ID ) : home_url( '/' ) ),
                            'token'      => wp_create_nonce( 'mycred-buy-this-content' ),
                            'working'    => "Processing ...",
                            'reload'     => "1",
                            'sweeterror' => __( 'Error', 'mycred' )
                        )
                    );
    }
    add_action( 'wp_enqueue_scripts', 'mounir_enqueue_scripts', 9999999999999999999999999999999999999999999 );

    Hi @tshwanom0,

    We have tested it on our staging environment and it’s working fine for us. It would be a theme/plugin conflict on your side can you please try switching to the default WordPress theme or try deactivating the other active plugins to check which one is conflicting.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sell content Buy Button not working inside elementor’ is closed to new replies.