Skip to content

Instantly share code, notes, and snippets.

@davelowensohn
davelowensohn / gist:98b386c58ba09c00fa552e00a47d93ab
Last active December 6, 2023 17:15 — forked from carolineschnapp/gist:9122054
Order form to use in a page or collection template.
{% comment %}
Source: https://gist.github.com/davelowensohn/98b386c58ba09c00fa552e00a47d93ab
Forked from: https://gist.github.com/carolineschnapp/9122054
If you are not on a collection page, do define which collection to use in the order form.
Use the following assign statement, replace 'your-collection-handle-here' with your collection handle.
{% assign collection = collections.your-collection-handle-here %}
Use the assign statement outside of this comment block at the top of your template.
{% endcomment %}
{% paginate collection.products by 100 %}
@carolineschnapp
carolineschnapp / gist:9122054
Last active October 25, 2024 16:31
Order form to use in a page or collection template.
{% comment %}
Source: https://gist.github.com/carolineschnapp/9122054
If you are not on a collection page, do define which collection to use in the order form.
Use the following assign statement, replace 'your-collection-handle-here' with your collection handle.
{% assign collection = collections.your-collection-handle-here %}
Use the assign statement outside of this comment block at the top of your template.
{% endcomment %}
{% paginate collection.products by 100 %}
@surajkapoor
surajkapoor / gist:7862057
Last active October 10, 2016 05:01
The crawler below is configured to pull data from 'http://www.whippingpost.com/collections/all', returning scraped data in the form of nested dictionaries with the product URL as keys, and product data (price, image url, description) as corresponding values. I've displayed an example of the format below. I would like to rewrite the program so th…
'''
Data returned in the following format...
{
'status': True,
'date': 'December 08, 2013, 13:10:41',
'data':
{
u'http://www.whippingpost.com/collections/all/products/arizona-arena-bifold-picker-s-wallet':
{