Page 1 of 1

How to show related products in "Add to cart" Ajax

Posted: 28 Dec 2019, 22:54
by TomasZmuda
Hi,
I'd like to ask, if is it possible to show related products in Ajax window after product has been added to the cart. Or any other other possibility to make this related products more visible for customer?

Thank you!

Tomas from Czech Rep.

Re: How to show related products in "Add to cart" Ajax

Posted: 08 Jan 2020, 14:27
by TomasZmuda
Finally, I solved it hardcoded. It would be great to add this feature to next release. ;-)

End of layouts/popup_add_to_cart.php:

<script type="text/javascript">
$("#phrelated").clone()
.attr({"class":"clone tab-pane fade ph-tab-pane active in"})
.insertAfter(".modal-footer");

$('.clone').prepend('<h4>Related products</h4>');
</script>

Re: How to show related products in "Add to cart" Ajax

Posted: 09 Jan 2020, 20:40
by Jan
Hi, thank you for your ideas. In Popup, there is an event listening to plugins. So for this purpose, the plugin should be done.

Like there is one existing for free shippping info:

Image

Added to the feature request list.

Jan