This file contains hidden or 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
| <style> | |
| .BIS_form { | |
| text-align: center; | |
| margin-top: 20px; | |
| display: none; | |
| } | |
| .BIS_form label { | |
| display: block; | |
| } |
This file contains hidden or 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
| <div> | |
| <label for="bis-email">Email me when available</label> | |
| <input type="email" id="bis-email"> | |
| <label> | |
| <input type="checkbox" id="bis-accepts-marketing"> | |
| Add me to the store mailing list | |
| </label> | |
| <button id="bis-submit">Email when available</button> | |
| </div> |
This file contains hidden or 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
| <div class="BIS_container"> | |
| <p>Be the first to know when this is available to order again.</p> | |
| <input type="text" name="BIS_email" class="BIS_email" placeholder="email address"> | |
| <input type="button" class="btn BIS_button" value="Email when available"> | |
| <p class="BIS_response"> </p> | |
| </div> | |
| <script> | |
| $(function() { |
This file contains hidden or 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
| <div class="soldOut"> | |
| <h3>Email when available</h3> | |
| <p> | |
| <input type="text" name="BIS_email" class="BIS_email" placeholder="Enter email"> | |
| <button type="button" class="BIS_submit">GO</button> | |
| </p> | |
| <p class="BIS_response"></p> | |
| <script> | |
| /* Back In Stock app */ |
This file contains hidden or 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
| {% if product.stock.track and not product.stock.on_stock %} | |
| <a href="#" class="btn" id="BIS_trigger">Email when available</a> | |
| {% endif %} |
This file contains hidden or 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
| {% assign show_form = settings.notify_me_form %} | |
| {% if product.tags contains 'bis_hidden' %} | |
| {% assign show_form = false %} | |
| {% endif %} | |
| {% if show_form %} | |
| <div class="notify_form" id="notify-form-{{ product.id }}" {% if product.available %}style="display:none"{% endif %}> | |
| <form action="/contact" method="post" data-first-variant="{{product.variants.first.id}}" id="BIS_form" onsubmit="return createNotification{{product.id}}(this); return false;"> | |
| {% if product.available == false and product.variants.size > 1 %} |
This file contains hidden or 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
| $('#bis-submit').on('click', function(e) { | |
| e.preventDefault(); | |
| var email = $('#bis_email').val(), | |
| variant = $('.size-handle.options li.hovered').data('variant'), | |
| productId = BISPopover.product.id, | |
| options = { | |
| accepts_marketing: $('#notify_opt_in').is(':checked') | |
| }; | |
This file contains hidden or 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
| $.ajax({ | |
| url: 'https://app.backinstock.org/stock_notification/create.json', | |
| jsonp: 'callback', | |
| dataType: "jsonp", | |
| data: { | |
| shop: 'feil-llc8678.myshopify.com', | |
| variant: { | |
| variant_no: 665433569 | |
| }, | |
| notification: { |
This file contains hidden or 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
| # this goes in ~/.freeagent | |
| ENV['FA_COMPANY'] = 'mycompany' | |
| ENV['FA_USERNAME'] = 'myloginemail' | |
| ENV['FA_PASSWORD'] = 'mypassword' |