Home › Forums › WoodMart support forum › Issue with Mini Cart and custom empty cart layout › Reply To: Issue with Mini Cart and custom empty cart layout
August 28, 2024 at 3:53 pm
#593287

Aizaz Imtiaz Awan
Keymaster
Hello,
Please follow the below steps:
1. In the theme settings, you needs to enable the Accordion element script from Theme Settings >> Performance >> JS: https://monosnap.com/file/cHryNAHHkaF5Y6EBDmz59HM83xQRVw.
2. Also, Add the following code to the Custom JS area in Theme Settings >> Custom JS area:
(function($) {
$( document.body ).on( 'wc_cart_emptied', function() {
if ( typeof woodmartThemeModule !== 'undefined' && typeof woodmartThemeModule.accordion !== 'undefined' ) {
woodmartThemeModule.accordion();
}
})
})(jQuery);
Best Regards.