Skip to content

Instantly share code, notes, and snippets.

@brandonsheppard
Created March 3, 2014 00:54
Show Gist options
  • Save brandonsheppard/9316605 to your computer and use it in GitHub Desktop.
Save brandonsheppard/9316605 to your computer and use it in GitHub Desktop.
Show the cart total using Neto B@SE
<div class="total-text">
Total:
<strong>
<span rel="a2c_sub_total" id="header-subtotal">
[%if [@product_total@]%]
$[%FORMAT type:'number' dp:'0'%][%CART id:'product_total'%][%END CART%][%END FORMAT%]
[%else%]
$[%FORMAT type:'number' dp:'0'%][%CART id:'product_total'%][%END CART%][%END FORMAT%].00
[%/ if%]
</span>
</strong>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment