New Landing How can we help? Themeforest Theme Support Neighborhood Hide cart text when empty

Viewing 4 posts - 1 through 4 (of 4 total)
  • #28740
    kellerit
    Member
    Post count: 4

    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

    #29101
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi!

    We’d love to help you with this customization but we are only able to provide support for basic theme issues and bug fixes. We do provide support for small customizations but unfortunately this request is beyond that. Please see our general policy and guidelines for more info. You could also hire a developer to help you with your customizations.

    Thank you for understanding!
    Cheers!

    #29193
    kellerit
    Member
    Post count: 4

    Hi Melanie
    Thanks for you reply. I understand your policy for customization, but in this case it wouldn’t harmed to give the hint in which file i needed to edit.

    I fixed it by myself.
    Best regards

    #29498
    Melanie – SUPPORT
    Member
    Post count: 11032
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register