Raluca
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Undo cart deletion not working after update V 10.1.0Hi @bklogos,
thank you for reaching out.
Could you provide more details about the problem you are facing? Some testing steps would be great.
Could you also share your System Status Report?
The System Status Report is found in your WordPress admin under WooCommerce > Status. Please select “Get system report”, then “Copy for GitHub”, and then paste it here.Hi Jairo,
You’re exactly right thatCartCheckoutUtils::is_checkout_page()returns true if the current page is the designated Checkout Page, regardless of whether the actualwoocommerce/checkout blockis present.@alexggj there isn’t another function that searches recursively. I recommend creating an issue to adjust
has_block_in_pageto also search recursively. Until then you can do the recursive search on your end by grabbing the the blocks and searching for the checkout block. I generated this snipped with Chat GPT. Hope this helps.// UseWC_Blocks_Utils::get_blocks_from_pageto grab the blocks from the page.
function search_blocks_recursively( $blocks, $block_name ) {
foreach ( $blocks as $block ) {
if ( $block['blockName'] === $block_name ) {
return true;
}
if ( ! empty( $block['innerBlocks'] ) ) {
if ( search_blocks_recursively( $block['innerBlocks'], $block_name ) ) {
return true;
}
}
}
return false;
}
// Usage:
$checkout_page_id = wc_get_page_id('checkout');
if ( has_block_recursively( 'woocommerce/checkout', $checkout_page_id ) ) {
// Checkout block found (even if nested)
}- This reply was modified 11 months, 3 weeks ago by Raluca.
Hi @alexggj!
There isCartCheckoutUtils::is_checkout_page()you can to test if a page has the checkout block inside. Additionally there is aCartCheckoutUtils::is_cart_page().Rolling back to 9.7.1 would fix the issue. This week we’ll release 9.8.2 with a fix.
We managed to reproduce, we’ll announce here when a fix will be available.
I’m facing the same issue. The fix was to enable and show the postal code field—once it’s filled in, the delivery options show up. But how can I switch back to the previous setup, where everything worked without requiring a postal code?
@marhabaparfumuri how were you removing the postal code?
We weren’t able to reproduce. We’d appreciate more details about your setup so that we can assist you better.
Could anyone share their System Status Report?Go to WooCommerce > Status > Get system report, copy and past it here.
Thank you
For some context, card testing is on the rise globally, especially during the holiday season.
I suggest reviewing the steps in our doc on how to respond to card testing. We’ve also posted Card Testing Attacks and the Store API on our developer oriented blog with extra details on preventing card testing.Forum: Plugins
In reply to: [WooCommerce] Bot attackWe’ve also posted Card Testing Attacks and the Store API on our developer oriented blog with extra details on preventing card testing.
We’ve also posted Card Testing Attacks and the Store API on our developer oriented blog with extra details on preventing card testing.
We’ve also posted Card Testing Attacks and the Store API on our developer oriented blog with extra details on preventing card testing.
Forum: Plugins
In reply to: [WooCommerce] Free shipping not workingHi @cutu234,
Thank you for reaching out.
We tested your scenario and were able to replicate. We created a GitHub issue for this and surfaced it to our team.
Writing
65.00in the Minimum order amount for the free shipping setting might be a temporary fix.We regret any inconvenience this may cause and appreciate your patience as we work to resolve the issue.
Forum: Plugins
In reply to: [WooCommerce] Cart Page ProblemHi @ladybt,
Thank you for reaching out. Could you provide more details about your issue? What is it that you expect to see and what is the actual output. Looking at the imagine, I suppose that you see a wrong price for the product displayed on the left?
I tested on my website and things worked as expected.
Something that might help identify the source of the problem, is to rule out a plugin or theme plugin conflict. Can you disable all the plugins aside from WooCommerce extensions and switch to a default theme like Twenty Twenty-One and see if the issue persists? If doing this on your live site is not possible, can you create a duplicate site? We suggest using WP Staging(https://ww.wp.xz.cn/plugins/wp-staging/) if your hosting provider does not offer a staging server as an option.
Let us know!
Forum: Plugins
In reply to: [WooCommerce] Critical error / BugHi everyone,
We are tracking this issue on https://github.com/woocommerce/woocommerce/issues/53057. Our team is working on fixing this. Please follow the GitHub issue above for updates.
Forum: Plugins
In reply to: [WooCommerce] Error Message from WordPressHello @tomenr ,
Thank you for reaching out.
We are tracking this issue on https://github.com/woocommerce/woocommerce/issues/53057. Our team is working on fixing this. Please follow the GitHub issue above for updates.