Woocomerce ajax call retun home page HTML in response - php

Suddenly when I go to the Apply coupon by clicking on the "Apply Coupon" button in cart page. Then I saw the homepage design on the cart page. I don't know what's wrong with the Woocommerce suddenly. Also when I go to the checkout page and fill up the details then also shipping charges not calculating. I think something wrong with the Woocommerce ajax.
Anybody help me out, please.

I got solution on this issue. There was anotherplugin had the issue after updating plugin. So I have disabled the plugin and it worked.

Related

Quick Add to cart redirect to product page for no reason

When i click “add to cart” button, it redirect me to product page without reason..this happend on all site after updating woocommerce plugin..is there any fix for this…is there myb any php function for fixing it..
Just need to reactivate woocommerce plugin and it will works again. If somebody get the same problem like me this is your answer.

Woocommerce Checkout is shown as dialog

I administrate a wordpress page and I have a problem with the woocommerce checkout.
My checkout is not like every other checkout, it is shown as a dialouge and I dont know why.
It is looking like this
Does anyone know where I can search for the reason or know why this checkout is created.
My theme is BeTheme and I use elementor. I have already tried to disable all plugins, which are not woocommerce.
Thank you in advanced.

Woocommerce redirection hook stopped work for no apparent reason

I am trying to redirect directly directly to checkout when user hits "add to cart" and my code worked before but somewhere along the way it stopped working and I cannot pinpoint why.
add_filter( 'woocommerce_add_to_cart_redirect', 'rd_redirect_checkout_add_cart' );
function rd_redirect_checkout_add_cart() {
return wc_get_checkout_url();
}
So now when i hit add to cart, the page refreshes, the item gets added to cart and that is about it. If i hit it again, it again refreshes and adds to cart. No redirection happens. this is the url site.com/?add-to-cart=499
I have tried disabling all plugins, removed the redirect code, and used redirect plugin, tried everything and dont know what else to do.
Any ideas would be helpful. Many Thanks
In your WordPress Dashboard go to
WooCommerce > Settings > Products > General
And disable both options:
“Redirect to the cart page after successful addition”
“Enable AJAX add to cart buttons on archives“
Your code will work again!

Woocommerce one page checkout custom

I want to use one page checkout process in woocommerce. i have created a new page(addition) with some name and have added the shortcode
[woocommerce_cart][woocommerce_checkout]
here is the shortcodes i am using
It is working fine but login for returning customer login button is not working.
but on checkout page returning customer login button is working.
Can you please help?
i want to make one page checkout process. Image is attached Please help
Try to go to the woocommerce settings (checkout tab) and set both cart page and checkout page to your single-checkout page

How to fix add to cart page refresh issue in magento?

I have created one woocommerce site in magento, I am facing one issue in add to cart page. how to add a product in cart without refreshing the page? . Please suggest.
you can try below extension for ajax add to cart.
https://www.magentocommerce.com/magento-connect/ajaxcart-3-15606.html
So, please try this and let me know in case of any query.
Thanks
You can use the ajax request for add to car withour refreashing the page.
See the below link for how to customize this functionality.
http://excellencemagentoblog.com/blog/2011/10/04/magento-add-product-to-cart-ajax/

Categories