سلام.برای نمایش سبد خرید افزونه easy digital downloads میتوانید از این کد نیز در هر قسمتی از قالب وردپرس که نیاز دارید استفاده کنید.
<?php
$cart_items = edd_get_cart_contents();
$cart_quantity = edd_get_cart_quantity('display: inline-flex;');
$display = $cart_quantity > 0 ? '' : ' style="display:inline-flex;"';
?>
<div class="cart_items">
<p class="edd-cart-number-of-items" <?php echo $display; ?>><?php _e( 'Number of items in cart', 'easy-digital-downloads' ); ?>: <span class="edd-cart-quantity"><?php echo $cart_quantity; ?></span&