Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jeromegv's full-sized avatar

Jérôme Gagnon-Voyer jeromegv

View GitHub Profile
freakdesign /
Last active November 19, 2020 10:44
JavaScript function to calculate the total stock value within a Shopify store

Get total stock value of all Shopify products

Refers to the freakdesign blog post.

Most people that need to know the total stock value are already likely to be using a third party Inventory Management System, ERP (or similar). If you want to know what your total stock value is you can grab that info via the API - let's look how.


Paste the code into the browser debug console.

andyferra / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {