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
| class OrderPage extends StatefulWidget { | |
| @override | |
| _OrderPageState createState() => _OrderPageState(); | |
| } | |
| class _OrderPageState extends State<OrderPage> { | |
| bool isShowing = true; | |
| @override | |
| Widget build(BuildContext context) { | |
| return Column(children: [ |
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
| <!-- simply-insurance --> | |
| {%- assign sidecart = shop.metafields.SimplyInsurance.sidecart -%} | |
| {%- assign sidecart = false -%} | |
| <script> | |
| window.simplyInsurance = window.simplyInsurance || {}; | |
| window.cn = function (o) { return "undefined" == typeof o || null == o || "" == o.toString().trim() }; | |
| simplyInsurance.insurancePlan = {{ shop.metafields.SimplyInsurance.InsurancePlan | json }}; | |
| simplyInsurance.insurancePlan = JSON.parse(simplyInsurance.insurancePlan); | |
| simplyInsurance.money_format = "{{ shop.money_format }}"; | |
| simplyInsurance.cartJson = {{ cart | json }}; |
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
| <!DOCTYPE html> | |
| <html lang="{{ locale }}" dir="{{ direction }}" class="{{ checkout_html_classes }}"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, height=device-height, minimum-scale=1.0, user-scalable=0"> | |
| <meta name="referrer" content="origin"> | |
| <title>{{ page_title }}</title> |
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
| try{ | |
| if(simplyInsurance && typeof simplyInsurance !== "undefined" ) | |
| simplyInsurance.loadApp(); | |
| }catch(e){ | |
| console.log(e); | |
| } |
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
| var VID = 0; | |
| var addData = { | |
| 'id':VID, | |
| 'quantity':1 | |
| }; | |
| fetch('/cart/add.js', { | |
| body: JSON.stringify(addData), | |
| credentials: 'same-origin', | |
| headers: { |
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
| https://<>.myshopify.com/collections/all?sort_by=price-descending | |
| *Available sorting* | |
| manual | |
| price-ascending | |
| price-descending | |
| title-ascending | |
| title-descending | |
| created-ascending | |
| created-descending |
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.compare_at_price_max > product.price %}You save {{ product.compare_at_price_max | minus: product.price | times: 100.0 | divided_by: product.compare_at_price_max | money_without_currency | times: 100 | remove: '.0'}}%{% 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
| qty_discount_mapping = { | |
| 40 => 20, | |
| 30 => 15, | |
| 20 => 10, | |
| 10 => 5, | |
| } | |
| percentoff = 1; | |
| Input.cart.line_items.each do |line_item| |
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
| String.prototype.imgURL = function(size) { | |
| // remove any current image size then add the new image size | |
| return this | |
| .replace(/_(pico|icon|thumb|small|compact|medium|large|grande|original|1024x1024|2048x2048|master)+\./g, '.') | |
| .replace(/\.jpg|\.png|\.gif|\.jpeg/g, function(match) { | |
| return '_'+size+match; | |
| }) | |
| ; | |
| }; |
NewerOlder