HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Apache24/htdocs/wp-content/themes/page-builder-framework/assets/edd/js/edd-ajax.js
jQuery( function( $ ) {

	// reload when item is added or removed
	$( document.body ).on( 'edd_cart_item_removed edd_cart_item_added', function( event, response ) {
		var data = {
			security:	wpbf_edd_fragments.nonce,
			action:		"wpbf_edd_fragments",
		};

		xhr = $.ajax({
			type:		'POST',
			url:		wpbf_edd_fragments.ajaxurl,
			data:		data,
			success:	function( response ) {
				$('.wpbf-edd-menu-item').html( response );
			}
		});

	});

});