$product = {"id":7769872924771,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓","handle":"iphone-13-mini-mod-nx-magsafe-printable-xf52","description":null,"published_at":"2025-04-16T13:52:37+08:00","created_at":"2025-04-15T21:32:40+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":43304343044195,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197773615203,"product_id":7769872924771,"position":7,"created_at":"2025-07-16T15:22:22+08:00","updated_at":"2025-07-16T15:22:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57f678338826b740b46d85555f773ff88d1ed6cf_13993fcd-c6fd-466e-9cc3-3b48f29c4eff.webp?v=1752650544","variant_ids":[43304343044195]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - 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-XF52","featured_media":{"alt":null,"id":25830095093859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57f678338826b740b46d85555f773ff88d1ed6cf_13993fcd-c6fd-466e-9cc3-3b48f29c4eff.webp?v=1752650544"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304346976355,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197770895459,"product_id":7769872924771,"position":3,"created_at":"2025-07-16T15:22:19+08:00","updated_at":"2025-07-16T15:22:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac8a431e240779044b9d47f372dd892ba5e5689_970696e7-57dc-4b01-ab45-e89b684d6730.webp?v=1752650541","variant_ids":[43304346976355]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - 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-XF52","featured_media":{"alt":null,"id":25830093226083,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac8a431e240779044b9d47f372dd892ba5e5689_970696e7-57dc-4b01-ab45-e89b684d6730.webp?v=1752650541"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304347140195,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197772566627,"product_id":7769872924771,"position":5,"created_at":"2025-07-16T15:22:21+08:00","updated_at":"2025-07-16T15:22:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62360074476e671addeb8b4f5e5dbcf7aa6c07d_b1d9e727-4cca-40dd-892b-6a10a3325c06.webp?v=1752650543","variant_ids":[43304347140195]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - 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-XF52","featured_media":{"alt":null,"id":25830094536803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62360074476e671addeb8b4f5e5dbcf7aa6c07d_b1d9e727-4cca-40dd-892b-6a10a3325c06.webp?v=1752650543"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08a6eaa09f3f511037898923e9012a8e7158672_638e9edf-880d-4f1f-b124-a1d5bc7c767f.webp?v=1744723967","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a47e70358415531dd102d1690cc7468d508bdaf_0e07911a-189f-415d-b564-c46432483183.webp?v=1752650541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac8a431e240779044b9d47f372dd892ba5e5689_970696e7-57dc-4b01-ab45-e89b684d6730.webp?v=1752650541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30eac7f3665369649a420407ffd1823435a96d8a_dd6a566e-74ae-4e45-8ad9-975a3e9151fa.webp?v=1752650542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62360074476e671addeb8b4f5e5dbcf7aa6c07d_b1d9e727-4cca-40dd-892b-6a10a3325c06.webp?v=1752650543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae1784724cb5e5f9cc0be083345326dbe259d956_3297e68e-c83b-4b29-8c75-0dd47f690c82.webp?v=1752650544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57f678338826b740b46d85555f773ff88d1ed6cf_13993fcd-c6fd-466e-9cc3-3b48f29c4eff.webp?v=1752650544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a44331825e35a4c49e7e3983293915dcc1ce99a1_9a550aed-5da4-4d2f-abc8-b13aa4ce2d18.webp?v=1752650545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae32a1e11c5f139cb70200341f3abebfa6cda34_3b8acd4e-b046-4763-ab8c-6c9a6cfae61d.webp?v=1752650546","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38016b39dba8feac161232768831785c4c3ab3aa_60edd471-dc2d-4120-bb16-0585751da711.webp?v=1752650547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74104c6d6ffc2cd634d3ece16326c6ae2362f5f6_12e77572-0cd5-4e2a-be30-00ea29e7ebc1.webp?v=1752650548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9155b26a21caebf9b049d0d72a77aae5042ce755_da4abfc5-bc93-47e8-8437-9fa773c3551e.webp?v=1752650548"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08a6eaa09f3f511037898923e9012a8e7158672_638e9edf-880d-4f1f-b124-a1d5bc7c767f.webp?v=1744723967","options":["color"],"media":[{"alt":null,"id":25496394563683,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08a6eaa09f3f511037898923e9012a8e7158672_638e9edf-880d-4f1f-b124-a1d5bc7c767f.webp?v=1744723967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08a6eaa09f3f511037898923e9012a8e7158672_638e9edf-880d-4f1f-b124-a1d5bc7c767f.webp?v=1744723967","width":2000},{"alt":null,"id":25830092767331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a47e70358415531dd102d1690cc7468d508bdaf_0e07911a-189f-415d-b564-c46432483183.webp?v=1752650541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a47e70358415531dd102d1690cc7468d508bdaf_0e07911a-189f-415d-b564-c46432483183.webp?v=1752650541","width":2000},{"alt":null,"id":25830093226083,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac8a431e240779044b9d47f372dd892ba5e5689_970696e7-57dc-4b01-ab45-e89b684d6730.webp?v=1752650541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac8a431e240779044b9d47f372dd892ba5e5689_970696e7-57dc-4b01-ab45-e89b684d6730.webp?v=1752650541","width":2000},{"alt":null,"id":25830093881443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30eac7f3665369649a420407ffd1823435a96d8a_dd6a566e-74ae-4e45-8ad9-975a3e9151fa.webp?v=1752650542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30eac7f3665369649a420407ffd1823435a96d8a_dd6a566e-74ae-4e45-8ad9-975a3e9151fa.webp?v=1752650542","width":2000},{"alt":null,"id":25830094536803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62360074476e671addeb8b4f5e5dbcf7aa6c07d_b1d9e727-4cca-40dd-892b-6a10a3325c06.webp?v=1752650543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62360074476e671addeb8b4f5e5dbcf7aa6c07d_b1d9e727-4cca-40dd-892b-6a10a3325c06.webp?v=1752650543","width":2000},{"alt":null,"id":25830094831715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae1784724cb5e5f9cc0be083345326dbe259d956_3297e68e-c83b-4b29-8c75-0dd47f690c82.webp?v=1752650544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae1784724cb5e5f9cc0be083345326dbe259d956_3297e68e-c83b-4b29-8c75-0dd47f690c82.webp?v=1752650544","width":2000},{"alt":null,"id":25830095093859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57f678338826b740b46d85555f773ff88d1ed6cf_13993fcd-c6fd-466e-9cc3-3b48f29c4eff.webp?v=1752650544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57f678338826b740b46d85555f773ff88d1ed6cf_13993fcd-c6fd-466e-9cc3-3b48f29c4eff.webp?v=1752650544","width":2000},{"alt":null,"id":25830095585379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a44331825e35a4c49e7e3983293915dcc1ce99a1_9a550aed-5da4-4d2f-abc8-b13aa4ce2d18.webp?v=1752650545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a44331825e35a4c49e7e3983293915dcc1ce99a1_9a550aed-5da4-4d2f-abc8-b13aa4ce2d18.webp?v=1752650545","width":2000},{"alt":null,"id":25830095978595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae32a1e11c5f139cb70200341f3abebfa6cda34_3b8acd4e-b046-4763-ab8c-6c9a6cfae61d.webp?v=1752650546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae32a1e11c5f139cb70200341f3abebfa6cda34_3b8acd4e-b046-4763-ab8c-6c9a6cfae61d.webp?v=1752650546","width":2000},{"alt":null,"id":25830096502883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38016b39dba8feac161232768831785c4c3ab3aa_60edd471-dc2d-4120-bb16-0585751da711.webp?v=1752650547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38016b39dba8feac161232768831785c4c3ab3aa_60edd471-dc2d-4120-bb16-0585751da711.webp?v=1752650547","width":2000},{"alt":null,"id":25830097027171,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74104c6d6ffc2cd634d3ece16326c6ae2362f5f6_12e77572-0cd5-4e2a-be30-00ea29e7ebc1.webp?v=1752650548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74104c6d6ffc2cd634d3ece16326c6ae2362f5f6_12e77572-0cd5-4e2a-be30-00ea29e7ebc1.webp?v=1752650548","width":2000},{"alt":null,"id":25830097289315,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9155b26a21caebf9b049d0d72a77aae5042ce755_da4abfc5-bc93-47e8-8437-9fa773c3551e.webp?v=1752650548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9155b26a21caebf9b049d0d72a77aae5042ce755_da4abfc5-bc93-47e8-8437-9fa773c3551e.webp?v=1752650548","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304343044195,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197773615203,"product_id":7769872924771,"position":7,"created_at":"2025-07-16T15:22:22+08:00","updated_at":"2025-07-16T15:22:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57f678338826b740b46d85555f773ff88d1ed6cf_13993fcd-c6fd-466e-9cc3-3b48f29c4eff.webp?v=1752650544","variant_ids":[43304343044195]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - 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-XF52","featured_media":{"alt":null,"id":25830095093859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57f678338826b740b46d85555f773ff88d1ed6cf_13993fcd-c6fd-466e-9cc3-3b48f29c4eff.webp?v=1752650544"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304346976355,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197770895459,"product_id":7769872924771,"position":3,"created_at":"2025-07-16T15:22:19+08:00","updated_at":"2025-07-16T15:22:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac8a431e240779044b9d47f372dd892ba5e5689_970696e7-57dc-4b01-ab45-e89b684d6730.webp?v=1752650541","variant_ids":[43304346976355]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - 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-XF52","featured_media":{"alt":null,"id":25830093226083,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac8a431e240779044b9d47f372dd892ba5e5689_970696e7-57dc-4b01-ab45-e89b684d6730.webp?v=1752650541"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304347140195,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197772566627,"product_id":7769872924771,"position":5,"created_at":"2025-07-16T15:22:21+08:00","updated_at":"2025-07-16T15:22:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62360074476e671addeb8b4f5e5dbcf7aa6c07d_b1d9e727-4cca-40dd-892b-6a10a3325c06.webp?v=1752650543","variant_ids":[43304347140195]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - 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-XF52","featured_media":{"alt":null,"id":25830094536803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62360074476e671addeb8b4f5e5dbcf7aa6c07d_b1d9e727-4cca-40dd-892b-6a10a3325c06.webp?v=1752650543"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304343044195,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF52","requires_shipping":true,"taxable":true,"featured_image":{"id":34197773615203,"product_id":7769872924771,"position":7,"created_at":"2025-07-16T15:22:22+08:00","updated_at":"2025-07-16T15:22:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57f678338826b740b46d85555f773ff88d1ed6cf_13993fcd-c6fd-466e-9cc3-3b48f29c4eff.webp?v=1752650544","variant_ids":[43304343044195]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle The Sun and Cat - 太陽與貓 - 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-XF52","featured_media":{"alt":null,"id":25830095093859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57f678338826b740b46d85555f773ff88d1ed6cf_13993fcd-c6fd-466e-9cc3-3b48f29c4eff.webp?v=1752650544"}},"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: "停產" }