• Resolved Fujyn

    (@arwah12)


    Hi,
    is there someone there who can help me?
    I want to limit vendors when uploading or editing a product, in the discounted price section so that it is limited to the lowest price of $ 5
    I don’t want the vendor to make the discount price too small.
    because my site’s products can be downloaded / simple products
    How to do it
    thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    If I understand correctly you mean the sale price field in the general settings?

    The validation there is done via jQuery, the code that was used for this can be found here

    Thread Starter Fujyn

    (@arwah12)

    Hi @crslz
    thank you for the reply
    I use the vendor’s wc
    and I have added this code

    /* WC Vendors Pro -- Require a minimum, and a maximum price for vendors when adding/editing a product */
    add_filter( 'wcv_product_price', 'price_min_max' ); 
    function price_min_max( $args ){ 
    		$args[ 'custom_attributes' ] = array( 
     			'data-rules' => 'decimal|range[1,20]', 
     			'data-error' => __( 'Price should be a number and between $1 and $20', 'wcvendors-pro' )
    		); 
    		return $args; 
    }

    https://www.wcvendors.com/help/topic/minimum-product-price-sale-conflict/
    but it doesn’t work either
    is there any other way

    • This reply was modified 5 years, 2 months ago by Fujyn.

    If you use a extra plugin other than woocommerce you will have to ask your question over there.

    regards

    mother.of.code

    (@imazed)

    The Mother of Code

    Hi @arwah12 – I have to echo what @crslz has already mentioned. The best place to get help on the specific plugin you’re using is with the developer(s) who created it.

    As a helpful answer has been given and further support has to come from elsewhere, I am setting this topic to ‘resolved’. Should you need more help, feel free to open a new topic!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘limit the product price discount from the regular price for the seller’ is closed to new replies.