I am building pizza delivery website with WooCommerce. In fact when customer is checking out, he can select when he want to have food delivered. The select box should contain 15 minute intervals ranging from the current time and clearing all past hours. The first option I want is to be “As soon as possible”, and then the next option
Tag: checkout
Custom WooCommerce datepicker checkout field saved and displayed on orders and emails
I have added a new custom datepicker field on the WooCommerce checkout page. I am using Enabling a date-picker in Woocommerce checkout fields. All it’s OK On checkout page. But now I really don’t know how can I save and add this new field on the order notes. Any help is appreciated. Answer Section 1 The following will display a
Remove WooCommerce Payment Gateways for defined groups of product categories
I’ve manged to get this code to work for removing ONE payment gateway based on one or more product categories. What I need help with is removing multiple payment gateways as well. In other words; it …
Show or hide checkout postcode field based on chosen city in WooCommerce
In Woocommerce, I am trying to hide the checkout postcode field if a specific city field is selected. I found a working code that hides the billing phone if company field is empty: I don’t know how to alter this code to make the required postcode field to be hidden when a specific billing city is selected. Any help is
Check WooCommerce User Role and Payment Gateway and if they match – Apply fee
I’m struggling with applying a fee for an array of user roles if and when a specific payment gateway is selected. The code I’ve written works fine if I do not check the user role, but once I try and …
Customize addresses fields on WooCommerce My account and Checkout
I’m using the woocommerce_checkout_fields filter to edit the value of woocommerce field labels. It works fine on the checkout page (as you might expect), however I cannot understand why it doesn’t also take effect on the account pages. I thought these fields were still taken form the same place? More specifically, I’m talking about the address fields on the edit-address
Disable item name link for specific product in Woocommerce cart checkout and orders
I’m looking to disable the product link to the product page of a specific product in the cart. This product is a gift product automatically added to the cart when the cart subtotal amount equals a …
Woocommerce checkout with edit address layout
So, when you go to checkout you see all billing fields inputs but I want to remove all them and display a card based like on My Account / Edit Address with the Edit button. It this possible? Basically I need to eject that card on the billing fields place. Any advise? I am already using “Hide billing address from
Add custom checkout field based on product category in Woocommerce
I need to add custom checkout field based on product category. I found this code which works with products, but it is very time consuming to add Ids from every new product from particular category. How to modify this code to work with product categories? Answer Try the following to handle product categories (handling parent terms too): Code goes in
Pre-fill Woocommerce checkout fields with Url variable before session created
I have wordpress site running woocommerce with a few products. I want to send my customer a url to their product which includes their name and email so i can pre-fill name and email on woocommerce …