In WooCommerce I can only enter the shipping price excluding tax. How can I make the given price including tax? The settings to show ‘prices including tax’ only applies to the products. So for …
Tag: woocommerce
Variation Product Shows Price Twice | WordPress WooCommerce
In wordpress WooCommerce, when i add a Variation Product, variation is set only by Two colors, Starwhite = 9000 Ivory = 15000 On the Single Product page, I get to see price mentioned twice, as shown in screenshots. I want to retain the price defined in variation. Remove the other one. The price which is not required is showing up
WooCommerce orders page add customer role custom column
I want to add column to show the customer role on the WooCommerce orders, I search and everything I found is for one user. I also found this code on this link (WooCommerce show custom column) but I do not understand where I put what I need. I also found this code (https://gist.github.com/corsonr/5975207) but I do not managed to get
How to add woocommerce custom order status?
I have added new custom order status to woocommerce by using following function. whenever I go to edit order and changed the order status to newly added custom order status and click on Save Order button. After loading the order status automatically changes to Pending Order not stands in newly added custom order… How to overcome this problem…? Answer The
WooCommerce: Change priority of tabs by number of product ratings
I have this code that set reviews tab to show first before item description. Its works fine, But i want to set it to do it only if the number of reviews high from 0. Something like : Is there any hook/ function / filter to get number of product reviews? Thanks. Answer reviews in woocommerce is just comments in
WooCommerce – How to get shipping class of cart items in calculate_shipping function?
I have created a WooCommerce plugin that enables free shipping for subscribers. It seems to have broken following a recent WooCommerce upgrade. Specifically, the problem seems that the shipping class of the cart items may not be being retrieved correctly. Here is my calculate_shipping code – can anyone advise what is wrong? UPDATE I’ve looked at the %package array and
Search by order item SKU or ID in WooCommerce Orders Admin page
What I am trying to do is to be able to search by order item SKU or ID in the WooCommerce Orders Admin page. What I have found/done till now, but with no success is the following at functions.php file. I suppose the issue is the value of $search_sku at the line with the add_post_meta. I have also tried it
update_order_review( ) on button click
I have a custom button on my checkout page, on click I’m adding a product to cart via AJAX. JS: PHP: After that, I’d need to refresh the order review, so it displays my newly added product also. How can I do that? Answer All you need to do is call a trigger on the body to update the cart.
How to get all checkout fields from WooCommerce?
I like to get all available checkout fields, including third party ones: returns a fatal error: Is there an offical way to get them? Edit: My plugin needs a dropdown field with all available checkout fields on the backend. What I like to have is an array like this (I var_dump the $checkout_fields variable of the WC_Checkout class) : Answer
WooCommerce: function that returns all product ID’s in a particular category
I think the title of the question is fairly self-explanatory, but to detail it… I’m trying to make a custom category page in Woocommerce. What I need is to return all the product ID’s in a particular category. I’ve seen this post, but it uses the WP_Query way of doing things, which is pretty ugly. I’d prefer to use something