How do you add a direct link to the cart from a Static HTML page please (1 post)

  1. khkit
    Posted 2 years ago #

    I have a quick question.

    I am trying to add a direct link to the cart from a static html page, rather than a short code as I can't use the standard add to cart shortcode on a non wordpress generated page.

    So I got this code from the front end by viewing source.

    <p class="product woocommerce" style="border:0;">

    <span class="amount">$360.00</span>
    Add to cart

    This adds the product to the cart but a few wierd things happen

    At the top it says view cart, when you can already see the "cart" contents and secondly, if you try to change the quantity of the product from 1 to 2, it adds it to 3.

    Any thoughts?




Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.