Up to 50 percent off

Default value for custom taxonomies

This topic contains 7 reply and 3 voices, and was last updated by Tareq Hasan 10 years, 11 months ago
Viewing 7 Posts - 1 through 7 (of 7 total)
Author Posts
November 25, 2013 at 3:02 am 12752
Tareq Hasan Hi there, I have set up a form using 'custom taxonomies' for WooCommerce products (specifically the 'product type') and would like to have one option set as default - but there is no 'Default value' field - can this not be done? Ideally, I would like to use a hidden field for this but this assumes I know the relevant WooCommerce meta tag names and correlating values. I guessed _product_type with the value 'variable' and 'var' which didn't work. Is there a list somewhere with all meta tags / values used as default?
November 25, 2013 at 8:12 am 12763
Mahi Mahi

You can get all woocomemrce meta_key names from your database.

Check image :

Also, when you add fields you can set default values :

I hope i answer your question?

November 25, 2013 at 2:57 pm 12790
Director Director

That’s great – thanks for referring me to the phpMyAdmin 🙂

Though, I tried to find the meta tag for product type and found _product_type with the value ‘variable’ which I had already tried and it didn’t work, my added products are still ‘simple’ which seems to be the default. I also found the meta tag _product_data with the value ‘variableproduct’ but again, it didn’t seem to work. Any thoughts?

Is there a way to link the specific meta tags to the front end attributes or is this a trial and error exercise?

Thanks again…

From phpMyAdmin

From my Form Editor

On 25 Nov 2013, at 25 Nov 2013 02:09, weDevs Team wrote: > Mahi wrote:

You can get all woocomemrce meta_key names from your database.

Check image :

Also, when you add fields you can set default values :

I hope i answer your question?

November 25, 2013 at 3:05 pm 12792
Director Director

(just noticed that my screenshots attached in the email don’t show up here)

I just found in the phpMyAdmin all the different meta tags and correlating values that I have tried to give to products that I have since deleted. This suggests that the meta tags and values are still in the data base even if not used?

This doesn’t exactly help me in finding the right meta tag for a specific product attribute.

Any steer on this?

November 25, 2013 at 5:23 pm 12803
Mahi Mahi

Woocommerce Variable products still not possible with wpuf-pro. We are working on it.

For Downlodable product check this tutorial: http://docs.wedevs.com/woocommerce-downloadable-product/

For basic: http://docs.wedevs.com/woocommerce-with-wp-user-frontend-pro-tutorial-part-1/

November 25, 2013 at 5:32 pm 12806
Director Director

Ok so with respect to ‘variable products’ I suppose I’ll ask ‘contributors’ to add simple products and I will then convert (manually) to variable products in the back end. Far from ideal but okay. Do you know when this might get introduced?

With respect to other meta tags / values though – how do I link each attribute in the WP Admin pages to the list of several thousands meta tags and values in the phpMyAdmin list?

For example, I have made a customer registration form with address details and I would like for these to be recognised by WooCommerce as billing address / shipping address etc.

Thanks again…

November 25, 2013 at 5:43 pm 12809
Mahi Mahi

Hum.. if you check our woocommerce tutorials you should get all necessary meta_keys for products.

But, you got a point. We should write another one for user’s registration fields only for woocommerce to make it easy for customers.

let me allow couple of hours or may be 1 day, see what i can do here.

PS: people actually don’t want to bother new customers to fill-up long form on very first time when they do register on a new site. They want customer’s to fill all these (billing/shipping information) when customer decide to buy the product 🙂

November 26, 2013 at 8:57 pm 12886
Tareq Hasan Tareq Hasan

@Director, variable products in WooCommerce is really complex. Although the feature might come later or not at all in WPUF, we are going to release a theme by which you can turn your site to a full fledge e-commerce site with stores, much like ebay. Where user can register to your site and open stores and sell products.

Viewing 7 Posts - 1 through 7 (of 7 total)