I am using this code to add custom attributes The result of this code I got added just product attribute Name without term values… See the picture I searched about that very much but did not got any answer. Answer There is some mistakes in your code. Your main mistake: The attribute terms to save as product meta data (at
Tag: custom-taxonomy
Exclude variations with 2 specific attribute terms from coupon usage in Woocommerce
I need to prevent coupons being used if customer have any specific product variations in their cart with following attribute terms: attribute_pa_style => swirly attribute_pa_style => circle I’ve looked through the Woocommerce scripts that apply to restricting specific products and specific categories, but can’t figure it out with regard to attributes and all coupons. Any help is appreciated. Answer This
Display specific formatted product attributes in WooCommerce cart items [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago. Improve this question In woocommerce I am able to display some formatted product attributes under my products on the archives pages with the following code: How can I
Display specific custom product attributes on single product pages in Woocommerce
I found the following code to display all custom attributes on a product detail page (with a specific bar-style design that I need). The code works like a charm and I have the proper CSS to display horizontal bars of my custom attributes. Problem I have is that I only want to display specific named attributes and don’t know how
WooCommerce product additional information shortcode
I am new to WooCommerce and am looking for a solution to display Product attributes on a post page. I’ve made research and some test but nothing seems to work. Ideally, I would like to use a …
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
Set back to product category in Woocommerce Product Page
I want to set a back button on my product page (to the product category). I cant manage to get the category and echo on the page. I have tried to use this code and it doesn’t work… The first problem I have whit this code is what I have no option to set the parent category for the product.
Creating WooCommerce product variation adds an empty attribute value
When adding variations to a WooCommerce product it is adding in a blank attribute. Meaning that when I try to add in my own attribute it gets appended to an existing array. Example code I am running: Then when I var_dump($product_variation); I get the following: So when I view the product in WooCommerce admin all my variations are there but
Counting cart-items of specific product category
I am trying to get the number of items in the cart just from a specific product category in WooCommerce. I am doing a site for a winery. It has alcoholic and non-alcoholic products. All the wine falls under the main category of ‘wine’ or category id 34, with many subcategories and products underneath them. For any thing that falls