Skip to content

Instantly share code, notes, and snippets.

@philcon93
philcon93 / 1.md
Last active August 17, 2017 09:30
Mega Menu
@philcon93
philcon93 / 1.md
Last active January 29, 2018 00:38
Updated Product variation dropdown template

Updated Product variation dropdown template

B@SE JS

When a user picks a variation on a product page, sections of the page will reload to update the content to fit the variation product. Also the list_item_variation selects will reload, and the template for these items are stored in Neto.js, specificly product_variationInit. When the user picks a variation, the product_variationInit function will run, which we use to say which templates need to reload, e.g:

$.product_variationInit({
 'loadtmplates': ['_buying_options', '_images','_header']
@philcon93
philcon93 / 1.md
Last active October 13, 2017 05:23
Neto Swiftype
@philcon93
philcon93 / 1.md
Created August 2, 2017 03:29
forloop

B@SE Forloop

[%FORLOOP to:'[@total_excesslabels@]'%]
	[%PARAM header%]
		<table cellpadding="4px" cellspacing="0" border="0" width="100%" align="center">
			<tr><td style="padding-left:8px; padding-right:8px;" nowrap><font style="font-size:11px;padding-left:25px;">Excess Labels</font></td></tr>
			<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
	[%/ PARAM%]
	[%PARAM *body%]

Features in Skeletal theme

Header

  • meta tags:
    • content-type, keywords, description, viewport, og:image, og:title, og:site_name, og:type, og:url.
  • title tag
  • link to; canonical url, favicon, theme-selector stylesheet, app.css, font-awesome, jquery-ui, fancybox
  • ie8 support; html5shiv, respond
  • logo
@philcon93
philcon93 / Themechecklist.md
Created July 17, 2017 06:31
Neto Theme Checklist

Theme Checklist

General

  • Layout is responsive
  • Layout works on IE9+ and latest versions of Safari, Firefox, Chrome.
  • Theme includes tracking codes in the following locations;
  • Theme includes a ‘powered by’ link.

SEO

@philcon93
philcon93 / Buildtheme.md
Last active July 17, 2017 06:39
Build Neto Theme

Build Theme

To build your theme ready for the theme store, simply navigate to your repository in terminal and run the following command:

bin/compile

This will create a new dist directory, inside it will have your theme as a zip file.

Note that you need Node.js installed to run this script successfully.

@philcon93
philcon93 / 1.md
Last active April 14, 2018 23:56
geolocation
@philcon93
philcon93 / 1.md
Last active October 17, 2019 04:24
enhancedgoogleanalytics

Enhanced Ecommerce Analytics

This code is how to measure a transaction with enhance ecomm instead of ecomm tracking