Support » Plugin: Side Cart Woocommerce (Ajax) » Display discount

Viewing 1 replies (of 1 total)
  • Plugin Author xootix

    (@xootix)

    Hi @kwanik

    Its available in the pro version.
    For free version, follow these steps
    1) Go to side-cart-woocommerce plugin folder
    2) Navigate to public/partials
    3) Copy the template xoo-wsc-footer.php to your theme/woocommerce folder
    4) Open it & on line 30 after </div> tag & before <?php if(!empty($shipping_txt)): ?>, paste this code

    <?php if(WC()->cart->has_discount()): ?>
    				<div class="xoo-wsc-discount xoo-wsc-tool">
    					<span class="xoo-wsc-tools-label"><?php _e('Discount','side-cart-woocommerce'); ?></span>
    					<span class="xoo-wsc-tools-value"><?php echo wc_price(WC()->cart->get_discount_total()); ?></span>
    				</div>
    			<?php endif; ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Display discount’ is closed to new replies.