Ajax Cart Count Problem!

Viewing 2 posts - 1 through 2 (of 2 total)
#67870

Hi guys , happy new year to all Wpdm team.

Please tell me how to make it ajax count : This is the code that is counting the cart items.

<?php if ( theme_can_use_plugin( 'wpdm-premium-packages/wpdm-premium-packages.php' ) && apply_filters( 'show_mini_cart', true ) ) : ?>
	
<?php $count = count(wpdmpp_get_cart_items());  ?>
	
<div class="drop drop-before drop-the-cart">
		
               <a class="drop-toggle" href="#">
			
               <a href="#" class="fa fa-cart-plus" aria-hidden="true"></a>

				<?php if ( $count ) : ?>
					<span class="drop-toggle-badge"><?php echo (int) $count; ?></span>
				<?php else : ?>
					<span class="drop-toggle-badge">0</span>
				<?php endif; ?>
							
		</a>
		
                <div class="drop-content">
                         <span class="drop-toggle-arrow"></span>
			<?php the_widget( 'WPDMPP_MiniCart' ); ?>
			
		</div>
		
                </div>
<?php endif;

– the thing is the cart counts – and it also shows in it webpage.

Tell me if one of these two options can be done. Either to reload the page as soon as someone press on remove cart item or add to cart item , or refresh the page?

or make it ajax format somehow? Please help me it would help other people doing the same thing as well.

Thanks,

#68181

Hi,

As it need customized suooort.please send details to support@wpdownloadmanager.com

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Ajax Cart Count Problem!’ is closed to new replies.