WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Insert 'add to cart' button in new page (3 posts)

  1. chris100uk
    Member
    Posted 7 months ago #

    Is there a simple way i can insert an 'add to cart' button in a page outside my regular shop page?

    Is there some code i can copy and paste?

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

  2. Andrew
    Forum Moderator
    Posted 7 months ago #

    It's not copy-and-paste code, but I think you can do this http://docs.woothemes.com/wc-apidocs/class-WC_Cart.html#_add_to_cart

  3. bheadrick
    Member
    Posted 7 months ago #

    Yeah, there's a bunch of available shortcodes
    http://docs.woothemes.com/document/woocommerce-shortcodes/

    Depending on how much detail you want displayed, you could do
    [product id="99"]
    or
    [add_to_cart id="99"]

    with 99 being the product id number.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.