WooCommerce - excelling eCommerce
Quantity input in "shop" page not working (4 posts)

  1. soumya12345
    Posted 2 years ago #

    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)
    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..


  2. samueljeden
    Posted 2 years ago #

    you must have altered the code for the quantity box somehow.

    Possibly not added the correct code to your new template?

  3. soumya12345
    Posted 2 years ago #

    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?

  4. soumya12345
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.