• I’m looking to change the location of the quantity input in Woocommerce. So far I’ve tried removing <?php woocommerce_quantity_input(); ?> from woocommerce/single-product/add-to-cart/variations.php and placing it elsewhere in a different template.

    Whilst it does show the quantity input, it doesn’t remove it from before the ‘add to cart’ area.

    Does anyone know how to move this without ruining the functionality?

    https://ww.wp.xz.cn/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • You could try this (if it works for you)

    .woocommerce #content .entry-summary .quantity, .woocommerce .entry-summary .quantity, .woocommerce-page #content .entry-summary .quantity, .woocommerce-page .entry-summary .quantity{
    display:none;
    }

    We have added this in Custom CSS in our theme’s theme’s template, it might also work if you add it in your theme’s style css. (Take backup of your css, of course, before you try it)

    Thread Starter tommyleyland

    (@tommyleyland)

    Thanks Katie, I’ve tried that but the quantity field by the add cart button overrides the one I put anywhere else.

    I think that needs filter and function coding in functions.php
    OR some changes in content-single-product.php

    Hope you find your way, wish I could help more.

    Thread Starter tommyleyland

    (@tommyleyland)

    Still looking for help, thanks anyway Katie.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Change quantity field location’ is closed to new replies.