-
AuthorPosts
-
November 15, 2015 at 8:30 pm #666333
rkbanjara
ParticipantHi, I am engaged to find out the right solution to add ‘add to cart’ button below any of my product for last couple of days but unable to find correct answer.
There are three products in this page http://www.greenlandtea.com/?page_id=327
I would like to add ‘add to cart’ below each product in this page as well as its child page ( http://www.greenlandtea.com/?page_id=300).Please help
November 15, 2015 at 9:27 pm #666385Rue Nel
ModeratorHello There,
Thanks for writing in!
You can make use of the WooCommerce add to cart shortcode. Simply supply the correct product ID and your are good to go.
[add_to_cart id="99"]
Please check this links for more information:
http://yourwebdesignshop.com.au/woocommerce-tutorial-how-to-insert-a-add-to-cart-button-outside-of-a-product-page/
https://docs.woothemes.com/document/woocommerce-shortcodes/Hope this helps. Please let us know how it goes. Thank you.
November 15, 2015 at 11:08 pm #666452rkbanjara
ParticipantWhere to add that code in cornerstone?
As said earlier I would like to use ‘add to cart’ button on each of my product on any of the page (not only at shop page) for example I am trying to add this button below ‘price’ in this page http://www.greenlandtea.com/?page_id=327
how do I do that?November 15, 2015 at 11:10 pm #666454Christopher
ModeratorHi there,
You can add it in ‘raw content’ element inside CS.
Hope it helps.
November 15, 2015 at 11:30 pm #666462rkbanjara
ParticipantWorks great. Thank you.
Is there anyway I can edit the look of ‘raw content element’. I see a boarder around it which I want to modify. see here
http://www.greenlandtea.com/?page_id=327November 15, 2015 at 11:36 pm #666463Christopher
ModeratorHi there,
Please add row content element so we can see the issue. I tried it on my end but wasn’t able to replicate the issue.
Thanks.
November 15, 2015 at 11:50 pm #666482rkbanjara
ParticipantThis reply has been marked as private.November 15, 2015 at 11:54 pm #666483Christopher
ModeratorPlease provide us with username as well.
Please provide us with screen shot and let us know which border you’re referring to.Thanks.
November 16, 2015 at 12:01 am #666486rkbanjara
ParticipantThis reply has been marked as private.November 16, 2015 at 12:12 am #666490Rad
ModeratorHi there,
The problem why your buttons aren’t displaying is because of quotes. For example,
[add_to_cart id="361″ sku="GLT361″]
It should be like this,
[add_to_cart id="361" sku="GLT361"]
I fixed your first button and it’s now working and displaying.
As for the border, it’s border of your button and not the raw element. And you can set the border to 0px like this,
[add_to_cart id="361" sku="GLT361" style="border:0px;"]
Cheers!
November 16, 2015 at 12:56 am #666517rkbanjara
Participantwonderful. thank you
November 16, 2015 at 1:00 am #666520Christopher
ModeratorYou’re welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-666333 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>