Not working properly with ajax cart total menu
-
Hello
this plugin is good but has some issues , its not working properly with ajax cart total i am using the below code to update my cart total with add to cart via ajax but it is not working in multi currency the cart total is still showing in USD but the selected currency is INR
please help
add_filter(‘add_to_cart_fragments’, ‘woocommerce_header_add_to_cart_fragment’);
function woocommerce_header_add_to_cart_fragment( $fragments ) {
global $woocommerce;
ob_start();
?>
cart->get_cart_url(); ?>” title=”<?php _e(‘View your shopping cart’, ‘woothemes’); ?>”><?php echo sprintf(_n(‘%d item’, ‘%d items’, $woocommerce->cart->cart_contents_count, ‘woothemes’),
$woocommerce->cart->cart_contents_count);?> – <?php echo $woocommerce->cart->get_cart_total(); ?>
<?php
$fragments[‘a.cart-contents’] = ob_get_clean();
return $fragments;
}https://www.ads-software.com/plugins/woocommerce-currency-switcher/
- The topic ‘Not working properly with ajax cart total menu’ is closed to new replies.