$product = {"id":7985984864355,"title":"iPhone 12 mini SolidSuit MITSUME My Perfect Meal","handle":"iphone-12-mini-solidsuit-classic-mit30","description":null,"published_at":"2026-03-26T11:36:32+08:00","created_at":"2026-03-26T09:42:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-mitsume","device-iPhone 12 Mini","merge","reseller-mitsume"],"price":83000,"price_min":83000,"price_max":83000,"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":44079232352355,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-MIT30","requires_shipping":true,"taxable":true,"featured_image":{"id":36357891129443,"product_id":7985984864355,"position":13,"created_at":"2026-07-23T11:58:39+08:00","updated_at":"2026-07-23T11:58:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e38539ffedd65853e4a0980b4fb9fb60384ea8_410d853b-60b1-446f-91d9-abd56b3d2915.webp?v=1784779121","variant_ids":[44079232352355]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME My Perfect Meal - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-MIT30","featured_media":{"alt":null,"id":27861674950755,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e38539ffedd65853e4a0980b4fb9fb60384ea8_410d853b-60b1-446f-91d9-abd56b3d2915.webp?v=1784779121"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44079233368163,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-MIT30","requires_shipping":true,"taxable":true,"featured_image":{"id":36357890670691,"product_id":7985984864355,"position":11,"created_at":"2026-07-23T11:58:38+08:00","updated_at":"2026-07-23T11:58:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a10afc7bb5c4083f909ba111ccad57388d3827_e1f2b28a-04ac-4b17-9856-e61ea333fbec.webp?v=1784779120","variant_ids":[44079233368163]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME My Perfect Meal - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-MIT30","featured_media":{"alt":null,"id":27861674492003,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a10afc7bb5c4083f909ba111ccad57388d3827_e1f2b28a-04ac-4b17-9856-e61ea333fbec.webp?v=1784779120"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44079233663075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-MIT30","requires_shipping":true,"taxable":true,"featured_image":{"id":36357891358819,"product_id":7985984864355,"position":14,"created_at":"2026-07-23T11:58:40+08:00","updated_at":"2026-07-23T11:58:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63990a1de1891810092b61d0561f29ac3caa159e_ccfad61f-6685-4bb8-9e7b-e55f40d7f628.webp?v=1784779122","variant_ids":[44079233663075]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME My Perfect Meal - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-MIT30","featured_media":{"alt":null,"id":27861675180131,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63990a1de1891810092b61d0561f29ac3caa159e_ccfad61f-6685-4bb8-9e7b-e55f40d7f628.webp?v=1784779122"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a10afc7bb5c4083f909ba111ccad57388d3827.webp?v=1774489355","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452b0170259f96ff07777dbdc41316b9e9c0714f.webp?v=1774489356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63990a1de1891810092b61d0561f29ac3caa159e.webp?v=1774489356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c377de2f84fb7ac53f07491123b23439c55df216.webp?v=1774489357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e38539ffedd65853e4a0980b4fb9fb60384ea8.webp?v=1774489358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8619eed1acee882a724510b3ab120ed1c82c938.webp?v=1774489358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/124e6dc78d7a85565f877636ccfc1fb96315d299.webp?v=1774489359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96ec3706f88c08fcc46972dc911f53b7dd08e153.webp?v=1774489359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8619eed1acee882a724510b3ab120ed1c82c938_e9230c49-dbf9-4a0b-beff-0258a068f8cf.webp?v=1784779119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96ec3706f88c08fcc46972dc911f53b7dd08e153_16405379-cdcf-451b-8bf5-9035fe88026c.webp?v=1784779119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a10afc7bb5c4083f909ba111ccad57388d3827_e1f2b28a-04ac-4b17-9856-e61ea333fbec.webp?v=1784779120","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452b0170259f96ff07777dbdc41316b9e9c0714f_671bb387-8d38-4365-a68b-a5621cbda362.webp?v=1784779120","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e38539ffedd65853e4a0980b4fb9fb60384ea8_410d853b-60b1-446f-91d9-abd56b3d2915.webp?v=1784779121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63990a1de1891810092b61d0561f29ac3caa159e_ccfad61f-6685-4bb8-9e7b-e55f40d7f628.webp?v=1784779122"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a10afc7bb5c4083f909ba111ccad57388d3827.webp?v=1774489355","options":["color"],"media":[{"alt":null,"id":27076991647843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a10afc7bb5c4083f909ba111ccad57388d3827.webp?v=1774489355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a10afc7bb5c4083f909ba111ccad57388d3827.webp?v=1774489355","width":2000},{"alt":null,"id":27076991811683,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452b0170259f96ff07777dbdc41316b9e9c0714f.webp?v=1774489356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452b0170259f96ff07777dbdc41316b9e9c0714f.webp?v=1774489356","width":2000},{"alt":null,"id":27076992237667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63990a1de1891810092b61d0561f29ac3caa159e.webp?v=1774489356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63990a1de1891810092b61d0561f29ac3caa159e.webp?v=1774489356","width":2000},{"alt":null,"id":27076992368739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c377de2f84fb7ac53f07491123b23439c55df216.webp?v=1774489357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c377de2f84fb7ac53f07491123b23439c55df216.webp?v=1774489357","width":2000},{"alt":null,"id":27076992598115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e38539ffedd65853e4a0980b4fb9fb60384ea8.webp?v=1774489358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e38539ffedd65853e4a0980b4fb9fb60384ea8.webp?v=1774489358","width":2000},{"alt":null,"id":27076992794723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8619eed1acee882a724510b3ab120ed1c82c938.webp?v=1774489358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8619eed1acee882a724510b3ab120ed1c82c938.webp?v=1774489358","width":2000},{"alt":null,"id":27076992991331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/124e6dc78d7a85565f877636ccfc1fb96315d299.webp?v=1774489359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/124e6dc78d7a85565f877636ccfc1fb96315d299.webp?v=1774489359","width":2000},{"alt":null,"id":27076993155171,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96ec3706f88c08fcc46972dc911f53b7dd08e153.webp?v=1774489359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96ec3706f88c08fcc46972dc911f53b7dd08e153.webp?v=1774489359","width":2000},{"alt":null,"id":27861673902179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8619eed1acee882a724510b3ab120ed1c82c938_e9230c49-dbf9-4a0b-beff-0258a068f8cf.webp?v=1784779119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8619eed1acee882a724510b3ab120ed1c82c938_e9230c49-dbf9-4a0b-beff-0258a068f8cf.webp?v=1784779119","width":2000},{"alt":null,"id":27861674295395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96ec3706f88c08fcc46972dc911f53b7dd08e153_16405379-cdcf-451b-8bf5-9035fe88026c.webp?v=1784779119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96ec3706f88c08fcc46972dc911f53b7dd08e153_16405379-cdcf-451b-8bf5-9035fe88026c.webp?v=1784779119","width":2000},{"alt":null,"id":27861674492003,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a10afc7bb5c4083f909ba111ccad57388d3827_e1f2b28a-04ac-4b17-9856-e61ea333fbec.webp?v=1784779120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a10afc7bb5c4083f909ba111ccad57388d3827_e1f2b28a-04ac-4b17-9856-e61ea333fbec.webp?v=1784779120","width":2000},{"alt":null,"id":27861674688611,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452b0170259f96ff07777dbdc41316b9e9c0714f_671bb387-8d38-4365-a68b-a5621cbda362.webp?v=1784779120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452b0170259f96ff07777dbdc41316b9e9c0714f_671bb387-8d38-4365-a68b-a5621cbda362.webp?v=1784779120","width":2000},{"alt":null,"id":27861674950755,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e38539ffedd65853e4a0980b4fb9fb60384ea8_410d853b-60b1-446f-91d9-abd56b3d2915.webp?v=1784779121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e38539ffedd65853e4a0980b4fb9fb60384ea8_410d853b-60b1-446f-91d9-abd56b3d2915.webp?v=1784779121","width":2000},{"alt":null,"id":27861675180131,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63990a1de1891810092b61d0561f29ac3caa159e_ccfad61f-6685-4bb8-9e7b-e55f40d7f628.webp?v=1784779122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63990a1de1891810092b61d0561f29ac3caa159e_ccfad61f-6685-4bb8-9e7b-e55f40d7f628.webp?v=1784779122","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44079232352355,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-MIT30","requires_shipping":true,"taxable":true,"featured_image":{"id":36357891129443,"product_id":7985984864355,"position":13,"created_at":"2026-07-23T11:58:39+08:00","updated_at":"2026-07-23T11:58:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e38539ffedd65853e4a0980b4fb9fb60384ea8_410d853b-60b1-446f-91d9-abd56b3d2915.webp?v=1784779121","variant_ids":[44079232352355]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME My Perfect Meal - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-MIT30","featured_media":{"alt":null,"id":27861674950755,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e38539ffedd65853e4a0980b4fb9fb60384ea8_410d853b-60b1-446f-91d9-abd56b3d2915.webp?v=1784779121"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44079233368163,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-MIT30","requires_shipping":true,"taxable":true,"featured_image":{"id":36357890670691,"product_id":7985984864355,"position":11,"created_at":"2026-07-23T11:58:38+08:00","updated_at":"2026-07-23T11:58:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a10afc7bb5c4083f909ba111ccad57388d3827_e1f2b28a-04ac-4b17-9856-e61ea333fbec.webp?v=1784779120","variant_ids":[44079233368163]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME My Perfect Meal - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-MIT30","featured_media":{"alt":null,"id":27861674492003,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a10afc7bb5c4083f909ba111ccad57388d3827_e1f2b28a-04ac-4b17-9856-e61ea333fbec.webp?v=1784779120"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44079233663075,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-MIT30","requires_shipping":true,"taxable":true,"featured_image":{"id":36357891358819,"product_id":7985984864355,"position":14,"created_at":"2026-07-23T11:58:40+08:00","updated_at":"2026-07-23T11:58:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63990a1de1891810092b61d0561f29ac3caa159e_ccfad61f-6685-4bb8-9e7b-e55f40d7f628.webp?v=1784779122","variant_ids":[44079233663075]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME My Perfect Meal - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-MIT30","featured_media":{"alt":null,"id":27861675180131,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63990a1de1891810092b61d0561f29ac3caa159e_ccfad61f-6685-4bb8-9e7b-e55f40d7f628.webp?v=1784779122"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44079232352355,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-MIT30","requires_shipping":true,"taxable":true,"featured_image":{"id":36357891129443,"product_id":7985984864355,"position":13,"created_at":"2026-07-23T11:58:39+08:00","updated_at":"2026-07-23T11:58:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e38539ffedd65853e4a0980b4fb9fb60384ea8_410d853b-60b1-446f-91d9-abd56b3d2915.webp?v=1784779121","variant_ids":[44079232352355]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME My Perfect Meal - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-MIT30","featured_media":{"alt":null,"id":27861674950755,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45e38539ffedd65853e4a0980b4fb9fb60384ea8_410d853b-60b1-446f-91d9-abd56b3d2915.webp?v=1784779121"}},"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: "停產" }