WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. soumya12345
    Member
    Posted 1 year 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)
    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/

  2. samueljeden
    Member
    Posted 1 year ago #

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

    Possibly not added the correct code to your new template?

  3. soumya12345
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.