Viewing 5 replies - 1 through 5 (of 5 total)
  • I will look into it and will do some testing.

    Will update this thread in a few hours.

    Thanks for your patience!

    Thread Starter venu05


    Thank you…

    i will wait for your reply…

    Sorry for the wait.

    Since you don’t have the pro version installed on your site, use the following codes instead:

    function my_upsell_popup_scripts_enqueue () {
    	if (( is_page( 445 ) ) && (! thp_wuppro_active() )) { //CHANGE 445 TO THE ID OF YOUR PAGE!
    		wp_enqueue_script( 'thp-popup-js', get_site_url().'/wp-content/plugins/very-simple-woocommerce-upsell-popup/js/thp-popup-frontend.min.js', array('jquery'), '', false );
    		wp_localize_script( 'thp-popup-js', 'thp_popup_vars', array(
    			'ajaxurl' => admin_url( 'admin-ajax.php' ),
    			'added_to_cart' => __( 'Added to Cart!', 'very-simple-woocommerce-upsell-popup' )
    		if ( is_product() &&  (! wp_script_is( 'woo-ajax-add-to-cart', 'enqueued' )) ) {
    			wp_enqueue_script( 'woo-ajax-add-to-cart', get_site_url().'/wp-content/plugins/very-simple-woocommerce-upsell-popup/js/quadlayers-ajax-add-to-cart.min.js', array('jquery', 'wc-add-to-cart'), '', true );
    add_action( 'wp_enqueue_scripts', 'my_upsell_popup_scripts_enqueue' );

    The above code is for Woocommerce Upsell Popup version 1.4.0 and above only.

    If it doesn’t work, let me know.

    I’m making this topic sticky so that other users who want to use the plugin on custom pages can use the same codes above.

    Remember, this is only for the free version of the plugin. If you have pro version on your site, please use the codes found on the docs here:

    Thanks all.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Code for Custom page is not working’ is closed to new replies.