Home Forums WC Vendors Pro Support My custom field is not visible

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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #58817
    esteban
    Participant

    Hi Anna, I was able to add the “condition” field to the “add product form” but I did not get it to show the value entered in the tab of the product already published … I placed the code that comes out at the end in this Link and I’m like this

    add_action(‘woocommerce_product_meta_start’, ‘wcv_item_condition’, 2);
    function wcv_item_condition() {
    $output = get_post_meta( get_the_ID(), ‘wcv_simple_auctions_item_condition’, true );
    echo ‘<b>Condición del producto:</b> ‘ . $output . ‘<br>’;
    }

    But the image value does not exit

    I hope you help me, thanks

    #58859
    Anna
    Member

    Hello,
    I have this gist, which is a working example of how to add a field to your product add/edit template (product-edit.php) and then have the output display on the product page.
    It looks as if you have already done at least part of this process; however, if you take YOUR code,, and compare it to this gist, do you see anything different? Mine is just a simple field for the vendor to add the text new or used, rather than a select box:
    https://gist.github.com/fervous/ce8059e2144f05b813c5932fbd1d3c6d

    #58873
    esteban
    Participant

    Hello Anna,
    I really want it to work with the “selector” because I whant you to choose between the options “new, like new, very good, good or acceptable”… Could you help me please?

    #58891
    Anna
    Member

    This should work, Esteban. I’ve given instructions within the GIST. If needed, just change and/or add new options for the vendors to have more choices in the drop-down:
    https://gist.github.com/fervous/048b04a4a73cde43fd77b34405917f54


    @estebanvilla1603

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