WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Add to cart URL with quantity? (4 posts)

  1. Acidking
    Member
    Posted 1 year ago #

    Hi,
    I would like to use the Add to Cart shortcode [add_to_cart id="12"] but with a particular quantity, any ideas how can that be done?

    Shortcodes: http://docs.woothemes.com/document/woocommerce-shortcodes/

    https://wordpress.org/plugins/woocommerce/

  2. domokun
    Member
    Posted 1 year ago #

    See here

  3. Acidking
    Member
    Posted 1 year ago #

    That's not the solution I was looking for. I am not looking to show the quantity selector, I would like the button to immediately add to cart the product in a particular quantity, for example 3, so when the button is clicked it adds 3 to the cart.

  4. patjk
    Member
    Posted 6 months ago #

    Did you ever find a solution? I'm still looking to create a link with quantity. Right now I use:
    http://domain.com/checkout/?post_type=product&add-to-cart=9

    But I want to have that link add quantity 5 of product 9. Can I do that within the link?

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic