Home Forums Plugin Support WP User Frontend (Free Version) Product_cat field as default WooCommerce field

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 5 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #13808

    Post count: 7

    Hi there,

    I’ve set up a website for an art community allowing artist to upload their art on a website for customers to either rent our buy. I’m using WooCommerce as a platform for this. I thought it made sense for the artists’ ‘first + last name’ to be used as a ‘category’ in the WooCommerce terminology.

    Artists are first registering on the site with name and address etc. and are then asked to upload their art in a second subsequent form. In this second form, I have a field called ‘Artist name’ that is linked to WooCommerce ‘product_cat’ field – which works great. Though, some artist enter their first name whereas others enter both their names – leading to inconsistencies.

    Is there a way to solve this? For example by adding a hidden field automatically setting the value of the product_cat field to the artist’s ‘name + surname’ (already captured during the artist registration)? I could make the category to only equal the artist’s surname but would still need to know how to set the product_cat field to another WooCommerce field already captured?

    Hope that makes sense.

    Thanks in advance, Mattias.


    Tareq Hasan
    Post count: 2831

    You need to use action hook field to put a hidden field there.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Product_cat field as default WooCommerce field’ is closed to new replies.