Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason jasonandmonte

View GitHub Profile
View user-snippets.json
{
"const": {
"prefix": "c",
"body": "const $0",
"description": "const"
},
"let": {
"prefix": "l",
"body": "let $0",
"description": "let"
@jasonandmonte
jasonandmonte / miva-print-structure.xml
Created Aug 6, 2020
Print all entities (keys) associated with the provided target.
View miva-print-structure.xml
<mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:record), ',', '<br>'))" />
@jasonandmonte
jasonandmonte / miva-iter-template.xml
Last active Aug 7, 2020
Miva feed iterator template with product attributes and categories.
View miva-iter-template.xml
<mvt:comment>
| Lookup Categories each product is assigned to and output them as a single
| pipe (|) seperated list
</mvt:comment>
<mvt:assign name="g.assigned_categories" value="''" />
<mvt:assign name="g.category_list" value="''" />
<mvt:do name="l.result" file="g.Module_Library_DB" value="CategoryList_Load_Offset_Product_Assigned(l.settings:record:id,0,'','',0,l.null, g.assigned_categories )" />
View git-test.js
'Testing if can commit'
'Test 2'
'Test 3'
// ref: how I saved the edit: https://stackoverflow.com/questions/5299526/github-committing-push-gist
// ref: commit history https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History
// ref: https://gist.github.com/eduncan911/7c7ddb02b16ed83478e22aa4d209b17f
@jasonandmonte
jasonandmonte / check-boxes.js
Created Jan 14, 2019
Checks all the boxes on the web page for the Magento export.
View check-boxes.js
var inputs = document.getElementsByTagName("input");
for(var i = 0; i < inputs.length; i++) {
if(inputs[i].type == "checkbox") {
inputs[i].checked = true;
}
}