Skip to content

Instantly share code, notes, and snippets.

@chexton
Created November 27, 2012 04:01
Show Gist options
  • Select an option

  • Save chexton/4152275 to your computer and use it in GitHub Desktop.

Select an option

Save chexton/4152275 to your computer and use it in GitHub Desktop.
vero protraining thanks
<?php while(shopp('purchase','items')): ?>
<script>
_veroq.push(['track', 'purchased_item', {name: '<?php shopp('purchase','item-name'); ?>', price: '<?php shopp('purchase','item-price'); ?>', qty: '<?php shopp('purchase','item-quantity'); ?>', download_url: '<?php shopp('purchase','item-download'); ?>'}]);
</script>
<?php endwhile; ?>
<script>
var items = [];
<?php while(shopp('purchase','items')): ?>
items.push({name: '<?php shopp('purchase','item-name'); ?>', price: '<?php shopp('purchase','item-price'); ?>', qty: '<?php shopp('purchase','item-quantity'); ?>', download_url: '<?php shopp('purchase','item-download'); ?>'});
<?php endwhile; ?>
_veroq.push(['track', 'completed_checkout', {items: items}]);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment