Shopify.queue = []; $product = {"id":1432687378531,"title":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XR系列","handle":"iphone-xr-solidsuit","description":"","published_at":"2018-10-07T00:16:19+08:00","created_at":"2018-09-26T00:31:19+08:00","vendor":"愛進化科技股份有限公司","type":"SolidSuit","tags":["20%","25%","30%","35%","40%","45%","45degree","50%","brand-Apple","device-iphone XR","dropdownCollection-SolidSuit","dropdownDevice-Apple iPhone XR","iPhone XR","member","quickbuy","reseller","reseller-asus","Top50"],"price":73000,"price_min":73000,"price_max":98000,"available":true,"price_varies":true,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":12609877737571,"title":"橡木紋","option1":"橡木紋","option2":null,"option3":null,"sku":"SSA0108558","requires_shipping":true,"taxable":true,"featured_image":{"id":3963501772899,"product_id":1432687378531,"position":1,"created_at":"2018-10-05T19:01:30+08:00","updated_at":"2021-09-02T17:20:45+08:00","alt":null,"width":3000,"height":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0915f6bfd7dc2776838b879a81c7024a.png?v=1630574445","variant_ids":[12609877737571]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XR系列 - 橡木紋","public_title":"橡木紋","options":["橡木紋"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-1327,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967286358115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0915f6bfd7dc2776838b879a81c7024a.png?v=1630574445"}}},{"id":12609877835875,"title":"皮革","option1":"皮革","option2":null,"option3":null,"sku":"SSA0108561","requires_shipping":true,"taxable":true,"featured_image":{"id":3963496956003,"product_id":1432687378531,"position":3,"created_at":"2018-10-05T19:00:46+08:00","updated_at":"2021-09-02T17:20:45+08:00","alt":null,"width":3000,"height":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/ae83dcb46d6694bcf808a5306bfdf17b.png?v=1630574445","variant_ids":[12609877835875]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XR系列 - 皮革","public_title":"皮革","options":["皮革"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-342,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967285964899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/ae83dcb46d6694bcf808a5306bfdf17b.png?v=1630574445"}}},{"id":12609877868643,"title":"碳纖維","option1":"碳纖維","option2":null,"option3":null,"sku":"SSA0108549","requires_shipping":true,"taxable":true,"featured_image":{"id":3963499446371,"product_id":1432687378531,"position":4,"created_at":"2018-10-05T19:01:18+08:00","updated_at":"2021-09-02T17:20:45+08:00","alt":null,"width":3000,"height":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/c2999f5d160174dd9acf48e1983dcc2c.png?v=1630574445","variant_ids":[12609877868643]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XR系列 - 碳纖維","public_title":"碳纖維","options":["碳纖維"],"price":83000,"weight":100,"compare_at_price":null,"inventory_quantity":-3341,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967286292579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/c2999f5d160174dd9acf48e1983dcc2c.png?v=1630574445"}}},{"id":13020976939107,"title":"經典黑","option1":"經典黑","option2":null,"option3":null,"sku":"SSA0108552","requires_shipping":true,"taxable":true,"featured_image":{"id":3963498463331,"product_id":1432687378531,"position":5,"created_at":"2018-10-05T19:01:14+08:00","updated_at":"2021-09-02T17:20:45+08:00","alt":null,"width":3000,"height":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f9e9aa326ac9cd59b78beea4554f4406.png?v=1630574445","variant_ids":[13020976939107]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XR系列 - 經典黑","public_title":"經典黑","options":["經典黑"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-4127,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967286227043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f9e9aa326ac9cd59b78beea4554f4406.png?v=1630574445"}}},{"id":12609877934179,"title":"櫻花粉","option1":"櫻花粉","option2":null,"option3":null,"sku":"SSA0108557","requires_shipping":true,"taxable":true,"featured_image":{"id":28357474975843,"product_id":1432687378531,"position":6,"created_at":"2021-06-29T10:08:05+08:00","updated_at":"2021-09-02T17:20:45+08:00","alt":null,"width":3000,"height":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/XR_Black_-SS-Combined-Blush_Pink_3fd76bb2-73fc-499e-967a-3f6e72c54777.png?v=1630574445","variant_ids":[12609877934179]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XR系列 - 櫻花粉","public_title":"櫻花粉","options":["櫻花粉"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-1471,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":20664829050979,"position":6,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/XR_Black_-SS-Combined-Blush_Pink_3fd76bb2-73fc-499e-967a-3f6e72c54777.png?v=1630574445"}}},{"id":12609877999715,"title":"經典白","option1":"經典白","option2":null,"option3":null,"sku":"SSA0108553","requires_shipping":true,"taxable":true,"featured_image":{"id":3963496792163,"product_id":1432687378531,"position":7,"created_at":"2018-10-05T19:00:42+08:00","updated_at":"2021-09-02T17:20:45+08:00","alt":null,"width":3000,"height":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8dd0d084c04632a2bcfa9efe3e12b449.png?v=1630574445","variant_ids":[12609877999715]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XR系列 - 經典白","public_title":"經典白","options":["經典白"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-844,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":967285932131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8dd0d084c04632a2bcfa9efe3e12b449.png?v=1630574445"}}},{"id":12609878065251,"title":"髮絲紋","option1":"髮絲紋","option2":null,"option3":null,"sku":"SSA0108568","requires_shipping":true,"taxable":true,"featured_image":{"id":28740797071459,"product_id":1432687378531,"position":11,"created_at":"2021-12-29T17:42:23+08:00","updated_at":"2021-12-29T17:42:23+08:00","alt":null,"width":3000,"height":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/57122bb3b84d8540b3f81d91facc5597_0ed6a5c9-d2e4-4fcd-8b63-1c720fa03583.png?v=1640770943","variant_ids":[12609878065251]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XR系列 - 髮絲紋","public_title":"髮絲紋","options":["髮絲紋"],"price":98000,"weight":100,"compare_at_price":null,"inventory_quantity":-739,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":21066507714659,"position":11,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/57122bb3b84d8540b3f81d91facc5597_0ed6a5c9-d2e4-4fcd-8b63-1c720fa03583.png?v=1640770943"}}},{"id":39537944166499,"title":"海軍藍","option1":"海軍藍","option2":null,"option3":null,"sku":"SSA01085J5","requires_shipping":true,"taxable":true,"featured_image":{"id":28519084261475,"product_id":1432687378531,"position":9,"created_at":"2021-09-06T11:35:25+08:00","updated_at":"2021-10-07T15:33:27+08:00","alt":null,"width":1999,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01085J5.png?v=1633592007","variant_ids":[39537944166499]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XR系列 - 海軍藍","public_title":"海軍藍","options":["海軍藍"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-434,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":20831977734243,"position":9,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01085J5.png?v=1633592007"}}},{"id":39533871169635,"title":"暗夜綠","option1":"暗夜綠","option2":null,"option3":null,"sku":"SSA01085K8","requires_shipping":true,"taxable":true,"featured_image":{"id":28509377462371,"product_id":1432687378531,"position":10,"created_at":"2021-09-02T17:20:45+08:00","updated_at":"2021-10-07T15:33:27+08:00","alt":null,"width":1999,"height":1500,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-_-XR_Back45_SSA_Dark_Teal-Dark_Teal_-Button_6de1edc2-c761-4078-ac1b-7d2b8a728cb7.png?v=1633592007","variant_ids":[39533871169635]},"available":true,"name":"犀牛盾SolidSuit防摔背蓋手機殼 - iPhone XR系列 - 暗夜綠","public_title":"暗夜綠","options":["暗夜綠"],"price":73000,"weight":100,"compare_at_price":null,"inventory_quantity":-240,"inventory_management":null,"inventory_policy":"deny","barcode":null,"featured_media":{"alt":null,"id":20821808742499,"position":10,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-_-XR_Back45_SSA_Dark_Teal-Dark_Teal_-Button_6de1edc2-c761-4078-ac1b-7d2b8a728cb7.png?v=1633592007"}}}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0915f6bfd7dc2776838b879a81c7024a.png?v=1630574445","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/ea324e814f693ad24af4bcd34790ff7b.png?v=1630574445","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/ae83dcb46d6694bcf808a5306bfdf17b.png?v=1630574445","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/c2999f5d160174dd9acf48e1983dcc2c.png?v=1630574445","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f9e9aa326ac9cd59b78beea4554f4406.png?v=1630574445","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/XR_Black_-SS-Combined-Blush_Pink_3fd76bb2-73fc-499e-967a-3f6e72c54777.png?v=1630574445","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8dd0d084c04632a2bcfa9efe3e12b449.png?v=1630574445","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/7d6012d708d077bc7968dea25cad5a29_2938201f-664f-45a8-9553-f11e4a632c37.png?v=1630574445","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01085J5.png?v=1633592007","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-_-XR_Back45_SSA_Dark_Teal-Dark_Teal_-Button_6de1edc2-c761-4078-ac1b-7d2b8a728cb7.png?v=1633592007","\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/57122bb3b84d8540b3f81d91facc5597_0ed6a5c9-d2e4-4fcd-8b63-1c720fa03583.png?v=1640770943"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0915f6bfd7dc2776838b879a81c7024a.png?v=1630574445","options":["Color"],"media":[{"alt":null,"id":967286358115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0915f6bfd7dc2776838b879a81c7024a.png?v=1630574445"},"aspect_ratio":1.0,"height":3000,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/0915f6bfd7dc2776838b879a81c7024a.png?v=1630574445","width":3000},{"alt":null,"id":967285997667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/ea324e814f693ad24af4bcd34790ff7b.png?v=1630574445"},"aspect_ratio":1.0,"height":3000,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/ea324e814f693ad24af4bcd34790ff7b.png?v=1630574445","width":3000},{"alt":null,"id":967285964899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/ae83dcb46d6694bcf808a5306bfdf17b.png?v=1630574445"},"aspect_ratio":1.0,"height":3000,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/ae83dcb46d6694bcf808a5306bfdf17b.png?v=1630574445","width":3000},{"alt":null,"id":967286292579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/c2999f5d160174dd9acf48e1983dcc2c.png?v=1630574445"},"aspect_ratio":1.0,"height":3000,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/c2999f5d160174dd9acf48e1983dcc2c.png?v=1630574445","width":3000},{"alt":null,"id":967286227043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f9e9aa326ac9cd59b78beea4554f4406.png?v=1630574445"},"aspect_ratio":1.0,"height":3000,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/f9e9aa326ac9cd59b78beea4554f4406.png?v=1630574445","width":3000},{"alt":null,"id":20664829050979,"position":6,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/XR_Black_-SS-Combined-Blush_Pink_3fd76bb2-73fc-499e-967a-3f6e72c54777.png?v=1630574445"},"aspect_ratio":1.0,"height":3000,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/XR_Black_-SS-Combined-Blush_Pink_3fd76bb2-73fc-499e-967a-3f6e72c54777.png?v=1630574445","width":3000},{"alt":null,"id":967285932131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8dd0d084c04632a2bcfa9efe3e12b449.png?v=1630574445"},"aspect_ratio":1.0,"height":3000,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/8dd0d084c04632a2bcfa9efe3e12b449.png?v=1630574445","width":3000},{"alt":null,"id":20664829083747,"position":8,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/7d6012d708d077bc7968dea25cad5a29_2938201f-664f-45a8-9553-f11e4a632c37.png?v=1630574445"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/7d6012d708d077bc7968dea25cad5a29_2938201f-664f-45a8-9553-f11e4a632c37.png?v=1630574445","width":1999},{"alt":null,"id":20831977734243,"position":9,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01085J5.png?v=1633592007"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/new-bumper-back-45degree-SSA01085J5.png?v=1633592007","width":1999},{"alt":null,"id":20821808742499,"position":10,"preview_image":{"aspect_ratio":1.333,"height":1500,"width":1999,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-_-XR_Back45_SSA_Dark_Teal-Dark_Teal_-Button_6de1edc2-c761-4078-ac1b-7d2b8a728cb7.png?v=1633592007"},"aspect_ratio":1.333,"height":1500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/SSA-_-XR_Back45_SSA_Dark_Teal-Dark_Teal_-Button_6de1edc2-c761-4078-ac1b-7d2b8a728cb7.png?v=1633592007","width":1999},{"alt":null,"id":21066507714659,"position":11,"preview_image":{"aspect_ratio":1.0,"height":3000,"width":3000,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/57122bb3b84d8540b3f81d91facc5597_0ed6a5c9-d2e4-4fcd-8b63-1c720fa03583.png?v=1640770943"},"aspect_ratio":1.0,"height":3000,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/1082\/7110\/products\/57122bb3b84d8540b3f81d91facc5597_0ed6a5c9-d2e4-4fcd-8b63-1c720fa03583.png?v=1640770943","width":3000}],"content":""}; $bumper = null; if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages([productImg, bumperColors[currentVariant]],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages([bumperColors[currentVariant], productImg],{ crossOrigin: 'anonymous' }) .then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } }); } $(function() { // switch device $('#select-device').on('change', function() { window.location.href = $(this).val(); }); // listen quantity changed $('input[name=quantity]').on('change', function() { var quantity = $(this).val(); }); // checkbox action $("input:checkbox").on('click', function() { // in the handler, 'this' refers to the box clicked on var $box = $(this); if ($box.is(":checked")) { // the name of the box is retrieved using the .attr() method // as it is assumed and expected to be immutable var group = "input:checkbox[name='" + $box.attr("name") + "']"; // the checked state of the group/box on the other hand will change // and the current value is retrieved using .prop() method $(group).prop("checked", false); $box.prop("checked", true); } else { $box.prop("checked", false); } }); // add to cart $("#AddToCart-product-template").click(function(e){ var elem; var addition = {}; Shopify.queue = []; e.preventDefault(); // elem = $(this); // $(elem).prop("disabled", true); var original_variant_id = $('.product-form').serialize().split('&')[0].split('=')[1]; var original_variant_quantity = $('.product-form').serialize().split('&')[1].split('=')[1]; addition.id = original_variant_id; addition.quantity = original_variant_quantity; Shopify.queue.push(addition); $.each($("input[name^='recommend[']:checked"), function(i, v) { var addition = {}; var name = $(this).attr('name'); var quantity = $('select[name="' + name + '"]').val(); addition.id = $(this).val(); addition.quantity = quantity; Shopify.queue.push(addition); }); Shopify.moveAlong(); }); Shopify.moveAlong = function() { // If we still have requests in the queue, let's process the next one. // console.log(Shopify.queue); if (Shopify.queue.length) { var request = Shopify.queue.shift(); Shopify.addItem(request.id, request.quantity, Shopify.moveAlong); } // If the queue is empty, take care of the main item else { $.getJSON('/cart.js', function(cart) { $('#CartCount').removeClass('hide'); $('#item-count').text(cart.item_count); toastr.options = { "closeButton": false, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-bottom-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" }; toastr["success"]("成功加入購物車"); }); } }; });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }