Hi,
I would like to load the content of .top-cart-content via ajax call, when the user clicked on the shopping cart icon.
However I tried to catch the event via jquery it doesn't work as you use it as a trigger.
I've also found this part in functions.js, and also tried to add the ajax call but does not work.
I'd keep <div class="top-cart-content"></div> blank as default and I'd call the content with these 2 lines:
$('.top-cart-content').html( '<h4 class="center"><span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> Loading basket ...</h4>' );
$('.top-cart-content').load('ajax_url_to_load');
Do you have any great solution for this?
(I'd prefer not to modify the original functions.js if possible due to keep canvas code untouched, but if no other solution that would also be ok...)
Thanks very much,
A.
