WordPress.org

Forums

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

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

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

Tags

No tags yet.