To ensure the address fields are required when a user selects a shipping method other than "local pickup," I need to implement dynamic changes using an action instead of just setting them as optional by default. Currently, I have managed to make the field ...
I prefer a two-column layout for the checkout process on www.narwal.shop/checkout Here is the code I added: /* Large devices (large desktops, 1200px and up) */ @media (min-width: 993px) { /* --------------------- WOOCOMMERCE -------- ...
I've implemented code to adjust checkout address fields for more accurate formats in various countries. The segment that updates the labels for UK and New Zealand states is not functioning properly though. In the UK, the County (optional) field retains i ...
I have implemented custom code to create unique checkout fields based on the number of products in a customer's cart. Each product requires 4 customized checkout fields, displayed in two columns side by side. The expected result is as follows: co ...
Is there a way to trigger an email to be sent to the user when they are about to make a purchase at checkout? I tried implementing this code in my functions.php, but it seems to be sending multiple emails in a random manner. I suspect it may be due to the ...
Can someone assist me with displaying the correct shipping fees on my WordPress and WooCommerce site? I have set my shipping fees as follows: Flat rate (Delivery): $10 Free Shipping (Free Delivery) Local Pickup (Pickup): $0 When a customer goes to check ...
I need a solution to hide UPS shipping options on the cart and checkout pages when the total weight of items in the cart exceeds 150lbs. Here is my proposed code snippet: function disable_ups_shipping_over_onefifty($available_methods){ global $ ...
In my Woocommerce project, I have successfully added a footnote to a specific checkout field by using the following code snippet: add_action( 'woocommerce_form_field_text','add_address_disclaimer', 100, 2 ); function add_address_discl ...
Attempting to implement an AJAX update for the shipping details in my checkout cart... I have set up the necessary function in functions.php function custom_update_shipping() { WC()->cart->calculate_shipping(); echo "hello"; die(); } a ...
I have a website located at Within that page, I have included the Cart table using a woocommerce shortcode. Currently, the cart table is positioned below the billing details and payment options section. My goal is to move this cart table to be situated ...
I am facing an issue with the update_post_meta function. I am receiving a user-submitted value via $_POST and trying to save it to post meta. Everything seems to be working correctly, except when the value is '0', the post meta does not get upda ...
In my current scenario, a non-logged-in user is restricted to adding only one product to their cart. I have implemented a filter on woocommerce_add_to_cart_validation that seems to be working correctly with $woocommerce->cart->cart_contents_count&g ...
I've been struggling to remove a certain area on the checkout page without success. I attempted using this CSS code: .avada-myaccount-user-column .username { display:none; } https://i.stack.imgur.com/okFg9.png https://i.stack.imgur.com/GisRQ.png Current ...
In my custom Laravel shop, there is a delay in creating an order due to a third-party API call. To avoid users submitting the checkout form multiple times, I use JavaScript to disable the submit button and display a processing icon instead. However, some ...
My shop has user profiles with registered data. On the checkout page, users can modify the automatically filled information from their profile. I want to ensure that if a customer enters a different address or email during checkout, this updated informati ...
Instead of the standard [Remove] option on the WooCommerce checkout page for removing coupons, I would like to change the text to say [Remove & Re-Calculate]. After trying to implement the code below to make this change, the text was successfully upda ...