Skip to content

Instantly share code, notes, and snippets.

@raafirivero
raafirivero / -Shopify-Sendy.md
Last active July 15, 2021 06:12 — forked from ridem/-Shopify-Sendy.md
Synchronize Shopify customers with Sendy

Synchronize Shopify customers with Sendy subscribers

Sendy woudln't be the Mailchimp killer without a proper Shopify integration. Here's a fork of ridem's Shopify gem, updated for a modern install of Ruby.

NB: The script always keep in sync Shopify's accepts_marketing field with Sendy's unsubscribed field. I added custom fields like country and order count as an example of what we can do with it.

Installation

First make sure that you have Ruby installed with the following gems: activerecord, protected_attributes_continued, shopify_api, yaml, mysql2

<body>
<br />
<br />
<br />
<style type='text/css'>
#sig a{margin:0;padding:0;border:none;text-decoration:none;color:black;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;}
#sig a:visited{color:black}
#sig p{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;margin: 6px;margin-left: 14px}
#sig canvas{width:36px;height: 4px;background-color:black;margin:16px 0 20px 14px;}
table,tr,td,a,span{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;}