-
Notifications
You must be signed in to change notification settings - Fork 1
SIBT workflow
1337 edited this page Aug 10, 2012
·
10 revisions
- Silver button
- Installs only on Shopify, as a "script tag asset"
- Silver button
- Comes with top bar
- Installs only on Shopify, as a snippet (
willet_sibt.liquid)
- Blue button
- Comes with top bar (removable)
- Version bump
- Allows votes with multiple products, aka "WOSIB mode"
- Installs on Shopify as a snippet (
willet_sibt.liquid) or as a copy-paste JS (SIBT-JS)
- Shu Uemura-specific modifications (only single-product votes, vendor-specific templates, branded emails)
- Single-product votes no longer an option on Shopify shops
- user visits product page. load
sibt.js. -
sibt.jsis deprecated. server redirects request toreal-sibt.js. - does this shop have an account? if not, send null script.
- did this shop uninstall? if yes, send null script.
- send script to browser.
- script loads jquery, colorbox, and other pre-requisites on to the page.
- is there a product on this page? if not, attempt to create a product, and quit the script.
- did the user look at more than two products in this shop? if yes, show button. otherwise, quit the script.
- if client enabled top bar, show it.
- if client enabled bottom popup, show it.
- did the user already create a vote? if yes, swap the "ask friends" button with a "show results" button.
- Shopify: http://rf.rs/s/shopify/beta
- Shu Uemura: http://rf.rs/s/shuuemura/welcome
- Everyone else: http://rf.rs/s/beta
-
SIBT(App): functionality of Should I Buy This -
SIBTShopify(SIBT, AppShopify): communication, installation, and integration code between Shopify and us -
SIBTInstance: aka "a SIBT vote", anSIBTInstancestores information about the vote, e.g. who started the vote, which product(s) he/she chose, how many votes, etc. -
PartialSIBTInstance(Model): deprecated; originally used to self-expire instances that do not qualify as a full vote (e.g. user did not tell us who he/she is)