Home Forums WC Vendors Pro Support Customise Product Fields

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
  • #38618
    dave
    Participant

    Hi,

    I’m currently trying to enable the stock quantity option for simple auctions and am hooking into wcv_product_manage_inventory etc.

    However, what i really want is for the stock qty to:

    Display without the checkbox being displayed
    The default value to be 1

    Also, is it possible to show the validation errors at the top of the page?

    When the product form values fail validation, there’s no indication to the user those fields are not filled in?

    If there isnt a simple way, I can do this manually.

    Cheers,
    Dave

    #38621
    dave
    Participant

    I’;ve managed to show the stock quantity by default by editing a template copy and removing the surrounding div box.

    Is it possible to set a minimum value on form fields using the form helper and set a default value?

    And is there a way to show the validation errors at the top?

    #38625
    dave
    Participant

    This is to make the input field have a min-max value.

    add_action(‘wcv_product_stock_qty’, ‘show_stock_qty’);

    function show_stock_qty($args){
    $args[‘placeholder’] = __( ‘Set a minimum of one item’, ‘wcvendors-pro’ );
    $args[‘custom_attributes’] = array(
    ‘step’ => ‘1’,
    ‘min’ => ‘1’,
    ‘max’ => ‘100’
    );

    return $args;
    }

    /** and in style.css
    *
    /

    .wcv-form .control>input:out-of-range {
    border: 2px solid red;
    }

    Now to do backend validation

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