Craft Plugins: Snipcart and Stack Exchange


The Craft Stack Exchange site (now in public beta!) has me more focused on Craft than ever. Yesterday I finally cleaned up two plugins and released them into the wild.

Snipcart #

This one makes it possible, thanks to Snipcart’s API, to browse order information from the Craft control panel. I’ve got a working (but half-baked) web hook in there which currently sends an order confirmation email to a hardcoded address.

Check out your Snipcart orders from the Craft control panel.

https://github.com/mattstein/snipcart-craft-plugin

Stack Exchange #

A plugin that does one thing: it makes Craft CMS Stack Exchange info available for your templates, via the Stack Exchange API.

{% set se = craft.stackExchange.getProfile(22) %}

{{ se.reputation_change_day }} {# 7 #}
{{ se.badge_counts.bronze }} {# 18 #}
{{ se.badge_counts.silver }} {# 2 #}
{{ se.badge_counts.gold }} {# 0 #}
{{ se.badge_counts.location }} {# "Seattle" #}
{{ se.profile_image }} {# "http://i.stack.imgur.com/zwqV6.jpg?s=128&g=1" #}
{{ se.last_access_date }} {# 1403550544 #}
{{ se.accept_rate }} {# 100 #}
{{ se.link }} {# "http://craftcms.stackexchange.com/users/22/matt-stein" #}
{{ se.user_id }} {# 22 #}
{{ se.reputation_change_week }} {# 12 #}
{{ se.is_employee }} {# false #}
{{ se.website_url }} {# "http://workingconcept.com/" #}
{{ se.creation_date }} {# 1402531180 #}
{{ se.reputation_change_year }} {# 722 #}
{{ se.reputation }} {# 723 #}
{{ se.last_modified_date }} {# 1403051477 #}
{{ se.reputation_change_quarter }} {# 722 #}
{{ se.user_type }} {# "registered" #}
{{ se.account_id }} {# 482701 #}
{{ se.age }} {# 30 #}
{{ se.display_name }} {# "Matt Stein" #}
{{ se.reputation_change_month }} {# 722 #}

https://github.com/mattstein/stackexchange-craft-plugin

Each is a work in progress, but could probably be useful to someone as-is. I’m open to any thoughts, suggestions, pull requests, complaints, or exclamations anyone might have.

* * *