custom-taxonomy Questions
2
Solved
I am setting up a site for a school that sells both virtual products (fees and excursion payments) and Physical (uniforms) however they would like to have order notifications for each category to b...
Cervine asked 4/1, 2019 at 7:38
3
Solved
When adding variations to a WooCommerce product it is adding in a blank attribute. Meaning that when I try to add my own attribute it gets appended to an existing array.
Example code I am running:
...
Gaskell asked 5/12, 2017 at 15:56
3
I've been unable to crack this nut, but can't help feel that I'm missing something simple.
I'm developing a WooCommerce plugin that should provide a list of shipping classes on its admin settings ...
Jocelyn asked 15/4, 2018 at 16:56
2
Solved
I am trying to get product categories in WooCommerce, but get_terms() function doesn't work for me. I am getting an empty array.
What I am doing wrong? How to get all Woocommerce product category ...
Beeeater asked 12/4, 2019 at 11:37
7
I'm using wordpress, want first-level taxonomy terms to be ordered by name but below code is not giving me desired result. Here is my code:
$args = array(
'taxonomy' => 'tax-category',
'hide...
Dzungaria asked 6/7, 2017 at 7:47
3
Solved
I used the following code to hide the single product pages on woocommerce, which worked perfectly. Anyone trying to access single product pages are redirected to the home page.
I now want to hide ...
Raviv asked 30/11, 2017 at 16:24
4
I have registered a custom taxonomy in Wordpress, and I can't work out why it is not displaying in standard Wordpress posts, since Gutenberg has been introduced. What I mean by this, is that it doe...
Izzy asked 26/4, 2019 at 15:45
2
Solved
How can I display only the product tags for the current single product page and not all the products tags?
I've found questions about most popular tags but not for that.
Devisable asked 7/2, 2018 at 16:32
4
Solved
I have an issue how to remove a cart from a category product. It works just fine if I apply it to a specific id or all in general, but I am unable to do it for a category. Below is my code I have d...
Tzar asked 15/1, 2017 at 11:58
1
Solved
What I want: modify the query of the WooCommerce search form (in frontend) to display the products by searching in the name, description and product_tag of the products.
What I have: I'm trying wit...
Openhearted asked 28/7, 2020 at 9:33
3
Solved
I have a client with the following issue:
I need to be able to split their WooCommerce WordPress site into essentially two categories. If a user is logged in as a "Wholeseller", only products in t...
Schear asked 17/8, 2016 at 19:29
9
Solved
In Woocommerce, I am trying to get product custom attribute values but I fail miserably and I don't get anything.
So I tried:
global $woocommerce, $post, $product;
$res = get_post_meta($product-...
Elman asked 14/11, 2012 at 7:55
3
I have created custom user taxonomy for user and its working good for single taxonomy.
From Bellow reference guide i have created custom user taxonomy.
Reference guide:- http://justintadlock.com...
Burlesque asked 18/12, 2015 at 8:37
2
I have a custom taxonomy called campaign and a custom post type called asset. For assets, I want to have the following permalink structure: mysite.com/<campaign_name>/<asset_name>. I ha...
Ordonnance asked 3/9, 2019 at 5:22
3
I want to get the ID of a Woocommerce product attribute using the attribute name. e.g. pa_foobar
I know that product attributes are taxonomies, but get_taxonomy() doesn't return the taxonomy ID. I...
Metritis asked 29/4, 2018 at 17:23
1
Solved
I am using this code to add custom attributes
$attributes = array(
array("name"=>"Size","options"=>array("S","L","XL","XXL"),"position"=>1,"visible"=>1,"variation"=>1),
array("na...
Soudan asked 18/2, 2019 at 13:43
1
Solved
I try to change the value of "Select a option" to the attributes names. So in a dropdown where you could select the color it should be the name color as the first one. So far it worked with this co...
Artel asked 31/1, 2019 at 15:30
1
My custom taxonomy (WooCommerce attribute) already exists and I am using the following to add a new term to the taxonomy and associate it with my WooCommerce product:
wp_set_object_terms($product_...
Contractile asked 10/12, 2018 at 11:51
2
A client of mine requested this weird change based on Wordpress' plugin Woocommerce in order to make things "easier"..
Is it somehow possible to have all product attributes automatically
added ...
Huh asked 8/2, 2017 at 12:59
1
Solved
I'm currently trying to get all products in a category page which are visible in catalog. I've tried this here but I'm getting no products with this query:
$args = array(
'post_type' => 'produ...
Hypethral asked 6/12, 2018 at 19:30
1
I am working on a Wordpress site and I am using Woocommerce, I have a lot of product category's and I would like to add them in the code and not in the Wordpress CMS itself.
Does anyone know how ...
Cawley asked 24/11, 2018 at 17:6
1
Solved
I am using a lot of product attributes on my products in Woocommerce and I am looping through all variations in a table that can be displayed with a shortcode on a product page.
For this table I n...
Forego asked 31/10, 2018 at 9:14
1
In woocommerce I am using the code from this answer thread that assign a "Sale" product category to a product that is on sale (so with an active sale price).
I have tried to remove "Sale" product ...
Blastogenesis asked 30/9, 2018 at 6:4
2
Solved
In Woocommerce I would like to alter the price of a specific product (in this case with an ID of 87) on both the single product page and for related cart items.
The product price needs to be incre...
Wines asked 29/5, 2018 at 0:8
2
Solved
How can I create attributes for WooCommerce from a plugin?
I find only :
wp_set_object_terms( $object_id, $terms, $taxonomy, $append);
From this stack-question
But this approach required id of...
Kroo asked 9/4, 2015 at 21:37
1 Next >
© 2022 - 2024 — McMap. All rights reserved.