• 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
    </p>

    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?

    best

    Omar

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

  • The topic ‘How do you add a direct link to the cart from a Static HTML page please’ is closed to new replies.