Where do I add text in shopping cart.

Merchant
Fra United Kingdom
Medlem siden

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
Fra Netherlands
Medlem siden

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
Du
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.