Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #666333

    rkbanjara
    Participant

    Hi, 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

    #666385

    Rue Nel
    Moderator

    Hello 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.

    #666452

    rkbanjara
    Participant

    Where 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?

    #666454

    Christopher
    Moderator

    Hi there,

    You can add it in ‘raw content’ element inside CS.

    Hope it helps.

    #666462

    rkbanjara
    Participant

    Works 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=327

    #666463

    Christopher
    Moderator

    Hi 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.

    #666482

    rkbanjara
    Participant
    This reply has been marked as private.
    #666483

    Christopher
    Moderator

    Please provide us with username as well.
    Please provide us with screen shot and let us know which border you’re referring to.

    Thanks.

    #666486

    rkbanjara
    Participant
    This reply has been marked as private.
    #666490

    Rad
    Moderator

    Hi 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!

    #666517

    rkbanjara
    Participant

    wonderful. thank you

    #666520

    Christopher
    Moderator

    You’re welcome.