I am working on a WooCommerce project. I need to add some entry based on ordered item in my custom table. If user ordered 3 items then those 3 entry will be place along with some data in my custom …
Tag: woocommerce
Get and display the tax rate on Woocommerce single product pages
I’m trying to find a way how I could only display the Tax rate (16% or 7%), which a product has. Basically the idea is that there should be a static tax like. The price includes 16% Taxes or The price includes 7% Taxes So the percent rate should be dynamic based on which rate the product has. Any idea
Add a line break in Woocommerce Product Attributes
I have a Purfume product with these attributes: Mint Apple Orange Lavander And in the product page, inside the additional informations tab, they are displayed on the same line, separated by a comma. …
If product category has children remove permalink from parent term in WooCommerce
Inspired from get woocommerce categories with subcategory, I am creating a drop down section and I was wondering if there is any way to remove the permalink from the parent category if it has a child category. Here is my code example: How can I display a link on top level product categories terms only when there are no children
WooCommerce – Turning the product tag cloud into a complex refine feature
QUESTION: How am I able to combine these two blocks of code so they work as one? I do not require any shortcode solutions, I prefer the function format used in the first block of code, however the …
Hide orders with status (Pending Payment) on WooCommerce My Account page
Inspired by the thread ‘Hiding order status in My Account recent orders list page’ I tried to hide orders with status (Pending Payment) on the ‘My Account’ page. I modified the code slightly, but I can’t get it to work. I really appreciate any help. Thank you. Answer Right now you are using the woocommerce_my_account_my_orders_actions filter which will let you
Set a max displayed available stock quantity on Woocommerce archives for variable products
I want to set the maximum number of stock available items on Woocommerce shop pages. I am using Display the stock availability for all product types in Woocommerce archive pages answer code, which does a great job, showing the available stock for variations in a Woocommerce shop. But I want to show a maximum number, say 50, if the stock
PHP return value formatting
Could you please help me out how i would be able to customize the output of the below code which was added to wordpress/woocommerce? Currently it shows the sales price and the regular price, and i’d …
Display product custom field as order item meta on WooCommerce admin order pages
I have created my woocommerce products (fruits and vegetables) with a bunch of custom meta data I can correctly input and display them on my website. One of this data is the unit (ie kilos, box of 6, …
Add product weight and dimensions as order item meta data on WooCommerce admin manual orders
based on Save product custom-field as custom order item metadata for WooCommerce admin manual orders I have these codes that show the weight and dimensions of the product for orders placed from the frontend, but I can’t get them to work for orders that are placed manually from the backend. When I add the products I do not see the