I´m using hooks for customizing variable product prices. However, this answer does not seem to be working for Woocommerce 3.3.5. I use following (from the previous post) on my functions.php file: …
Tag: woocommerce
Sorting priority for specific Woocommerce checkout fields depending on country
In Woocommerce, I need to set the default ordering priority (sorting) of three fields on the checkout page: The first change depends on the choice of the ‘IT’ country code: postcode – ‘priority’ => 91, The other two are free of conditions, I just need to set the default priority: billing_email – ‘priority’ => 30, billing_phone – ‘priority’ => 40,
Check if WooCommerce product (simple or variations) are in stock and display label as shortcode
I would like to have a shortcode that I can add to a WooCommerce product page. The shortcode would simply check the product stock and say “In stock” if it has any. And then “Out of stock” if the product (or any of the variations) don’t have inventory. This shortcode should work for both Simple products and Variable products. With
Make Shipping Method fields Mandatory on Woocommerce checkout page
I’m sure that there is a quick bit of code out there that will solve this issue, but I’m struggling to find it. I have a WordPress/WooCommerce website set-up and am using the WooCommerce Shipping Pro with Table Rate plugin to specify delivery rates as well as the local pickup option, within WooCommerce’s shipping settings. This is all working fine,
Change “Read More” button link on Out of stock Woocommerce products
Is it possible to change the Read More button of a out of stock product to redirect to a specific page/url or popup message instead of going to the single product view. Whenever I have an out of …
Display product category names in Woocommerce order details
In Woocommerce, How I can display the product category names in order details (and in backend of Wordpress). Also is it possible to make them appear in the email notifications.
Hide shipping methods based on products categories in Woocommerce
With Woocommerce, I would like to hide all shipping methods except “Local pickup” when a defined products category is in cart… The code below does that for other product types, except variable products: What can I do to make it work for variable products too? Any help is appreciated. Answer I have revisited your code and here is correct way
Display total cart shipping volume value in Woocommerce
I use woocommerce for wholesale customers who order containers of furniture – normally 40 foot containers with a volume of 68 cubic meters. Is there a way I can show somewhere on the website – maybe in the header area a box with showing the total m3 of products in their basket? I need to show the client when they
Sort Orders IDs alphabetically based on the shipping last name in Woocommerce
I need to sort my $order_name (more specifically $order_shipping_last_name) alphabetically. I’ve tried many different basic php sort() methods, in many different places, and can’t get this to work. I’m assuming I’m missing something? In my code, get_all_orders_that_have_a_product_variation( $product_id ); function comes from this answer code that allow to get an array of orders IDs from a variation ID… The list
Shipping carrier custom fields validation in Woocommerce checkout page
I have added two custom input fields in the shipping method section by changing the template /genesis-sample/woocommerce/checkout/review-order.php I have also managed to get them conditionally required. Only when the specific radio button is checked, the input fields appear and become required. I am using jQuery code to make the fields appear and disappear. All of this is working fine. The