I would need some help with AJAXifying the CouchCart, but using Magnific Popup modal, not the Bootstrap one used in tutorial.
If someone has already did that(maybe with some other modal plugin), or if @cheesypoof is willing to lend a hand, after all, he provided the code for it in the tutorial
, it would be great.
My JS skills are not that good, being primarily a designer. I am able to call the cart-modal.php with AJAX call, but that is as far as I can go. I played with the code, and I understand it to some extent, but I can't make it work.
Here is the part to call the cart-modal-php
And here is the way for opening and closing it programatically:
If someone has already did that(maybe with some other modal plugin), or if @cheesypoof is willing to lend a hand, after all, he provided the code for it in the tutorial

My JS skills are not that good, being primarily a designer. I am able to call the cart-modal.php with AJAX call, but that is as far as I can go. I played with the code, and I understand it to some extent, but I can't make it work.
Here is the part to call the cart-modal-php
- Code: Select all
$('.simple-ajax-popup').magnificPopup({
items:{
type: 'ajax',
src: 'cart-modal.php'
}
});
And here is the way for opening and closing it programatically:
- Code: Select all
$.magnificPopup.close();
$.magnificPopup.open();