Dans le fichier de surcharge app/design/frontend/
1 2 3 4 5 6 7 8 9 10 |
<if args="getCartParam('cart_empty_message')"> <p class="minicart empty text" text="getCartParam('cart_empty_message')"/> <div class="actions"> <div class="secondary"> <a class="action viewcart" data-bind="attr: {href: shoppingCartUrl}"> <span translate="'View and Edit Cart'"/> </a> </div> </div> </if> |
…ajouter la nouvelle condition:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<ifnot args="getCartParam('cart_empty_message')"> <p class="minicart empty text" translate="'Why not give a couple of our fresh arrivals a try ?'" /> <div class="minicart-wrapper-bottom-actions"> <a class="btn-plain btn-has-icon-right" data-bind="attr: {href: shoppingCartUrl}"> <span translate="'Add some products'" /> <svg viewbox="0 0 100 100" class="icon icon-shopping-basket"> <use xlink:href="#icon-shopping-basket"></use> </svg> </a> </div> </ifnot> |