This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- An HTML/Javascript code snippet for Ecwid to show a simple promo message popup on the cart page for orders less than the defined subtotal --> | |
<script> | |
if (typeof(Ecwid) == 'object') { | |
Ecwid.OnAPILoaded.add(function() { | |
var promoMessage = "Orders $99 and up ship free!"; | |
var minSubtotal = 99; | |
var checkSubtotal = function(order) { | |
if (order) { | |
var subtotal = order.total - order.shipping - order.tax; |