Skip to content

Instantly share code, notes, and snippets.

@stevem21m
stevem21m / buy-all.html
Created March 24, 2022 22:43
Shopify Add multiple items to the cart with one button
{% comment %}
This will add all items from your collection to the cart
Update you-collection with your collection tag name.
{% endcomment %}
{% assign collection = collections.your-collection %}
{% paginate collection.products by 100 %}
<form action="/cart" method="post">
{% if collection.products_count > 0 %}
{% for product in collection.products %}
@stevem21m
stevem21m / javascript-react-native.js
Created February 15, 2017 01:40
React Native Vim Snippet
snippet rnc
import React, { Component } from 'react';
import {
Text,
View,
} from 'react-native';
class ${1} extends Component {
constructor() {