Skip to content

Instantly share code, notes, and snippets.

View stoll's full-sized avatar
🚧
Digital construction worker

stoll stoll

🚧
Digital construction worker
View GitHub Profile
@stoll
stoll / gist:36dfed3f2bfa322f54b7
Last active August 29, 2015 14:20
Tooltips Example - Bootstrap 3
<!-- Tooltip example -->
<button type="button" class="btn btn-default"
data-toggle="tooltip"
data-placement="top"
title="Tooltip on top">Tooltip on top</button>
<!-- The following code will enable all tooltips in the document -->
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
@stoll
stoll / Shopify: Shipping update in HTML (Danish)
Created April 30, 2015 12:39
Shopify: Shipping update in HTML (Danish)
<!-- TRANSLATED BY: Sebastian Stoll from www.justonline.dk -->
{% if billing_address.name %}
<p>Hej, {{ billing_address.name }}!</p>
{% endif %}
<p>De følgende, afsendte varer {{ name }} er blevet opdateret med ny leveringsstatus:</p>
<ul style="list-style-type:none">
{% for line in fulfillment.fulfillment_line_items %}<li>
<img src="{{ line.line_item | img_url: 'small' }}" />
@stoll
stoll / Shopify: Shipping confirmation in HTML (Danish)
Created April 30, 2015 12:32
Shopify: Shipping confirmation in HTML (Danish)
<!-- TRANSLATED BY: Sebastian Stoll from www.justonline.dk -->
{% if billing_address.name %}
<p>Hej, {{ billing_address.name }}!</p>
<p></p>
{% endif %}
<p>{% if fulfillment.item_count == item_count %}Alle{% elsif fulfillment_status == 'fulfilled' %}De seneste{% else %}Nogle af{% endif %} varerne fra ordren {{ name }} er nu blevet afsendt:</p>
<p>{% for line in fulfillment.fulfillment_line_items %}<img src="{{ line.line_item | img_url: 'small' }}" />{{ line.quantity }} x {{ line.line_item.title }}<br>
{% endfor %}</p>
<p>{% if requires_shipping %}De er afsendt {% if fulfillment.tracking_company %}via {{ fulfillment.tracking_company }} {% endif %}til den følgende adresse:</p>
@stoll
stoll / Shopify: Refund Notification in HTML (Danish)
Created April 30, 2015 12:26
Shopify: Refund Notification in HTML (Danish)
{% if customer.name %}
<p>Hej, {{ customer.name }}!</p>
<p></p>
{% endif %}
<p>{{ shop_name }} har refunderet din ordre ({{ name }}) {% if amount > 0 %}til i alt {{ amount | money_with_currency }}{% endif %}{% if refund_line_items.size > 0 %} for:</p>
<p>
{% for line in refund_line_items %}
{{ line.quantity }} x {{ line.line_item.title }}</p>
{% endfor %}
{% else %}
@stoll
stoll / Shopify: Order Confirmation in HTML (Danish)
Created April 30, 2015 12:13
Shopify: Order Confirmation in HTML (Danish)
<!-- TRANSLATED BY: Sebastian Stoll from www.justonline.dk -->
<p>Tak for din bestilling hos {{ shop_name }}!</p>
<p>Denne e-mail er en ordrebekræftelse, som indikerer at vi har modtaget din ordre.</p>
<p>Dato: {{ date | date: "%m/%d/%Y" }}</p>
{% if requires_shipping and shipping_address %}
<p><b>Leveringsadresse:</b><br />
{{ shipping_address.name }}<br />
{{ shipping_address.street }}<br />
{{ shipping_address.city }}<br />
{{ shipping_address.province }}
@stoll
stoll / Shopify: Order Cancelled in HTML (Danish)
Created April 30, 2015 12:10
Shopify: Order Cancelled in HTML (Danish)
<!-- TRANSLATED BY: Sebastian Stoll from www.justonline.dk -->
{% if billing_address.name %}
<p>Hej, {{ billing_address.name }}!</p>
<p></p>
{% endif %}
<p>Din ordre {{ name }} blev afvist {% case cancel_reason %}{% when 'customer' %}efter dit ønske.{% when 'inventory' %}da vi desværre ikke har lager nok, til at gennemføre din ordre.{% when 'fraud' %}da din ordre blev markeret som svigagtig.{% when 'other' %}på grund af uforudsete omstændigheder.{% endcase %}</p>
<p></p>
<p>{% if financial_status == 'voided' %}Din betaling er blevet annulleret.{% elsif financial_status == 'credited' %}Din betaling er blevet refunderet.{% endif %}</p>
@stoll
stoll / Shopify: New Order Notification in Danish (HTML)
Created April 30, 2015 12:04
Shopify: New Order Notification in Danish (HTML)
<!-- TRANSLATED BY: Sebastian Stoll from www.justonline.dk -->
<p>Hej, {{ shop_name }}!</p>
<p></p>
<p>{% if customer.name %}{{ customer.name }}{% else %}En person{% endif %} foretog en bestilling i dag, {{ date | date: "%b %d %I:%M%p" }}:</p>
<p></p>
<ul>
{% for line in line_items %}
<li>
<img src="{{ line | img_url: 'thumb' }}" /> {{ line.quantity }}x {{ line.title }} - {{ line.price | money }} pr. stk.
</li>
@stoll
stoll / Shopify: Gift Card Notification in HTML (Danish)
Created April 30, 2015 12:00
Shopify: Gift Card Notification in HTML (Danish)
<!-- TRANSLATED BY: Sebastian Stoll from www.justonline.dk -->
<div style="font-family:Sans-Serif;font-size:12px;width:100%;margin:5px;">
<p>Hej, {% if gift_card.customer %} {{ gift_card.customer.first_name }}{% endif %}!</p>
<p>Her er dit <a href="{{ shop.url }}">{{ shop.name }}</a> gavekort til en værdi á {{ gift_card.initial_value | money_without_trailing_zeros }}.</p>
{% if gift_card.initial_value != gift_card.balance %}
<p>Du har {{ gift_card.balance | money_without_trailing_zeros }} tilbage på dette gavekort.</p>
{% endif %}
@stoll
stoll / Shopify: Fulfillment Request in HTML (Danish)
Created April 30, 2015 11:58
Shopify: Fulfillment Request in HTML (Danish)
<!-- TRANSLATED BY: Sebastian Stoll from www.justonline.dk -->
<p>{{ service_name }},</p>
<br>
<p>Venligst afsend ordre {{ name }}.</p>
<p>Total antal varer: {{ fulfillment.item_count }}</p>
<p>Antal unikke varer: {{ fulfillment.fulfillment_line_items.size }}</p>
<br>
<p><strong>Varer til afsending:</strong></p>
{% for line in fulfillment.fulfillment_line_items %}
<p>Vare: {{ line.line_item.title }}</p>
@stoll
stoll / Shopify: Customer Password Reset in HTML (Danish)
Created April 30, 2015 11:51
Shopify: Customer Password Reset in HTML (Danish)
<!-- TRANSLATED BY: Sebastian Stoll from www.justonline.dk -->
{% if customer.name %}
<p>Hej, {{ customer.name }}!</p>
<p></p>
{% endif %}
<p>Du har anmodet om en nulstilling af dit kodeord på {{ shop.name }}</p>
<p></p>
<p>Klik på følgende link, for at vælge et nyt kodeord:</p>
<p></p>
<p>{{ customer.reset_password_url }}</p>