Skip to content

Instantly share code, notes, and snippets.

@philcon93
philcon93 / 1.md
Last active September 18, 2017 04:38
Place an observer on npopup

nPopup observer

JS

This popup is used for many items for Neto sites, e.g:

  • Add to cart,
  • Remove from cart
  • Wishlist
@philcon93
philcon93 / 1.md
Last active October 9, 2017 06:18
Extend Jquery fucntionality

Extend jQuery

JS

Extend jQuery functionality to use functions globally but not increasing global name space.

jQuery.extend({
    percentage: function(a, b) {
 return Math.round((a / b) * 100) + '%';
@philcon93
philcon93 / 1.md
Created October 4, 2017 02:57
Quick jQuery Validation

jQuery Validation

JS

	<script type="text/javascript" src="[%ntheme_asset%]js/jquery-validation/jquery.validation.min.js[%/ntheme_asset%]"></script>
	<script type="text/javascript" language="javascript">
		$("#register").validate({
			rules: {
 reg_email: {
@philcon93
philcon93 / 1.md
Created October 12, 2017 01:48
Defer images with js

Defer images

JS

Defer images to load after page load and ensure images only for mobile or only for desktop do no load on the incorrect viewpoint.

@philcon93
philcon93 / 1.md
Created October 18, 2017 23:31
Filter out product groups

Filter out product groups

B@se

Item Groups are used for specifying the minimum order quantity, the minimum spend amount and the minimum order multiplier for a group of products. You can add items to an item group from an items edit page.

But it can also be used to exclude from thumb_lists so it doesn't display on home/category pages. This could be useful as you might want a product to be only sold as a promotion or upsell. So you would want to hide ot from the home/category/search and then ensure on the product page for these products it doesn't have add to cart functionality.

Note that the Advanced Product addon must be activated in order for this to work.

@philcon93
philcon93 / 1.md
Created October 26, 2017 06:56
Add users location to store finder

Add users location to store finder

JS

@philcon93
philcon93 / 1.md
Last active October 27, 2017 04:28
Show/hide password input field

Show/hide password input field

JS

This is allows you to see/hide the password input fields, making it a lot easier to input a create value.

Neto Checkout Input Logging

JS

@philcon93
philcon93 / 1.md
Last active November 30, 2017 22:53

Google Analytics Goals

  • If you don't have one already, then register for a Google account.
  • Using your Google account, register for Google Analytics.
  • Add your Neto site to your Google Analytics account.
  • Set up Google Analytics to work with your Neto site.
  • Click the Goals tab.
  • Add a Goal Name, such as Checkout Abandonment.
  • Add a Goal Type of, Destination.
  • Add a Goal URL, /invoice.html
@philcon93
philcon93 / 1.md
Last active January 2, 2018 05:06
How to Git

Contribute to Skeletal

Have you found an issue on Skeletal but don't know exactly how to fix it? Raise an issue:

Do you know a fix for a current Skeletal issue? Do you have an enhancement to Skeletal?

  • Make a Pull Request with your new code: