Tagged: product pages
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
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
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
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
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