Hi
We are trying to hide the cart total in the header when the cart is empty and to just display the cart icon. I modified includes\swift-framework\sf-content-display\sf-header.php to hide it.
if ($cart_total==0) $cart_total='';
right before cart_output is generated on line 644. This seems to work in the first place. Unfortunately, the empty text is being replaced with ‘CHF 0’ after loading by some javascript. We even changed the source to
if ($cart_total==0)
$cart_output .= '<li class="parent shopping-bag-item"><a>cart->get_cart_url().'" title="'.__("View your shopping cart", "swiftframework").'"><i class="sf-cart"></i></a>';
else
$cart_output .= '<li class="parent shopping-bag-item"><a>cart->get_cart_url().'" title="'.__("View your shopping cart", "swiftframework").'"><i class="sf-cart"></i>'.$cart_total.' </a>';
Same result.
I guess it has something in common with the translation, which is currently set to de_DE.
Do you have any idea how i can change this?
Thanks in advance!
Best wishes
Fabian