WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
How to add "add to cart" link to a static custom page please? (2 posts)

  1. khkit
    Member
    Posted 8 months ago #

    Hi there,

    I added an external link to the cart from a static html page, non wordpress outputted and although it does add the product to the cart, it doesn't add the correct number. It always adds it double. Also when you try to update the cart with the correct quantity it doesn't work. this only happens when you add the product to the cart from an external link on a static, html external page.

    Any advice?

    Omar

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

  2. terrytsang
    Member
    Posted 8 months ago #

    Hi Omar, you can use link with format below:

    http://yourproducturl.com/cart/?add-to-cart=ID

    * Replace the yourproducturl.com with your product’s actual URL and to replace the ID with your product's ID.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.