Super simple plugin, I am very happy with it, but I have encountered a problem.
The following problem can be replicated:
1. customer adds product to shopping cart
2. upsell pop-up opens
3. customer clicks on Yes, please.
4. customer is redirected to the shopping cart and there is the product and the upsell in it.
5. customer wants to buy more and goes back to the store page and clicks on another product.
6. the customer adds another product to the shopping cart.
7. here is the problem. In our case, nothing happens at all. The customer stays on the product page. However, in the background, the product is added to the cart. However, either the upsell pop-up would have to come again or the customer is redirected directly to the shopping cart. Sadly nothing happens.
paid for the premium version and of course hope about a solution as this reduces the conversion rate.
]]>When disabling the ajax option in your plugin, upon adding a product to the cart that has the popup enabled, I get a PHP warning display that the header has been already sent.
Reason is that the popup code gets injected into the <head> of the HTML document. This happens since the woocommerce_add_to_cart you are hooking into already fires before any content gets displayed.
By making the following modification to the top of your wup-noajax.php file, the popup gets added to the page right after the <body> opening tag. Feel free to modify to your needs:
function thp_upsell_popup_trigger($cart_item_key, $product_id) {
global $thp_addtocart_popup_btn;
if ((! is_ajax()) && ($thp_addtocart_popup_btn != true)) {
global $thp_global_popup_html;
ob_start();
thp_fire_php_include( $product_id );
$thp_popup_html = ob_get_clean();
}
}
add_action( 'woocommerce_add_to_cart', 'thp_upsell_popup_trigger', 10, 2 );
function thp_insert_popup() {
global $thp_popup_html;
echo $thp_popup_html ?? '';
}
add_action('wp_body_open', 'thp_insert_popup');
Can you consider adding the fix or similar?
Thank you!
]]>Hello,
Thanks for your previous help.
I was wondering if there was a way we could prevent the popup from showing if the customer already purchased all upsells. Doesn’t really make any sense if the customer is being asked to purchase a product they already own.
I have already created a function to check if the customer has already purchased an upsell. I created a custom popup template and currently use this function to hide upsells that have been purchased by the customer. Issue is that there are two upsells so if the customer has purchased both before then they get this – https://snipboard.io/87IOP5.jpg
PS the products on the store are all downloadable.
]]>Hello, I want to know if it’s possible to have multiple upsells in the same sequence.
So we have 3 products A, B & C. B is an upsell of A and C is an upsell of B.
The customer adds product A to cart and the first upsell popup comes up, containing product B. The customer selects Yes – Add to Cart and after that’s added to cart, a second upsell popup comes up containing product C and the Yes/No buttons.
Is this possible?
]]>If something is not working, like certain product types are not being added to cart, or other issues, try the following to fix it:
1. Go to Woocommerce > Upsell Popup > General.
2. Here you will see an option to turn off AJAX. Tick the box that says “Turn off AJAX on single product pages”.
If this didn’t fix your issue, try this:
1. Go to Woocommerce > Upsell Popup > General.
2. Here you will see an option that says “AJAX script to Use”. Next to it is a checkbox with a label that says “Switch to Woocommerce native handler”. Tick this checkbox.
Don’t forget to clear your website’s cache and also your browser’s cache before testing again to see if the issue has been fixed.
]]>Hi there,
currently there are no option to redirect customer to custom url. please let me know how I can redirect customer to a url after they click YES or NO
thanks
]]>If something is not working after you upgrade the plugin to version 1.6.0, please try one of the following:
1. Go to Woocommerce > Upsell Popup > General.
Here you will see an option to turn off AJAX. Tick the box that says ‘Turn off AJAX on single product pages’.
2. If the problem persists, please try to downgrade to the previous version:
Woocommerce Upsell Popup – downgrade to v1.5.0.
You can download the previous version from this page (scroll down to Advanced Options > Previous Versions).
]]>Hi,
i’m facing an issue using your plugin upsell popup alongside with
Xootix sidecart premium : when activated upsell popup interfers with the ajax add-to-cart method. doing so, it prevents quick add-to-cart buttons to work correctly, and items are not added.
Can you help me solve this problem ?
Hello,
I’m using WooCommerce Food – Restaurant Menu & Food ordering (https://codecanyon.net/item/woocommerce-food-restaurant-menu-food-ordering/25457330) on my website. I want to make sure this plugin works with woocommerce food before i purchase pro. As of now, On a custom page it’s not working. Can you please help me with this?
]]>I recently installed the regular version of the upsell popup plugin.
My main use for it is for when a customer purchases one of our gift boxes, the pop up will ask if they would like to add a greeting card.
The gift boxes are bundled products, created using the WooCommerce Product Bundles plugin. The pop up doesn’t work when i try to activate for these products. It does work for simple products.
The greeting cards which are the product offered in the upsell are variable products. This seems to be fine when i activate on a simple product.
Please advise. Thanks, Michelle
Hey,
today I installed your free version of plugin to check how it works. Everything is fine except redirecting to cart when user click “YES” – then it is coming back to product page. When he click “NO” then he is redirecting correctly. It doesn’t matter what option I choose on product page. Clicking “NO” always works properly, problem is with “Yes” button.
Please have a look on this product: https://borner.pl/produkt/szatkownica-do-warzyw-hebel-v3-z-wkladka-blokujaca/
What is wrong?
Thank you
]]>If you don’t have the PRO version, this is how to get the popup to work on custom pages (non-Woocommerce pages).
Copy and paste the following code to your child theme’s functions.php file:
function wup_upsell_popup_scripts_enqueue () {
if (( is_page( 13 ) ) && (! thp_wuppro_active() )) { //CHANGE 13 TO THE ID OF YOUR PAGE!
$ajax_enabled = get_option( 'woocommerce_enable_ajax_add_to_cart' );
if ( 'yes' === $ajax_enabled ) {
wp_enqueue_script( 'thp-popup-js', get_site_url().'/wp-content/plugins/very-simple-woocommerce-upsell-popup/js/wup-ajax.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' )
)
);
wp_enqueue_script( 'wup-noajax-js', get_site_url().'/wp-content/plugins/very-simple-woocommerce-upsell-popup/js/wup-noajax.min.js', array('jquery'), '', false );
}
elseif ( 'yes' != $ajax_enabled ) {
wp_enqueue_script( 'wup-noajax-js', get_site_url().'/wp-content/plugins/very-simple-woocommerce-upsell-popup/js/wup-noajax.min.js', array('jquery'), '', false );
}
}
}
add_action( 'wp_enqueue_scripts', 'wup_upsell_popup_scripts_enqueue' );
Don’t forget to change the ID in the code above (line 3) to the actual ID of your page!
If you have the PRO version, refer to this documentation instead: https://woocommerce.upsellpopup.com/docs/woocommerce-upsell-popup-pro-docs/troubleshooting/
]]>Hi,
Great popup product – the only problem I’m having is that for Product Categories that DON’T use the Upsell Popup the user is NOT redirected to the cart after adding the product to the cart.
If I disable the Upsell plugin then the user is correctly redirected to the cart after adding the Product to the cart.
Any idea what is happening?
Cheers
]]>Hi. I have the pro version of this plugin, with the woocommerce redirect to cart setting disabled, and the product set up so that it redirects to cart whether the customer chooses ‘yes’ or ‘no’. It works fine when they select ‘no’ but on selecting ‘yes’ they are redirected to the cross sell product page, and when selecting ‘add to cart’ nothing happens (except for ‘view cart’ appearing next to the button).
Any help would be appreciated please, as this website is meant to launch tomorrow.
Dan
How can I change the “Successfully added to cart!” text that appears after clicking the submit button or add to cart?
It’s that little popup that has no title and confirms you just added to cart the upsold product.
Thank you
Hi Team,
I have added the code in Function.php with the page id, but that is not working…
please check the screenshots below…
https://ibb.co/92kjY9y
https://ibb.co/VjNDwtB
https://ibb.co/qWFmrKn
Please help ASAP
]]>GOOD AFTERNOON, I bought this plugin yesterday, but I would like the popup with my related product to be activated when I click on the end purchase button located in the shopping cart, from there the user decides without adding it to the cart or do not.
I already have it configured, but only the popup is activated with the product from add to cart.
]]>Followed all the steps incl troubleshooting steps regarding extra code and it still doesn’t trigger
]]>Hi
I added the plugin and created the upsell and cross sell products however the pop up from the add to cart button does not display ?? The add to cart goes straight through to the checkout.
Could you please advise how I can troubleshoot?
Thanks
Felicity
Good morning,
We were interested in your premium plugin, but upon testing the free version..
I assumed your plugin would use the existing linked products within woocommerce.
We have 1000’s of products which already have upsells linked to them. It woyld be weeks to work to individually relink new products the your plugin fields on the item page.
Is there any way of using the existing linked products.
Kind regards,
Mike
From the URL I provided, click “Select” under the Solopreneur package. The popup does trigger, but it just shows a continuous loading circle and doesn’t fully load and freezes the screen.
]]>How can i see or view what the standard or no css option pop up template look like in the back end of word press???
I cant find it any where to view it or customize
All so i have managed the settings and the pop up isnt even showing when add to cart button is pressed??
Woocommerce Upsell Popup
How can I use the same widget for cross-selling products?
]]>Hi,
Just downloaded this plugin but can’t get it to work. Getting this error: Bad element for Flickity: NULL.
I’ve looked into the code, and it seems like it’s failing in thp-popup-frontend.js:19, where it tries to start a flickity carousel on something that doesn’t exist: $(“.thp-carousel”).flickity()
How is that .thp-carousel created?
]]>Hello
I need to popup display on click on a custom button instead of add to cart button into a single product page
How is possible? help me
If any way to display a popup without a click on add to cart button? because of add to cart button display slide panel of the cart items
]]>Hi,
I really like your plug-in. Simple and no bloat.
I just have one request: is it possible to change the behaviour of the pop-up to close without refreshing or redirecting to the cart.
Thanks in advance
]]>