Questions tagged [checkout]

Completing a purchase is the final step in the shopping journey after spending some time on a retail app.

What is the specific method or action hook triggered when a shipping method is changed on the checkout page?

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 ...

Woocommerce Dual Column Payment Portal

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 -------- ...

Modify the address fields settings for Checkout and My Account based on the country in 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 ...

Enhance your WooCommerce shopping experience by incorporating a variety of personalized checkout fields organized into two distinct

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 ...

Notify the user via email when they are on the WooCommerce checkout page and have items in their cart

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 ...

Calculating shipping fees according to service type, customized delivery preferences, and total number of items in Woocommerce

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 ...

Automate the removal of a designated shipping method in WooCommerce through programming

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 $ ...

Problem with customizing HTML in WooCommerce Checkout Field

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 ...

Refresh shopping cart information using AJAX in WooCommerce

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 ...

Displaying items in the shopping cart across two separate columns

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 ...

What is the best method for preserving the state of a custom checkbox field in the WooCommerce checkout process

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 ...

Having trouble with adding a product to your cart after using the add_filter() function in woocommerce_add_to_cart_validation

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 ...

What is the process for eliminating the message "Hello Member" on the Woocommerce Checkout page?

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 ...

Issue in Laravel: Repeated form submissions causing disruption in the checkout process

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 ...

Prevent users from updating their profile if data has already been provided during Woocommerce checkout

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 ...

Make alterations to the "Delete" link wording for a WooCommerce coupon on the checkout page

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 ...