• Resolved 10biscuits

    (@10biscuits)


    Hi,

    How might I remove the Quantity based pricing table from my product page / pages??

    I can’t find an option for this so would really appreciate a custom css snippett if anyone can help me out?

    Many thanks in advance,

    Ben

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Ben!

    Did you find out how to hide the “Quantity based pricing table” in the productpage? Was it an css snippet code?

    Best regards, Joel

    Plugin Author Donald FALY

    (@donaldlaly)

    Hello @ekologiskahuvtrojor and @10biscuits
    Add this code on the product page:

    .product_meta h3, .wad-qty-pricing-table
    {
    display: none !important;
    }

    Note that if another plugin or theme adds an h3 tag to the .product_meta class, it will also be hidden.

    Donald

    • This reply was modified 5 years, 11 months ago by Donald FALY.

    Big thanks for your answer!

    I′m a bit new on this and took over an project form another accountable, so sorry for noob question.

    Do i add that code in the “Snippet” plugin?

    It look like this today:

    add_filter( ‘woocommerce_quantity_input_args’, ‘jk_woocommerce_quantity_input_args’ );

    function jk_woocommerce_quantity_input_args( $args, $product ) {
    if ( is_singular( ‘product’ ) ) {
    $args[‘input_value’] = 25;
    }
    $args[‘max_value’] = 10000;
    $args[‘min_value’] = 25;
    $args[‘step’] = 1;
    return $args;
    }

    add_filter( ‘woocommerce_available_variation’, ‘jk_woocommerce_available_variation’ );

    function jk_woocommerce_available_variation( $args ) {
    $args[‘max_qty’] = 10000;
    $args[‘min_qty’] = 25;
    return $args;
    }

    Plugin Author Donald FALY

    (@donaldlaly)

    @ekologiskahuvtrojor No you should not add it inside the plugin so you do not lose your changes at the next plugin update.
    But you can add it as an additional css. To do this, in the dashboard, select Appearance>Customize>Additional CSS and paste the code there.

    @donaldlaly that work exilent! BIG thanks man!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove the ‘Quantity based pricing table’ from product page.’ is closed to new replies.