$product = {"id":7407952822371,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點","handle":"iphone-14-pro-mod-nx-printable-eo04","description":null,"published_at":"2024-06-11T16:27:28+08:00","created_at":"2024-05-03T11:22:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 14 Pro","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-weiweiboy","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":41880970395747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470785593443,"product_id":7407952822371,"position":2,"created_at":"2024-05-03T11:22:36+08:00","updated_at":"2024-05-03T11:22:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a3d16343eb3850bda3fb9fc21378396d928499_14049fec-eb1d-4dc6-9b1a-32b32a4f5f26.webp?v=1714706556","variant_ids":[41880970395747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EO04","featured_media":{"alt":null,"id":23875689906275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a3d16343eb3850bda3fb9fc21378396d928499_14049fec-eb1d-4dc6-9b1a-32b32a4f5f26.webp?v=1714706556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880970592355,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470787199075,"product_id":7407952822371,"position":5,"created_at":"2024-05-03T11:22:43+08:00","updated_at":"2024-05-03T11:22:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23a441cc3925e4a7a50c67da14a8f9e99d83d51f_f0031be9-675e-4a98-a92d-be0a0f7ac6c2.webp?v=1714706563","variant_ids":[41880970592355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-EO04","featured_media":{"alt":null,"id":23875691413603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23a441cc3925e4a7a50c67da14a8f9e99d83d51f_f0031be9-675e-4a98-a92d-be0a0f7ac6c2.webp?v=1714706563"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880971149411,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470788542563,"product_id":7407952822371,"position":8,"created_at":"2024-05-03T11:22:51+08:00","updated_at":"2024-05-03T11:22:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2bdd03746d07efd68773f5e98c9c996cb2c917_f41ab875-a240-4b95-95c6-2cba89e577fc.webp?v=1714706571","variant_ids":[41880971149411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-EO04","featured_media":{"alt":null,"id":23875692757091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2bdd03746d07efd68773f5e98c9c996cb2c917_f41ab875-a240-4b95-95c6-2cba89e577fc.webp?v=1714706571"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770ad281f2f7d6fc65d045a36ffe50a83b1c8e42_d7610f06-1316-4abf-a3b4-dcf03beb3268.webp?v=1714706554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a3d16343eb3850bda3fb9fc21378396d928499_14049fec-eb1d-4dc6-9b1a-32b32a4f5f26.webp?v=1714706556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870bff9f3f626df376e7efddad9d37a7ef7fe7bd_e12a6fb1-a4f7-402c-9fa7-f9294bb77a87.webp?v=1714706559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a539847d7278737bee381006f651ae9d42e77318_f262d164-2d07-47e3-a842-14feb7cf42fe.webp?v=1714706561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23a441cc3925e4a7a50c67da14a8f9e99d83d51f_f0031be9-675e-4a98-a92d-be0a0f7ac6c2.webp?v=1714706563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9ee92ec23f18b164a867f6b950fc8849102f8a5_4ad2e0e0-5c52-4a54-afa4-dc64ae192bb1.webp?v=1714706566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e63855b13b3005204a7bbb5869fd05a517e86cf_0b9e8976-75de-4715-b29b-93ed118099fa.webp?v=1714706568","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2bdd03746d07efd68773f5e98c9c996cb2c917_f41ab875-a240-4b95-95c6-2cba89e577fc.webp?v=1714706571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f7b4c3ed5ce6f7847e648fcb4d44dc6c7f047d4_d1a450e4-986e-4b3c-a20e-33b7f24c12bb.webp?v=1714706573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feee3413015e47018d8d817cf3e3928caf6beb1b_f5397ff7-a5df-4d7a-a7ca-eac9d4479736.webp?v=1714706576"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770ad281f2f7d6fc65d045a36ffe50a83b1c8e42_d7610f06-1316-4abf-a3b4-dcf03beb3268.webp?v=1714706554","options":["color"],"media":[{"alt":null,"id":23875689316451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770ad281f2f7d6fc65d045a36ffe50a83b1c8e42_d7610f06-1316-4abf-a3b4-dcf03beb3268.webp?v=1714706554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770ad281f2f7d6fc65d045a36ffe50a83b1c8e42_d7610f06-1316-4abf-a3b4-dcf03beb3268.webp?v=1714706554","width":2000},{"alt":null,"id":23875689906275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a3d16343eb3850bda3fb9fc21378396d928499_14049fec-eb1d-4dc6-9b1a-32b32a4f5f26.webp?v=1714706556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a3d16343eb3850bda3fb9fc21378396d928499_14049fec-eb1d-4dc6-9b1a-32b32a4f5f26.webp?v=1714706556","width":2000},{"alt":null,"id":23875690430563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870bff9f3f626df376e7efddad9d37a7ef7fe7bd_e12a6fb1-a4f7-402c-9fa7-f9294bb77a87.webp?v=1714706559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/870bff9f3f626df376e7efddad9d37a7ef7fe7bd_e12a6fb1-a4f7-402c-9fa7-f9294bb77a87.webp?v=1714706559","width":2000},{"alt":null,"id":23875691020387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a539847d7278737bee381006f651ae9d42e77318_f262d164-2d07-47e3-a842-14feb7cf42fe.webp?v=1714706561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a539847d7278737bee381006f651ae9d42e77318_f262d164-2d07-47e3-a842-14feb7cf42fe.webp?v=1714706561","width":2000},{"alt":null,"id":23875691413603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23a441cc3925e4a7a50c67da14a8f9e99d83d51f_f0031be9-675e-4a98-a92d-be0a0f7ac6c2.webp?v=1714706563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23a441cc3925e4a7a50c67da14a8f9e99d83d51f_f0031be9-675e-4a98-a92d-be0a0f7ac6c2.webp?v=1714706563","width":2000},{"alt":null,"id":23875691806819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9ee92ec23f18b164a867f6b950fc8849102f8a5_4ad2e0e0-5c52-4a54-afa4-dc64ae192bb1.webp?v=1714706566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9ee92ec23f18b164a867f6b950fc8849102f8a5_4ad2e0e0-5c52-4a54-afa4-dc64ae192bb1.webp?v=1714706566","width":2000},{"alt":null,"id":23875692331107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e63855b13b3005204a7bbb5869fd05a517e86cf_0b9e8976-75de-4715-b29b-93ed118099fa.webp?v=1714706568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e63855b13b3005204a7bbb5869fd05a517e86cf_0b9e8976-75de-4715-b29b-93ed118099fa.webp?v=1714706568","width":2000},{"alt":null,"id":23875692757091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2bdd03746d07efd68773f5e98c9c996cb2c917_f41ab875-a240-4b95-95c6-2cba89e577fc.webp?v=1714706571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2bdd03746d07efd68773f5e98c9c996cb2c917_f41ab875-a240-4b95-95c6-2cba89e577fc.webp?v=1714706571","width":2000},{"alt":null,"id":23875693248611,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f7b4c3ed5ce6f7847e648fcb4d44dc6c7f047d4_d1a450e4-986e-4b3c-a20e-33b7f24c12bb.webp?v=1714706573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f7b4c3ed5ce6f7847e648fcb4d44dc6c7f047d4_d1a450e4-986e-4b3c-a20e-33b7f24c12bb.webp?v=1714706573","width":2000},{"alt":null,"id":23875693609059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feee3413015e47018d8d817cf3e3928caf6beb1b_f5397ff7-a5df-4d7a-a7ca-eac9d4479736.webp?v=1714706576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feee3413015e47018d8d817cf3e3928caf6beb1b_f5397ff7-a5df-4d7a-a7ca-eac9d4479736.webp?v=1714706576","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880970395747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470785593443,"product_id":7407952822371,"position":2,"created_at":"2024-05-03T11:22:36+08:00","updated_at":"2024-05-03T11:22:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a3d16343eb3850bda3fb9fc21378396d928499_14049fec-eb1d-4dc6-9b1a-32b32a4f5f26.webp?v=1714706556","variant_ids":[41880970395747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EO04","featured_media":{"alt":null,"id":23875689906275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a3d16343eb3850bda3fb9fc21378396d928499_14049fec-eb1d-4dc6-9b1a-32b32a4f5f26.webp?v=1714706556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880970592355,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470787199075,"product_id":7407952822371,"position":5,"created_at":"2024-05-03T11:22:43+08:00","updated_at":"2024-05-03T11:22:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23a441cc3925e4a7a50c67da14a8f9e99d83d51f_f0031be9-675e-4a98-a92d-be0a0f7ac6c2.webp?v=1714706563","variant_ids":[41880970592355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-EO04","featured_media":{"alt":null,"id":23875691413603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23a441cc3925e4a7a50c67da14a8f9e99d83d51f_f0031be9-675e-4a98-a92d-be0a0f7ac6c2.webp?v=1714706563"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880971149411,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470788542563,"product_id":7407952822371,"position":8,"created_at":"2024-05-03T11:22:51+08:00","updated_at":"2024-05-03T11:22:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2bdd03746d07efd68773f5e98c9c996cb2c917_f41ab875-a240-4b95-95c6-2cba89e577fc.webp?v=1714706571","variant_ids":[41880971149411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-EO04","featured_media":{"alt":null,"id":23875692757091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2bdd03746d07efd68773f5e98c9c996cb2c917_f41ab875-a240-4b95-95c6-2cba89e577fc.webp?v=1714706571"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880970395747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470785593443,"product_id":7407952822371,"position":2,"created_at":"2024-05-03T11:22:36+08:00","updated_at":"2024-05-03T11:22:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a3d16343eb3850bda3fb9fc21378396d928499_14049fec-eb1d-4dc6-9b1a-32b32a4f5f26.webp?v=1714706556","variant_ids":[41880970395747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王上甜點 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EO04","featured_media":{"alt":null,"id":23875689906275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a3d16343eb3850bda3fb9fc21378396d928499_14049fec-eb1d-4dc6-9b1a-32b32a4f5f26.webp?v=1714706556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (mergedImg) { $('.merged-img').attr('src', mergedImg); }); }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// 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: "停產" }