installed plugin Easy Digital Downloads version 3.1.0.3

This commit is contained in:
2022-11-27 15:03:07 +00:00
committed by Gitium
parent 555673545b
commit c5dce2cec6
1200 changed files with 238970 additions and 0 deletions

View File

@ -0,0 +1,13 @@
jQuery( document ).ready( function ( $ ) {
$( 'body' ).on( 'edd_cart_item_added edd_cart_item_removed', function ( e, response ) {
if ( $( '.wp-block-edd-cart' ).length && response.block_cart.length ) {
if ( $( '.edd-blocks__cart-mini' ).length ) {
$( '.edd-blocks-cart__mini-quantity' ).empty().append( response.quantity_formatted );
$( '.edd-blocks-cart__mini-total' ).empty().append( response.total );
}
if ( $( '.edd-blocks__cart-full' ).length ) {
$( '.edd-blocks__cart-full .edd-blocks-form__cart' ).replaceWith( response.block_cart );
}
}
} );
} );