Skip to content

Instantly share code, notes, and snippets.

View gil--'s full-sized avatar
💰
Scaling Shopify Apps

Gil Greenberg gil--

💰
Scaling Shopify Apps
View GitHub Profile
@gil--
gil-- / shopify_delete_orders.js
Created December 18, 2018 21:58 — forked from xmcp123/shopify_delete_orders.js
Delete all orders from a shopify store admin panel.
//Run this from /admin/orders/. Paste it into the javascript console and press enter.
function delete_all()
{
l = $("[name*=order_ids_]");
console.log("Found "+l.length+" checkboxes");
for(i=0; i<l.length; i++)
{
name = $(l[i]).attr("name");
if(name.indexOf("order_ids_") > -1)
{
@gil--
gil-- / magento2-include-static-blocks.md
Created December 27, 2017 19:19 — forked from mttjohnson/magento2-include-static-blocks.md
Magento 2 - Include Static Blocks (template/cms/layout)

In .phtml tempalte file:

<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('block_identifier')->toHtml();?>

In CMS content:

{{block class="Magento\\Cms\\Block\\Block" block_id="block_identifier"}}

In layout .xml file:

<referenceContainer name="content">
  <block class="Magento\Cms\Block\Block" name="block_identifier">
@gil--
gil-- / 0_reuse_code.js
Created October 18, 2015 19:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@gil--
gil-- / tools
Created March 5, 2015 23:22
Tools
// Git/File Comparison
diffchecker.com
// CSS - Baseline Generator
http://joshnh.com/tools/em-baseline-generator.html