This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Shopify shopping cart -- capture VAT numbers from customers. Used by Sufio for Shopify app (www.sufio.com/shopify). --> | |
<div class="vat-reg-number"> | |
<label for="vat_reg_no">VAT Registration Number</label> | |
<input type="text" id="vat_reg_no" name="attributes[VAT Registration Number]" value="{{ cart.attributes['VAT Registration Number'] }}"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Shopify shopping cart -- capture VAT numbers from customers, and validate them using VIES VAT number validation service. Used by Sufio for Shopify app (www.sufio.com/shopify). --> | |
<div class="vat-reg-number"> | |
<label for="vat_reg_no">VAT Registration Number</label> | |
<input type="text" id="vat_reg_no" name="attributes[VAT Registration Number]" value="{{ cart.attributes['VAT Registration Number'] }}"> | |
<input type="hidden" class="hidden" id="vat_no_valid" name="attributes[VAT Number Valid]" value="{{ cart.attributes['VAT Number Valid'] }}"> | |
</div> | |
<script type="text/javascript"> | |
$('input#vat_reg_no').change(function() { | |
var url = "/apps/sufio/vat-check/"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Invoice language for online stores using Langify app. Used by Sufio for Shopify (http://www.sufio.com/shopify). --> | |
{% assign language = cart.attributes["language"] %}{% if language == nil %}{% assign language = shop.metafields["languages"]["default"] %}{% endif %}{% assign invoice_language = shop.metafields.languages[language] %}{% if shop.metafields.language_codes[language] %}{% assign invoice_language = shop.metafields.language_codes[language] %}{% endif %} | |
<div class="invoice-language"><input type="hidden" id="invoice_language" name="attributes[Invoice Language]" value="{{ invoice_language }}"><link itemprop="url" href="http://www.sufio.com/shopify" /></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="{{ shop.url }}/apps/sufio/invoice/?id={{ id }}&number={{ order_number }}">View or download invoice</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Link to print or download invoice for current order. Used by Sufio for Shopify (http://www.sufio.com/shopify). --> | |
<div class="order-invoice"> | |
<i class="icon icon--print"></i> | |
<a target="_blank" href="{{ shop.url }}/apps/sufio/invoice/?id={{ order.id }}&number={{ order.order_number }}">Print or download invoice for this order</a> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Link to print or download invoice from customer account page. Used by Sufio for Shopify (http://www.sufio.com/shopify). --> | |
<div class="order-invoice"> | |
<a target="_blank" href="{{ shop.url }}/apps/sufio/invoice/?id={{ order.id }}&number={{ order.order_number }}">Print or download invoice</a> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Shopify shopping cart -- capture ABN from customers. Used by Sufio for Shopify app (www.sufio.com/shopify). --> | |
<div class="vat-reg-number"> | |
<label for="vat_reg_no">ABN</label> | |
<input type="text" id="vat_reg_no" name="attributes[VAT Registration Number]" value="{{ cart.attributes['VAT Registration Number'] }}"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Integration between Sufio and Coin apps to enable multi-currency support. --> | |
<div class="invoice-currency-container" style="display:none;"> | |
<input type="hidden" id="invoice-currency" name="attributes[Invoice Currency]" value="" /> | |
<input type="hidden" id="invoice-currency-rate" name="attributes[Invoice Currency Rate]" value="" /> | |
<input type="hidden" id="invoice-usd-rate" name="attributes[Invoice USD Rate]" value="" /> | |
</div> | |
<script type="text/javascript"> | |
$( document ).on( "shoppad:coin:currencychange", function() { | |
$("input#invoice-currency").val(window.Shoppad.apps.coin.getLocalCurrency()); | |
$("input#invoice-currency-rate").val(window.Shoppad.apps.coin.getLocalCurrencyUSDExchangeRate() / window.Shoppad.apps.coin.getBaseCurrencyUSDExchangeRate()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Integration between Sufio and Shopify themes with multi-currency support. --> | |
<div class="invoice-currency-container" style="display:none;"> | |
<span class=money id="currency-rate">1.00</span> | |
<input type="hidden" id="invoice-currency" name="attributes[Invoice Currency]" value="" /> | |
<input type="hidden" id="invoice-currency-rate" name="attributes[Invoice Currency Rate]" value="" /> | |
</div> | |
<script type="text/javascript"> | |
updateInvoiceCurrency = function() { | |
$("input#invoice-currency").val($("span#currency-rate").attr("data-currency")); | |
$("input#invoice-currency-rate").val(Number($('span#currency-rate').text().replace(/[^0-9\.]+/g,"").replace(/^[^0-9]+/g,"").replace(/[^0-9]+$/g,""))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Link to print or download invoice for order on the Customer Account page. Used by Sufio for Shopify (http://www.sufio.com/shopify). --> | |
<td> | |
<span class="invoice"> | |
<a target="_blank" href="{{ shop.url }}/apps/sufio/invoice/?id={{ order.id }}&number={{ order.order_number }}">Invoice</a> | |
</span> | |
</td> |
OlderNewer