Skip to content

Instantly share code, notes, and snippets.

Neto Checkout Input Logging

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.

@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
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 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 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
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
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 April 30, 2020 12:01
google address checkout
@philcon93
philcon93 / 1.md
Created September 8, 2017 00:03
Neto filters

Neto Filters