Skip to content

Instantly share code, notes, and snippets.

View UbaldoRosas's full-sized avatar
🛍️
Focusing on Shopify Development

Balo UbaldoRosas

🛍️
Focusing on Shopify Development
View GitHub Profile
SM = {
controller : new ScrollMagic.Controller(),
elems : {
animatedElement : $('#animated-element')
}
}
cleanSM : function() {
SM.controller = SM.controller.destroy(true);
@UbaldoRosas
UbaldoRosas / Shopify
Created September 24, 2018 17:16
Shopify - Product information for email templates
{
"id":1503438176369,
"title":"Test Product Brazalete - Opción 3",
"price":"99.00",
"line_price":"99.00",
"quantity":1,
"sku":"",
"grams":0,
"properties":[
[
@UbaldoRosas
UbaldoRosas / description-splitter.js
Last active March 11, 2021 17:42
Shopify product description splitter
// Contenedor en el cual buscar
var parent = $('#data-sections');
var titles = parent.find('h1');
function cleanString(str) {
// Función para reemplazar los caracteres especiales, acentos, espacios
var str = str
.toLowerCase()
.replace('á', 'a')
.replace('é', 'e')
@UbaldoRosas
UbaldoRosas / shopify-pagination-links.liquid
Last active October 22, 2020 00:11
Shopify pagination links with pages range. Currently shows 3 pages more and 3 pages less
@UbaldoRosas
UbaldoRosas / JS - Sprites animator.js
Last active July 24, 2019 17:59
Javascript | Sprites animator
animated_sprite = function () {
this.vars = {
currentIndex : 0,
path : null,
class : null,
interval : null,
lenght : null,
time : null
}
this.init = function(sprite, lenght = null, time)