Tagged: x
-
AuthorPosts
-
November 1, 2016 at 7:35 am #1239065
RocktheHouse1876ParticipantOur website is using the Integrity theme with WooCommerce shopping cart.
I would like to add a button “Add to Cart” on a page, when user clicks, it will go to shopping cart page with that product added. (The WooCommerce product pages are so limited in design, so we would like to go this route.)
This is the “Add to Cart” button code I used below (though I don’t know if this is what it should be), but when clicked – nothing happens.
<button type=”submit” class=”single_add_to_cart_button button alt”>Add to cart</button>
Would you be able to point me in the right direction?
Would you be able to help?
November 1, 2016 at 7:37 am #1239067
RocktheHouse1876ParticipantThis reply has been marked as private.November 1, 2016 at 8:42 am #1239137
ThaiModeratorHi There,
Please try with this shortcode:
[add_to_cart class="x-btn" id="56"]The 56 number is your product ID.
Hope it helps 🙂
November 1, 2016 at 3:31 pm #1239759
RocktheHouse1876ParticipantWhen I add a “Raw Content” block, and insert this code below in it, nothing appears:
[add_to_cart class=”x-btn” id=”56″]I think I must be going about it the wrong way?
Also, how did you find the product ID #?
November 2, 2016 at 1:29 am #1240327
ChristopherModeratorHi there,
All your products are private, please publish them, add shortcode and check the result.
Hope it helps.
November 2, 2016 at 2:07 pm #1241273
RocktheHouse1876ParticipantAs mentioned above in the second comment, I would like to add the “add to cart” button to a regular X theme page, not on a Woocommerce product page. The page mentioned above is a public page.
When I add a “Raw Content” block, and insert this code below in it, nothing appears:
[add_to_cart class=”x-btn” id=”56″]Would someone be able to help? It would be greatly appreciated!
November 2, 2016 at 8:05 pm #1241728
Rue NelModeratorThis reply has been marked as private.November 3, 2016 at 10:25 am #1242518
RocktheHouse1876ParticipantThank you so much! I appreciate your help!
Would there be a way to remove the price altogether from inside the button?
November 3, 2016 at 11:25 am #1242597
RupokMemberHi there,
In that case you can add this under Custom > CSS in the Customizer.
.add_to_cart_inline.x-btn .woocommerce-Price-amount.amount { display: none; }Cheers!
November 3, 2016 at 3:07 pm #1242837
RocktheHouse1876ParticipantThank you for all your help!
November 3, 2016 at 4:00 pm #1242900
JoaoModeratorYou are welcome,
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1239065 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
