Where do I add text in shopping cart.

Merchant
Depuis United Kingdom
Membre depuis mars 2021

Hi all.

I need to add a small amount of text in the shopping cart, EG "spend over £20 and save 10% enter code GET10.

I think the best place is under the words "Shopping Cart".

Any chance someone can help me which and where I should add this please ?

Just thought, Could I add this in "translation" and use HTML after the words "Shopping cart" ?

regards in advance

LiteCart Fan
Depuis Netherlands
Membre depuis déc. 2022

File: [b]includes/templates/default.catalog/views/box_checkout_cart.inc.php[/b]



  <div class="card-header">
    <h2 class="card-title">
      <?php echo language::translate('title_shopping_cart', 'Shopping Cart'); ?>
    </h2>

    <!-- below your extra text -->
    <h3><?php echo language::translate('title_extra_text_shoppingcart', 'Here comes extra text under title Shopping Cart'); ?></h3>

  </div>```

But better make a vmod for it. Create a new vmod and fill in file pattern: includes/templates/default.catalog/views/box_checkout_cart.inc.php

Then on operation 1:
Find:
```<section id="box-checkout-cart" class="card">

  <div class="card-header">
    <h2 class="card-title">
      <?php echo language::translate('title_shopping_cart', 'Shopping Cart'); ?>
    </h2>```
Choose method "after"
And in insert field:
```<h3><?php echo language::translate('title_extra_text_shoppingcart', 'Here comes extra text under title Shopping Cart'); ?></h3>```

Edit this line to your own needs
Vous
Ce site n'utilise aucun cookie ni aucune technologie de suivi tierce. Nous pensons pouvoir faire mieux que les autres et nous nous soucions vraiment de votre vie privée.