Skip to content

Instantly share code, notes, and snippets.

View CaptainHilly's full-sized avatar

Jason Hill CaptainHilly

  • Gold Coast, Australia
View GitHub Profile
@CaptainHilly
CaptainHilly / gist:c9c0183841b772837b6f
Last active August 29, 2015 14:17 — forked from brandonsheppard/gist:8778130
Show an advert on all categories
[%advert type:'text' category:'0' template:'footer'%][%/advert%]
function nRemoveSku(sku) {
$("#qty"+ sku).val(0);
}
function nAddSku(sku) {
$("#qty"+sku).val(1);
}
$(".nUpsellWidget--list--toggle").click(function(){
var isChecked = $(this).attr('checked');
var skuDetails = $(this).attr('data-product');
@CaptainHilly
CaptainHilly / gist:07e2e387565c58764b42
Last active August 29, 2015 14:15 — forked from brandonsheppard/gist:932bb2c5d5090f0fe4c6
Check if content image exists
[%SET [@hasimage@]%][%asset_url type:'content' id:'[@content_id@]' default:''/%][%/SET%]
[%IF [@hasimage@]%]<img src="[%ASSET_URL type:'content' id:'[@content_id@]' default:''%][%END ASSET_URL%]" />[%/IF%]
@CaptainHilly
CaptainHilly / gist:1f4138031e956a4b1fb6
Last active August 29, 2015 14:14
All neto functions
  • [%a2z%]
  • [%abandoned_carts%]
  • [%active_coupons%]
  • [%active_vouchers%]
  • [%address_book%]
  • [%advert%]
  • [%ajax_ship_calculator%]
  • [%ajax_suburb_selector%]
  • [%asset_url%]
  • [%attach_flash_movie%]