WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » Quantity input in "shop" page not working

Quantity input in "shop" page not working

  • I have made the WooCommerce “Shop” page like a table structure.
    The columns are:
    1.Thumbnail (of the item)
    2.Product (the name of the product)
    3.Price
    4.Quantity (input like the single item page)
    5.Add to cart(button)

    Now the problem is the Quantity input is not working. Whatever the input is,it is sending 1 to the cart page..

    What to do now?? Please help me in details..

    http://wordpress.org/extend/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • you must have altered the code for the quantity box somehow.

    Possibly not added the correct code to your new template?

    No,didn’t alter anything, just copied as it was..
    actually it cant access the attribute $values[‘quantity’].
    How the value can be transferred to the page?Any suggestion?

    The following variable:

    $product_quantity = sprintf( ‘<div class=”quantity”><input name=”cart[%s][qty]” data-min=”%s” data-max=”%s” value=”%s” size=”4″ title=”Qty” class=”input-text qty text” maxlength=”12″ /></div>’, $cart_item_key, $data_min, $data_max, esc_attr( $values[‘quantity’]) );

    cant be accessed after overriding. how this cant be solved using plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Quantity input in "shop" page not working’ is closed to new replies.
Skip to toolbar