Request a Call Back

Enter your number and one of our friendly ecommerce experts will be in touch. All fields are required.

Speak to our experts today 0333 004 0333
Speak to one of our experts today or Request a Callback
User Guides

EKM Tag: [ekm:viewcart]

This tag outputs a HTML link which links to the search page.

  • Tag Information
  • Nesting This Tag
Basic Use
This tag can be placed anywhere within the HTML and will output a simple HTML link which goes to the "Shopping Cart" page. This link's text can be changed from the "Design" section of your EKM account.

[ekm:viewcart][/ekm:viewcart]
                                
Within HTML
The link is output by default as a simple HTML link, if you wished to target this link to apply CSS styling you could target the link in the same way the below example does.

<style type="text/css">
   .viewcart-button a {
         color: #fff;
         padding: 5px 10px;
         background: #fc329c;
         border-radius: 2px;
         font-size: 14px;
         text-decoration: none;
    }
</style>

<span class="viewcart-button">[ekm:viewcart][/ekm:viewcart]</span>
                                
This would output the button with styling as shown below.
View Cart

The EKM system allows for some tags to be nested within other tags.

Nesting This Tag

When nesting this tag you do not need to make any changes to it. It can be inserted into other tags like below.


[ekm:minicart]
    ...
    output_totals='[ekm:viewcart][/ekm:viewcart]';
    ...
[/ekm:minicart]