Skip to content

Commit

Permalink
Various script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wdgrantham committed Sep 11, 2019
1 parent 2ef254e commit 32c5e29
Show file tree
Hide file tree
Showing 38 changed files with 6,252 additions and 430 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified Images/.DS_Store
Binary file not shown.
Binary file added Images/columns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/ss_cta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/ss_ltr_underline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 23 additions & 25 deletions blogs/payments_blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
background-color: #f2f2f2;
}

#payments_comp tr:nth-child(5), #payments_comp tr:nth-child(5) td {
#payments_comp tr:nth-child(7), #payments_comp tr:nth-child(7) td {
background-color: white;
font-size: .7rem;
}
Expand Down Expand Up @@ -101,67 +101,65 @@
}

#payments_comp tr td:nth-child(5), #payments_comp tr th:nth-child(5){
display: var(--display-rates-squareBtn);
}

#payments_comp tr td:nth-child(6), #payments_comp tr th:nth-child(6){
display: var(--display-rates-etsyBtn);
}

#payments_comp tr td:nth-child(7), #payments_comp tr th:nth-child(7) {
display: var(--display-rates-shopifyBtn);
}
}

</style>

<div id="rate_buttons" class="btn-group">
<p>Pick a processor to compare rates:</p>
<button id="blessBtn" class="btn ratesBtn" style="background-color: #82dacc;">Bless</button><button id="paypalBtn" class="btn ratesBtn" >Paypal</button><button id="squareBtn" class="btn ratesBtn" >Square</button><button id="etsyBtn" class="btn ratesBtn" >Etsy</button><button id="shopifyBtn" class="btn ratesBtn" >Shopify</button>
<button id="blessBtn" class="btn ratesBtn" style="background-color: #82dacc;">Bless</button><button id="paypalBtn" class="btn ratesBtn" >Paypal/Square/Shopify</button><button id="etsyBtn" class="btn ratesBtn" >Etsy</button>
</div>

<table id="payments_comp">
<tr>
<th></th>
<th>Sonlet</th>
<th>Bless</th>
<th>Paypal</th>
<th>Square</th>
<th>Paypal/Square/Shopify</th>
<th>Etsy</th>
<th>Shopify</th>
</tr>
<tr>
<td>Processing rate</td>
<td>2.89% + $0.25</td>
<td>3.45% + $0.15</td>
<td>2.9% + $0.30</td>
<td>2.9% + $0.30</td>
<td>3% + $0.25</td>
<td>2.9% + $0.30</td>
<td>2.89%</td>
<td>3.45%</td>
<td>2.9%</td>
<td>3%</td>
</tr>
<tr>
<td>Transaction fee</td>
<td>$0.25</td>
<td>$0.15</td>
<td>$0.30</td>
<td>$0.25</td>
</tr>
<tr>
<td>Estimated fees <br>for $50 Sale</td>
<td>Estimated fees<br>for $50 Sale</td>
<td>$1.70</td>
<td>$1.87</td>
<td>$1.75</td>
<td>$1.75</td>
<td>$1.75</td>
<td>$1.75</td>
</tr>
<tr>
<td>Estimated fees<br>for $3,000 Sales</td>
<td>$96.70</td>
<td>$109.50</td>
<td>$99.00</td>
<td>$100.00</td>
</tr>
<tr>
<td>Lowest fees</td>
<td class="checked"></td>
<td>&mdash;</td>
<td>&mdash;</td>
<td>&mdash;</td>
<td>&mdash;</td>
<td>&mdash;</td>
</tr>
<tr><td colspan="7"><small>All prices used in these tables are from the publicly advertised online sites of each company or a reputable publicly avalailable online forum as of 5/20/19.</small></td></tr>
</table>

<script>
let btn_ids = ['blessBtn', 'paypalBtn', 'squareBtn', 'etsyBtn', 'shopifyBtn']
let btn_ids = ['blessBtn', 'paypalBtn', 'etsyBtn']
for (btn_id = 0; btn_id < btn_ids.length; btn_id++){
let btnElement = btn_ids[btn_id]
document.getElementById(btnElement).addEventListener("click", function() {changeDisplay(btnElement)});
Expand Down
Empty file.
Binary file not shown.
30 changes: 30 additions & 0 deletions email_marketing/monthly_to_active_users/featured_text_190507.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

<p>Spring is here and Sonlet is too! We're so excited to welcome Spring again, and with more sunshine and less snow and rain, we've ramped up our game here at Sonlet. Our businesses change along with the seasons ... people stop wearing sweaters and look for short sleeves and dresses, they stop using Facebook and start texting more. Here at Sonlet, we track all these trends and work hard to make sure that you can rely on our software to support your businesses, even when things change. So here are a few things that we think you'll love about Sonlet this Spring.</p>

<h4>Post to multiple Sonlet Parties at Once!</h4>
<p>A couple of months ago, we gathered some feedback about how Sonlet Parties have been working, several folks voiced that they'd love to be able to list items in multiple Sonlet parties at once. Its here. Check out the full description of this enhancement below.</p>

<h4>Shipping labels enhancements</h4>
<p>Lots more details on these below, but here's a quick synopsis:</p>
<ul>
<li>APO address support for military addresses</li>
<li>Bless CSV Upload</li>
<li>Custom package sizes for shipping labels</li>
<li>Request signatures, shipment update emails, and Insurance</li>
<li>Bulk labels download</li>
<li>Auto address complete on Shipping page</li>
</ul>

<h4>Unlike items</h4>
<p>You can now go to the liked items list either on the Shop dashboard or the All Liked Items page and click the like button and it will unlike the item. Please let your shoppers know about this new functionality as well... especially since we know that many of them use the Like Items feature to keep track of the stuff they have their eye on buying from you.</p>

<h4>Text message marketing integrations</h4>
<p>We've added two text message marketing integrations to Sonlet on our <a href="https://sonlet.com/apps/" target="_blank">apps page</a> that are worth taking a look at if you're trying to reengage and reinvigorate your marketing. Text message marketing is the latest trend that many small and large businesses are using to keep an edge over the competition as the email inbox continues to get segmented and paired back by the gmail, yahoo mail, and outlook. If you're looking to do outbound text message marketing to notify your customers about upcoming sales or when you go live, then check out <i>Text Message Alerts</i>. They've got a fantastic integration that will make it easy to include links to your inventory items or parties right in your email blasts. If, on the other hand, you're always inundated with messages on Facebook messenger or your personal cell phone number, and you'd like a little help to automate your customer support, check out <i>Shout</i>. They have a fantastic little text and facebook messenger bot that will change your business for the better.</p>

<h4>IN TESTING</h4>

<p>We're testing (and perfecting) two really big features: Post to the Wall and Sonlet Payments. Here's the latest for those that can't wait to try them out:</p>
<ul>
<li><b>Sonlet Social Post to the Wall</b> &mdash;> We're really excited to see this feature take Sonlet Social to the next level. In the digital world that we live in our businesses depend on selling on Social Media. With this feature, you'll be able to schedule and post to the wall of your Facebook Groups and Facebook Pages right from Sonlet Social. We're planning to add support for Instagram (stay tuned), and you'll be able to easily post inventory items, party page links, and rewards cards links. For many of you, we hope this will make it much more convenient to get your Sonlet Inventory over to Social Media, and for others we'll save you $20 or more on social posting software subscriptions.</li>
<li><b>Sonlet Payments</b>&mdash;> Sonlet Payments will allow you to collect payment with Sonlet, either by sending an invoice after a customer has claimed or by enabling checkout with a card on the Done Shopping page. Payments will be optional, but to give you a reason to switch over we've built Sales Tax calculation and Sales Tax autofiling right into Sonlet Payments to save you time and money, and it includes an easier way to collect shipping and postage fees. Plus, payouts will be made directly to your bank account daily without any fees (unlike Venmo and Paypal).</li>
</ul>
72 changes: 72 additions & 0 deletions email_marketing/monthly_to_active_users/fix_cio.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
from customerio import CustomerIO
import requests
import json



#cio.identify(id='925066', newsletter_items_delivered='79726,87666,87686,87693,650,701,716,718,100331,100340,100362,90607,99176,99177,99178,755,787,807,810')

#for cio_id,new_attribute in fixes:
# print(cio_id + ': ' + new_attribute)

def rollback_sonlet():
cio = CustomerIO('6d30b69c3d9afe45835b', 'd3951fc08db29107a260')

fixes = {
'970414':'100331,100340,100362,90607,99176,99177,99178,755,787,807,810',
'59222':'79726,87666,87686,87693,650,701,716,718,100331,100340,100362,90607,99176,99177,99178,755,787,807,810,,595,612,684,742',
'136314':'79726,87666,87686,87693,650,701,716,718,100331,100340,100362,90607,99176,99177,99178,755,787,807,810,,595,612,684,742',
'36477':'79726,87666,87686,87693,650,701,716,718,69622,69978,70114,73090,595,612,682,684,100331,100340,100362,90607,99176,99177,99178,755,787,807,810,,533,543,585,742',
'103532':'79726,87666,87686,87693,650,701,716,718,100331,100340,100362,90607,99176,99177,99178,755,787,807,810,,595,612,684,742',
'2549':'79726,87666,87686,87693,650,701,716,718,100331,100340,100362,90607,99176,99177,99178,755,787,807,810,,595,612,684,742',
'383882':'79726,87666,87686,87693,650,701,716,718,100331,100340,100362,90607,99176,99177,99178,755,787,807,810,,595,612,684,742',
'125421':'79726,87666,87686,87693,650,701,716,718,69622,69978,70114,73090,595,612,682,684,100331,100340,100362,90607,99176,99177,99178,755,787,807,810,,533,543,585,742',
'470544':'79726,87666,87686,87693,650,701,716,718,100331,100340,100362,90607,99176,99177,99178,755,787,807,810',
'28463':'79726,87666,87686,87693,650,701,716,718,100331,100340,100362,90607,99176,99177,99178,755,787,807,810,,595,612,684,742',
'93281':'100331,100340,100362,90607,99176,99177,99178,755,787,807,810',
'1':'79726,87666,87686,87693,650,701,716,718,69622,69978,70114,73090,595,612,682,684,100331,100340,100362,90607,99176,99177,99178,755,787,807,810,,533,543,585,742',
'5':'79726,87666,87686,87693,650,701,716,718,69622,69978,70114,73090,595,612,682,684,100331,100340,100362,90607,99176,99177,99178,755,787,807,810,,533,543,585,742'
}

for cio_id,new_attribute in fixes.items():
cio.identify(id=cio_id, newsletter_items_delivered=new_attribute)
print('cio_id: ' + cio_id)
print('new_attribute: ' + new_attribute)

def rollback_piu():
cio = CustomerIO('0dfefb1081f03692b8ce', '9d368b1ddbe561236ab0')

fixes = {
'1':'4a37a,4be72,0ea0a,ef3b6,4ed57,8137e,3d6c7,e9298,',
'95':'4a37a,4be72,0ea0a,ef3b6',
'3':'4a37a,4be72,0ea0a,ef3b6,,4ed57,8137e,3d6c7,e9298,ffaa5,fe8d5,f3d66a3bf2,e2149,afdc4,e75c1,a3bf2,51d92,b3061,290a3,',
'7':'4a37a,4be72,0ea0a,ef3b6,4ed57,8137e,3d6c7,e9298,',
'9':'4a37a,4be72,0ea0a,ef3b6,4ed57,8137e,3d6c7,e9298,',
'62':'4a37a,4be72,0ea0a,ef3b6,4ed57,8137e,3d6c7,e9298',
'137':'4a37a,4be72,0ea0a,ef3b6,4ed57,8137e,3d6c7,e9298,',
'295':'4a37a,4be72,0ea0a,ef3b6,',
'2':'4a37a,4be72,0ea0a,ef3b6,',
'10':'4a37a,4be72,0ea0a,ef3b6,4ed57,8137e,3d6c7,e9298,',
'17':'4a37a,4be72,0ea0a,ef3b6,',
'5826':'4a37a,4be72,0ea0a,ef3b6,4ed57,8137e,3d6c7,e9298,',
'6349':'4a37a,4be72,0ea0a,ef3b6,'
}

for cio_id,new_attribute in fixes.items():
cio.identify(id=cio_id, newsletter_items_delivered=new_attribute)
print('cio_id: ' + cio_id)
print('new_attribute: ' + new_attribute)


def get_cio_segment_members(site_id, api_key, segment_id):
auth = (site_id, api_key)
url = 'https://api.customer.io/v1/api/segments/' + str(segment_id) + '/customer_count'
headers = {'Content-Type': 'application/json'}
# Send POST request to trigger API triggered campaign
r = requests.get(url=url, auth=auth, headers=headers)

return r.text

#print(get_cio_segment_members('0dfefb1081f03692b8ce', '9d368b1ddbe561236ab0', 43))
rollback_piu()

Loading

0 comments on commit 32c5e29

Please sign in to comment.