Home Forums WC Vendors Pro Support Default Form Value on Variable Product

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 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #57000
    Danielle
    Participant

    Hello,

    I am wanting to make the “Default Form Values” select field under the variations tab to default to the first option instead of having none selected. I have found a way to modify this within WooCommerce, but those changes aren’t reflected on the vendor Dashboard. I then found where to modify this in the wcvendors-pro-product-variations-default-attribute.php and the wcvendors-pro-product-variations.php, and the changes I made there work. The problem is that I don’t see a way to modify these files and not have them changed when updating the plugin (like WooCommerce does). Can you tell me if there is a way to accomplish this?

    Thanks so much for your help!

    #57079
    Anna
    Member

    @dispnse,
    There are not any filters really at all throughout those core files for variations.
    If you would be really specific about what changes you have made- I can pass along that info to Jamie and see if it is possible to add a filter for those areas to make the changes with a filter and therefore have them be upgrade safe.
    I do not know if there is the possibility of filters in this part of the code- and that may be why they are not there– so please give me more specific information and I can check on this for you.

    #57165
    Danielle
    Participant

    Hi Anna,

    Thanks for the response. Specifically what I’ve changed is removing the first option after the select.

    <option value=””>’ . __( ‘No default’, ‘wcvendors-pro’ ) . ‘ ‘ . esc_html( wc_attribute_label( $attribute[‘name’] ) ) . ‘…</option>

    I really appreciate your help with this!

    Thanks!

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