Home Forums WC Vendors Free Support Custom fields via wp-admin

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #67904

    I understand from you documentation that your templates are super customizable and I can add lots of custom fields to the products. Is this something that always requires editing the template files (i.e. coding), or is this something that a non-coder can achieve easily via wp-admin? Thank you

    #67935
    Anna
    Member

    @alexandra
    The options for the product form in WC Vendors (free) are limited.. and those will need to be added by customizing the WooCommerce files.
    For WC Vendors Pro, our templates can be customized, and fields can be added with code. It is not terribly difficult and we can guide you- but adding fields cannot be done straight from the wp-admin, no. It does require some coding, and sometimes modification to the templates.
    For example, here is how some added fields were created by adding code to the product-edit.php template file and the theme/child theme functions.php file:
    https://www.wcvendors.com/kb/adding-a-custom-field-for-products/

    #68097

    I tested it and it’s working as you say. However, my problem is that I already have the custom fields pre-defined by my theme.

    So, going with your example, assume I already have a custom meta key “product_ingredients” that I want to populate via the product form.

    As you say in your example, if I just write “product_ingredients”, it gets ignored. But if I use “wcv_custom_product_ingredients”, it creates a new meta field with that name rather than recognizing my existing “product_ingredients” field.

    Would greatly appreciate your guidance on that. Thank you so much!

    #68636

    Hi Anna, any guidance you could provide on this issue? Thanks

    #68699
    Anna
    Member

    @alexandra
    Hel,
    Ok- I see.
    In this case, this article would likely be more valuable to you.
    https://www.wcvendors.com/kb/integration-woocommerce-product-gift-wrap/
    This shows how a user integrated the gift wrap plugin with WC Vendors Pro front-end forms.

    You’d need to find the post_meta created when using the fields that are built into your theme.
    For instance.. the update post meta you see at the end of that gist.. you can see that they update the post_meta form the gift wrapping plugin (_is_gift_wrappable) to the WCV field id’s from the new form fields created for the gift wrap front-end forms in Pro. See lines 28-31:

    if ( $wcv_enable_wrap = 'yes' ) {
    		update_post_meta( $post_id, '_is_gift_wrappable', $wcv_enable_wrap );
    		update_post_meta( $post_id, '_gift_wrap_cost', $wcv_gift_wrap_cost );
    } 
    

    Does this make sense?

    #69715

    Hi Anna,

    Thanks for that. It’s clear.

    Regarding multi-image upload fields and repeat fields which are not listed under your supported fields: Would it be possible to write a custom code to enable such fields, or would you recommend the Advanced Custom Field plugin to do that?

    So far, I had been using the WP User Frontend plugin which is not supported/integrated into WC Vendors, correct?

    Thanks

    #69931

    Hi Anna,

    Any guidance on how to add multi-image/gallery fields and repeat fields in the WC Dashboard (Product Add/Edit Form)?

    Thank you

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.