Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #965226

    Hi there, I am new to this support forum and couldn’t find an answer to my question yet.
    I want to be able to add additional “addtocart buttons” to my product pages / product descriptions.
    So I would have 1 of these buttons at the top of the page and 1 at the end after a long product description
    (so the user doesn’t have to scroll all the way back up to buy)

    Thank you very much in advance
    Maik

    #965723

    Hey webbiz215,

    Did you try to use the WooCommerce shortcode? https://docs.woocommerce.com/document/woocommerce-shortcodes/, scroll down to Add to Cart

    Best regards,
    Rikard

    #965758

    Hi Rikard,
    Thank you for your response.
    I put the shortcode at the end of my product description like this:
    [add_to_cart_url id=”3581″]
    3581 is the ID of my product.
    On my product page it looks like this now: /produkt/7-084-grillfass-bbq-4in1/?add-to-cart=3581
    I will put link in Private content box, so you can have a look.
    Thank you very much!
    Maik

    #966049

    Hi,

    Thanks for the feedback. I’m not sure how that shortcode should work to be honest, but it doesn’t seem to be working there anyhow. If you only want the button then maybe you could try adding it as markup instead?

    <button type="submit" name="add-to-cart" value="3581" class="single_add_to_cart_button button alt">In den Warenkorb</button>

    Best regards,
    Rikard

    #966125

    Hi Rikard one more time.

    Thank you very much for that hint.
    The button -code you gave me didn’t function, so I copied the complete code “around it” and now it works.
    Now I have the button, and the information, exactly as above.
    That is even better :)

    So this one is resolved for me for now.
    Thank you again for your great support! Have a great Sunday! Bye
    Maik

    #966307

    Hi Maik,

    Great, glad you got it working :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.