swardasz
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] How to force reloading whole cart pageTo explain it more exactly:
1. in functions.php I have a function message_before_cart() that is executed also in functions.php by:
add_action( ‘woocommerce_before_cart’, ‘message_before_cart’ );2. But this function “message_before_cart” are executed only once when the cart page is loaded
3. I need to reload the message_before_cart (so the cart page) every time when the user change the product quiantity and press the Cart update button
4. I added to functions.php the following code:
add_action( ‘woocommerce_update_cart_action_cart_updated’, ‘on_action_cart_updated’, 20, 1 );
function on_action_cart_updated( $cart_updated ){
header(“Refresh:0”);
}
but it doesn’t work – the cart page don’t be reloaded after cart update
5. I even added to functions.php the following code:
add_action( ‘woocommerce_update_cart_action_cart_updated’, ‘on_action_cart_updated’, 20, 1 );
function on_action_cart_updated( $cart_updated ){
header(“Refresh:0”);
add_action( ‘woocommerce_before_cart’, ‘message_before_cart’ );
} but it also doesn’t reload the message (and page).
Is there any other option to do reload the cart?Forum: Plugins
In reply to: [WooCommerce] How to force reloading whole cart pageThank you Ahir – I’ve try your code and insert in the function body the following code:
header(“Refresh:0”);
but this doesn’t work.
When I change the product quantity in the cart and then press the button “Update cart” the cart page doesn’t be reloaded.
I’ve tried to add the product using Chrome, Firefox, on different computer and on mobile and there is the same effect. On some browser a spinning ring is visible on inactive “Add to cart” button so it suggests that it’s gone to a loop.
Hello,
I’ve made changes according to your recommendation but I’ve got the following result:When I click the Add to cart button it becomes inactive and it doesn’t move me to the basket and even the basket icon in the header shows still 0. Simply – I seems that nothing had happened except the Add to cart button become inactive.
But next when I click to another page the product suddenly appears in the basket (basket icon shows 1 and the product is in the basket).
So your instruction help to add the product to the basket directly but it’s done in such a very strange way that it could not be accepted.
Do you know what could be the reason for it?
I’ve seen the option you write off. But it only will change the text which appears on the button. Your plugin changed the behaviour of my shop: after plugin activation “add to cart” buttons on my shop page (page with product list) changed text to “Select options” and in the same time the buttons stopped putting products directly to the cart (Select Options button leads to the product details – product page).
And my question was how can I use your plugin and in the same time keep behaviuor of the buttons on shop page (they should lead directly to cart – not to product page).Forum: Plugins
In reply to: [WooCommerce] Prices without tax for the first few minutesThank you very much for your help! I’ve changed the option in Woocommerce Settings->Taxes “Set taxes according to shop location” and now it works fine.
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] old prices still shownSorry, I’ve made the wrong diagnosis – the problem was connected with a lack o taxes.
The topic could be deleted.
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] old prices still shownAnd just a moment ago I do another test: I published quite a new product with the slightly lowe price 118 z? and when I go to incognito mode I see a diffrent price 95,93z?. I’ve never set such a price by myself.
I remark that I’ve all plugin (except Woocommerce) switched at the moment.Hello Marta,
I deactivated all plugins except WooCommerce, reinstalled Flexible Product Fields, and the same situation.
Kind regards
SlawekForum: Plugins
In reply to: [WooCommerce] Discount on delivery cost based on min cart valueJohn,
Thank you for the help.Forum: Plugins
In reply to: [WooCommerce] Discount on delivery cost based on min cart valueSorry, i’ve missed your question. Yes, i’d like the customer to receive free shipping when the cart is over $20