Forum Replies Created

Viewing 16 replies (of 16 total)
  • Thread Starter Ben

    (@benjaminloeffel)

    Yes, unfortunately the problem occurred yesterday after Woocommerce v3.0 update.

    Kindly see the screenshots below.
    https://unsee.cc/putogire/

    With the “Sold individually” checked, the quantity field on the product page should not be visible, and on the cart the quantity input should be disabled (same as the one sent in your previous screenshot).

    EDIT:

    Adding the code below to my functions file resolved the problem on the cart page.
    However now “Sold Individually” is set for all products by default, and on the product page the quantity field is still visible until the variation is changed. The field completely disappears when changing to a different product variant.

    add_filter( 'woocommerce_is_sold_individually', '__return_true' );

    EDIT 2:

    The value for the ‘_sold_individually’ row of the given product within the database seems to be updating fine.

    https://unsee.cc/zipenoba/

    EDIT 3:

    I’ve rolled back the “variation-add-to-cart.php” template file from v3.0 back to v2.5, and the quantity field is no longer visible on the single product page.

    https://www.diffchecker.com/e1F1O6hn

    A solution for the cart has not been found yet without applying the filter mentioned in edit 1.

    • This reply was modified 7 years, 7 months ago by Ben.
    • This reply was modified 7 years, 7 months ago by Ben.
    • This reply was modified 7 years, 7 months ago by Ben.
    • This reply was modified 7 years, 7 months ago by Ben.
    • This reply was modified 7 years, 7 months ago by Ben.
    • This reply was modified 7 years, 7 months ago by Ben.
    • This reply was modified 7 years, 7 months ago by Ben.
    • This reply was modified 7 years, 7 months ago by Ben.
Viewing 16 replies (of 16 total)