<div class="notification">
<?php if(function_exists('osp_install')) { ?> <?php $cart_count = 0; if(osc_is_web_user_logged_in()) { $cart = ModelOSP::newInstance()->getCart(osc_logged_user_id()); $cart_count = count(array_filter(explode('|', $cart))); } ?> <a class="cart tr1" title="<?php _e('Cart', 'veronika'); ?>" href="<?php echo osc_route_url('osp-cart'); ?>"><i class="fa fa-shopping-basket"></i> <span class="counter"><?php echo $cart_count; ?></span></a> <?php } ?>
<?php if(function_exists('osp_install')) { ?>
<?php $cart_count = 0; if(osc_is_web_user_logged_in()) { $cart = ModelOSP::newInstance()->getCart(osc_logged_user_id()); $cart_count = count(array_filter(explode('|', $cart))); } ?>
<?php _e('Cart', 'veronika'); ?>
<?php echo osc_route_url('osp-cart'); ?>
<?php echo $cart_count; ?>
<?php } ?>
#header-bar .notification > a.cart span.counter { background: #02C39A; }
<?php if(function_exists('osp_install')) { ?> <?php $cart_count = 0; if(osc_is_web_user_logged_in()) { $cart = ModelOSP::newInstance()->getCart(osc_logged_user_id()); $cart_count = count(array_filter(explode('|', $cart))); } ?> <a class="cart tr1" title="<?php _e('Cart', 'veronika'); ?>" href="<?php echo osc_route_url('osp-cart'); ?>"><i class="fa fa-shopping-basket"></i> <span class="counter"><?php echo $cart_count; ?></span></a> <?php } ?
<?php } ?