Cart Upsell Product Ajax - Need Refresh after add. #55
Unanswered
mircomartin
asked this question in
Q&A
Replies: 2 comments 10 replies
-
Hey, just use Liquid Ajax Cart API for adding a product to the cart: <script>
$(document).ready(function () {
$('.product_recommendation1-plus').click(function(e) {
e.preventDefault()
var plus = this.id;
liquidAjaxCart.cartRequestAdd({
items: [
{
id: Number(plus),
quantity: 1
}
]
}, {} )
});
});
</script> |
Beta Was this translation helpful? Give feedback.
5 replies
-
@EvgeniyMukhamedjanov Thanks! we have duplicate the in bottom of the cart! also in top!. I have another question, is possible when the customer reach amoun of total cart? add a specific product automatically? can you help me with that? When the shop will be ready i will share you the url if you like to put in the site of cart ajax. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I would like to know, how can i refresh the cart after ajax cart/add.js . The ajax works perfectly but i have to refresh to see the product in the cart.
Beta Was this translation helpful? Give feedback.
All reactions