• Resolved auludag

    (@auludag)


    hi,

    i want to sell certain two products, by 4 groups. so in that specific products page, incremental values should by 4 (4, 8 12 ..) not by 1 (3,4,5..). how can i do that?

    Found a snippet but this is applying to whole shop. I need for two products.

    add_filter( ‘woocommerce_quantity_input_args’, ‘jk_woocommerce_quantity_input_args’, 10, 2 );

    function jk_woocommerce_quantity_input_args( $args, $product ) {
    if ( is_singular( ‘product’ ) ) {
    $args[‘input_value’] = 2; // Starting value (we only want to affect product pages, not cart)
    }
    $args[‘max_value’] = 80; // Maximum value
    $args[‘min_value’] = 2; // Minimum value
    $args[‘step’] = 2; // Quantity steps
    return $args;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    Hi there!

    Easiest way is to find a plugin that allows you to sell by groups and specify on a per-product setting, something like this: https://woocommerce.com/products/minmax-quantities/ as it would work to set the quanity groupon for specific products to work like this: http://cld.wthms.co/kzi8I7 (example is groups of 4)

    Otherwise, you’d want to look for another plugin that may do that, or get help with some custom-development to work on a per-product basis.

    I hope this helps!

    Luminus Alabi a11n

    (@luminus)

    Automattic Happiness Engineer

    @auludag,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to change incremantal for a certain product’ is closed to new replies.