$product = {"id":7769596657763,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵","handle":"iphone-13-mini-mod-nx-magsafe-printable-xf49","description":null,"published_at":"2025-07-16T17:20:00+08:00","created_at":"2025-04-15T18:15:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 13 Mini","merge","reseller-ilovedoodle"],"price":110000,"price_min":110000,"price_max":110000,"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":43303099367523,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197833810019,"product_id":7769596657763,"position":6,"created_at":"2025-07-16T15:23:16+08:00","updated_at":"2025-07-16T15:23:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbe3df8434c0662ad73a58529d734159c4674f1_7cec1893-aad9-4ea6-aef9-c8843faa89d8.webp?v=1752650598","variant_ids":[43303099367523]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-XF49","featured_media":{"alt":null,"id":25830126944355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbe3df8434c0662ad73a58529d734159c4674f1_7cec1893-aad9-4ea6-aef9-c8843faa89d8.webp?v=1752650598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303103922275,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197834563683,"product_id":7769596657763,"position":7,"created_at":"2025-07-16T15:23:16+08:00","updated_at":"2025-07-16T15:23:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0060a96e4375424770851840aefa25d24cc2c377_813d9e45-8f89-4070-9c59-86551fd7b21c.webp?v=1752650598","variant_ids":[43303103922275]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-XF49","featured_media":{"alt":null,"id":25830127140963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0060a96e4375424770851840aefa25d24cc2c377_813d9e45-8f89-4070-9c59-86551fd7b21c.webp?v=1752650598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303104086115,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197834858595,"product_id":7769596657763,"position":8,"created_at":"2025-07-16T15:23:17+08:00","updated_at":"2025-07-16T15:23:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163f3db8d1bb1652ac8fa9c1b2abadd024e9f751_29844ec7-2605-458d-a39f-4082dd9f696e.webp?v=1752650599","variant_ids":[43303104086115]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-XF49","featured_media":{"alt":null,"id":25830127435875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163f3db8d1bb1652ac8fa9c1b2abadd024e9f751_29844ec7-2605-458d-a39f-4082dd9f696e.webp?v=1752650599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c363094acdd764106bb544cf563b239f4336c619.webp?v=1744712123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a21a8e66e369ad1a11e685431df4e937c4e2747_ed660e9d-e3ed-4b43-bf78-3be1777a892b.webp?v=1752650595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e56ef4d87e06279cad24c7b92cee33f9ac2c0db_26c96084-e9cc-4dc4-a4b8-5e6cc6e40772.webp?v=1752650596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e96981e472c7a037678594ace49afca6af9c80_1dc99fa0-9773-4e49-b9c8-88acbb8acf3f.webp?v=1752650596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30f647259d6682e0d6194dcb11502db5e529dc3f_c3007963-e1cc-4573-8143-7cfd4bafc948.webp?v=1752650597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbe3df8434c0662ad73a58529d734159c4674f1_7cec1893-aad9-4ea6-aef9-c8843faa89d8.webp?v=1752650598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0060a96e4375424770851840aefa25d24cc2c377_813d9e45-8f89-4070-9c59-86551fd7b21c.webp?v=1752650598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163f3db8d1bb1652ac8fa9c1b2abadd024e9f751_29844ec7-2605-458d-a39f-4082dd9f696e.webp?v=1752650599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c48decaba5d73e448bd603ef2ba083cf825af4_76efaf3d-7175-4d09-9ddb-0979f8e459d8.webp?v=1752650599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907368a18b0826844aaf780d1e252145b4e6e184_7f047aa8-cd53-4463-af50-1a722f35d9bc.webp?v=1752650600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b8f9f08e73935ac5a8796f960a1ee8a9f70c4b_5b5b1250-41ce-4911-8543-9f5177f7c52f.webp?v=1752650600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69fa468aa55591593899143b9a08e9028ec9cca_6a957d12-8cf6-4065-97aa-ab39bb5ebc60.webp?v=1752650601"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c363094acdd764106bb544cf563b239f4336c619.webp?v=1744712123","options":["color"],"media":[{"alt":null,"id":25495908483171,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c363094acdd764106bb544cf563b239f4336c619.webp?v=1744712123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c363094acdd764106bb544cf563b239f4336c619.webp?v=1744712123","width":2000},{"alt":null,"id":25830125764707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a21a8e66e369ad1a11e685431df4e937c4e2747_ed660e9d-e3ed-4b43-bf78-3be1777a892b.webp?v=1752650595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a21a8e66e369ad1a11e685431df4e937c4e2747_ed660e9d-e3ed-4b43-bf78-3be1777a892b.webp?v=1752650595","width":2000},{"alt":null,"id":25830126157923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e56ef4d87e06279cad24c7b92cee33f9ac2c0db_26c96084-e9cc-4dc4-a4b8-5e6cc6e40772.webp?v=1752650596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e56ef4d87e06279cad24c7b92cee33f9ac2c0db_26c96084-e9cc-4dc4-a4b8-5e6cc6e40772.webp?v=1752650596","width":2000},{"alt":null,"id":25830126452835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e96981e472c7a037678594ace49afca6af9c80_1dc99fa0-9773-4e49-b9c8-88acbb8acf3f.webp?v=1752650596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e96981e472c7a037678594ace49afca6af9c80_1dc99fa0-9773-4e49-b9c8-88acbb8acf3f.webp?v=1752650596","width":2000},{"alt":null,"id":25830126649443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30f647259d6682e0d6194dcb11502db5e529dc3f_c3007963-e1cc-4573-8143-7cfd4bafc948.webp?v=1752650597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30f647259d6682e0d6194dcb11502db5e529dc3f_c3007963-e1cc-4573-8143-7cfd4bafc948.webp?v=1752650597","width":2000},{"alt":null,"id":25830126944355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbe3df8434c0662ad73a58529d734159c4674f1_7cec1893-aad9-4ea6-aef9-c8843faa89d8.webp?v=1752650598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbe3df8434c0662ad73a58529d734159c4674f1_7cec1893-aad9-4ea6-aef9-c8843faa89d8.webp?v=1752650598","width":2000},{"alt":null,"id":25830127140963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0060a96e4375424770851840aefa25d24cc2c377_813d9e45-8f89-4070-9c59-86551fd7b21c.webp?v=1752650598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0060a96e4375424770851840aefa25d24cc2c377_813d9e45-8f89-4070-9c59-86551fd7b21c.webp?v=1752650598","width":2000},{"alt":null,"id":25830127435875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163f3db8d1bb1652ac8fa9c1b2abadd024e9f751_29844ec7-2605-458d-a39f-4082dd9f696e.webp?v=1752650599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163f3db8d1bb1652ac8fa9c1b2abadd024e9f751_29844ec7-2605-458d-a39f-4082dd9f696e.webp?v=1752650599","width":2000},{"alt":null,"id":25830127698019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c48decaba5d73e448bd603ef2ba083cf825af4_76efaf3d-7175-4d09-9ddb-0979f8e459d8.webp?v=1752650599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31c48decaba5d73e448bd603ef2ba083cf825af4_76efaf3d-7175-4d09-9ddb-0979f8e459d8.webp?v=1752650599","width":2000},{"alt":null,"id":25830127861859,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907368a18b0826844aaf780d1e252145b4e6e184_7f047aa8-cd53-4463-af50-1a722f35d9bc.webp?v=1752650600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907368a18b0826844aaf780d1e252145b4e6e184_7f047aa8-cd53-4463-af50-1a722f35d9bc.webp?v=1752650600","width":2000},{"alt":null,"id":25830128386147,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b8f9f08e73935ac5a8796f960a1ee8a9f70c4b_5b5b1250-41ce-4911-8543-9f5177f7c52f.webp?v=1752650600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b8f9f08e73935ac5a8796f960a1ee8a9f70c4b_5b5b1250-41ce-4911-8543-9f5177f7c52f.webp?v=1752650600","width":2000},{"alt":null,"id":25830128713827,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69fa468aa55591593899143b9a08e9028ec9cca_6a957d12-8cf6-4065-97aa-ab39bb5ebc60.webp?v=1752650601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69fa468aa55591593899143b9a08e9028ec9cca_6a957d12-8cf6-4065-97aa-ab39bb5ebc60.webp?v=1752650601","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303099367523,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197833810019,"product_id":7769596657763,"position":6,"created_at":"2025-07-16T15:23:16+08:00","updated_at":"2025-07-16T15:23:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbe3df8434c0662ad73a58529d734159c4674f1_7cec1893-aad9-4ea6-aef9-c8843faa89d8.webp?v=1752650598","variant_ids":[43303099367523]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-XF49","featured_media":{"alt":null,"id":25830126944355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbe3df8434c0662ad73a58529d734159c4674f1_7cec1893-aad9-4ea6-aef9-c8843faa89d8.webp?v=1752650598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303103922275,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197834563683,"product_id":7769596657763,"position":7,"created_at":"2025-07-16T15:23:16+08:00","updated_at":"2025-07-16T15:23:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0060a96e4375424770851840aefa25d24cc2c377_813d9e45-8f89-4070-9c59-86551fd7b21c.webp?v=1752650598","variant_ids":[43303103922275]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-XF49","featured_media":{"alt":null,"id":25830127140963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0060a96e4375424770851840aefa25d24cc2c377_813d9e45-8f89-4070-9c59-86551fd7b21c.webp?v=1752650598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303104086115,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197834858595,"product_id":7769596657763,"position":8,"created_at":"2025-07-16T15:23:17+08:00","updated_at":"2025-07-16T15:23:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163f3db8d1bb1652ac8fa9c1b2abadd024e9f751_29844ec7-2605-458d-a39f-4082dd9f696e.webp?v=1752650599","variant_ids":[43303104086115]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-XF49","featured_media":{"alt":null,"id":25830127435875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163f3db8d1bb1652ac8fa9c1b2abadd024e9f751_29844ec7-2605-458d-a39f-4082dd9f696e.webp?v=1752650599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303099367523,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197833810019,"product_id":7769596657763,"position":6,"created_at":"2025-07-16T15:23:16+08:00","updated_at":"2025-07-16T15:23:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbe3df8434c0662ad73a58529d734159c4674f1_7cec1893-aad9-4ea6-aef9-c8843faa89d8.webp?v=1752650598","variant_ids":[43303099367523]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-XF49","featured_media":{"alt":null,"id":25830126944355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dbe3df8434c0662ad73a58529d734159c4674f1_7cec1893-aad9-4ea6-aef9-c8843faa89d8.webp?v=1752650598"}},"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: "停產" }