php si le panier n'est pas vide
<?php add_action( 'wp_footer', 'vazio' );
function vazio() {
if ( ! WC()->cart->is_empty() ) { ?>
<div style="width: 20%;" class="footer-section <?php echo esc_html($woo);?>">
<a href="<?php echo 'https://my_web_page.pt/finalizar-compra';?>" title="Finalizar Compra"><i class="fa fa-credit-card"></i></a>
</div>
<?php }
} ?>
Fine Ferret