$product = {"id":7769962414179,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - 冷靜","handle":"iphone-13-mini-mod-nx-magsafe-printable-xf46","description":null,"published_at":"2025-04-16T13:13:34+08:00","created_at":"2025-04-15T22:37:24+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":43304806776931,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197749203043,"product_id":7769962414179,"position":11,"created_at":"2025-07-16T15:22:01+08:00","updated_at":"2025-07-16T15:22:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c246c8c9ad7c5503d8574493733352cbfcde61d_bf79997a-424b-4235-9fad-b426df050900.webp?v=1752650523","variant_ids":[43304806776931]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful 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-XF46","featured_media":{"alt":null,"id":25830081953891,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c246c8c9ad7c5503d8574493733352cbfcde61d_bf79997a-424b-4235-9fad-b426df050900.webp?v=1752650523"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304811593827,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197744517219,"product_id":7769962414179,"position":6,"created_at":"2025-07-16T15:21:58+08:00","updated_at":"2025-07-16T15:22:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/041545cad5097449a52570a0aa274f168c697d0a_d1e9b51d-8bd6-4b9e-a710-56ab2ebba566.webp?v=1752650520","variant_ids":[43304811593827]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful 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-XF46","featured_media":{"alt":null,"id":25830079660131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/041545cad5097449a52570a0aa274f168c697d0a_d1e9b51d-8bd6-4b9e-a710-56ab2ebba566.webp?v=1752650520"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304811757667,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197742780515,"product_id":7769962414179,"position":3,"created_at":"2025-07-16T15:21:56+08:00","updated_at":"2025-07-16T15:21:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e6215b791b42cca0b6f8101519697d3ba2aaaa_476eabd8-8525-4466-99d6-53c09f560447.webp?v=1752650518","variant_ids":[43304811757667]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful 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-XF46","featured_media":{"alt":null,"id":25830078939235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e6215b791b42cca0b6f8101519697d3ba2aaaa_476eabd8-8525-4466-99d6-53c09f560447.webp?v=1752650518"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845a480cbb8a36ea4d84618f0ee15d8a61c4b34_4c2c5af0-a4e2-4ec8-b361-0eece5ef686f.webp?v=1744727852","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/382eeb7afc5fd1bbd2259e7acb08ec82972ac6dc_1c4eb990-75d6-4fe7-ab85-f0366d029452.webp?v=1752650517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e6215b791b42cca0b6f8101519697d3ba2aaaa_476eabd8-8525-4466-99d6-53c09f560447.webp?v=1752650518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53483086c5efe88270c43e2704bc65afc4ab48fb_fd97410b-49b8-41d1-b05a-bb962740fbcb.webp?v=1752650519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2ca5971fc556ba81e8478eff3088b21603d0e3_f123a61f-2ee9-443a-a26c-208c5d6e7ae9.webp?v=1752650519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/041545cad5097449a52570a0aa274f168c697d0a_d1e9b51d-8bd6-4b9e-a710-56ab2ebba566.webp?v=1752650520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc7e37df4a3f51690e3f0bc085887af14df40924_e6a1b41e-bf28-4142-8614-a70c4b7dfa83.webp?v=1752650520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cae7d33bed58e0b7c273eceff2bf4320b9c45a78_9bfec153-3a7a-4cfc-a86f-626f4a807e4a.webp?v=1752650521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad7002076dd06a77bfe27c257a7b9fc5ea708637_6b8adabd-752d-43af-b584-a0acde10040c.webp?v=1752650522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2daaa9c3cffd2a16993fa8e3821902ffa7339b6_fede0956-d64a-4e0d-9c15-a150c5a897ef.webp?v=1752650523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c246c8c9ad7c5503d8574493733352cbfcde61d_bf79997a-424b-4235-9fad-b426df050900.webp?v=1752650523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dbd8c502a4cd14dfc842e41adf98a93ccdcc1ff_1964b60b-8c3d-43aa-87db-7e299dcb0792.webp?v=1752650524"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845a480cbb8a36ea4d84618f0ee15d8a61c4b34_4c2c5af0-a4e2-4ec8-b361-0eece5ef686f.webp?v=1744727852","options":["color"],"media":[{"alt":null,"id":25496606802019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845a480cbb8a36ea4d84618f0ee15d8a61c4b34_4c2c5af0-a4e2-4ec8-b361-0eece5ef686f.webp?v=1744727852"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845a480cbb8a36ea4d84618f0ee15d8a61c4b34_4c2c5af0-a4e2-4ec8-b361-0eece5ef686f.webp?v=1744727852","width":2000},{"alt":null,"id":25830078742627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/382eeb7afc5fd1bbd2259e7acb08ec82972ac6dc_1c4eb990-75d6-4fe7-ab85-f0366d029452.webp?v=1752650517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/382eeb7afc5fd1bbd2259e7acb08ec82972ac6dc_1c4eb990-75d6-4fe7-ab85-f0366d029452.webp?v=1752650517","width":2000},{"alt":null,"id":25830078939235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e6215b791b42cca0b6f8101519697d3ba2aaaa_476eabd8-8525-4466-99d6-53c09f560447.webp?v=1752650518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e6215b791b42cca0b6f8101519697d3ba2aaaa_476eabd8-8525-4466-99d6-53c09f560447.webp?v=1752650518","width":2000},{"alt":null,"id":25830079168611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53483086c5efe88270c43e2704bc65afc4ab48fb_fd97410b-49b8-41d1-b05a-bb962740fbcb.webp?v=1752650519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53483086c5efe88270c43e2704bc65afc4ab48fb_fd97410b-49b8-41d1-b05a-bb962740fbcb.webp?v=1752650519","width":2000},{"alt":null,"id":25830079397987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2ca5971fc556ba81e8478eff3088b21603d0e3_f123a61f-2ee9-443a-a26c-208c5d6e7ae9.webp?v=1752650519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd2ca5971fc556ba81e8478eff3088b21603d0e3_f123a61f-2ee9-443a-a26c-208c5d6e7ae9.webp?v=1752650519","width":2000},{"alt":null,"id":25830079660131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/041545cad5097449a52570a0aa274f168c697d0a_d1e9b51d-8bd6-4b9e-a710-56ab2ebba566.webp?v=1752650520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/041545cad5097449a52570a0aa274f168c697d0a_d1e9b51d-8bd6-4b9e-a710-56ab2ebba566.webp?v=1752650520","width":2000},{"alt":null,"id":25830080020579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc7e37df4a3f51690e3f0bc085887af14df40924_e6a1b41e-bf28-4142-8614-a70c4b7dfa83.webp?v=1752650520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc7e37df4a3f51690e3f0bc085887af14df40924_e6a1b41e-bf28-4142-8614-a70c4b7dfa83.webp?v=1752650520","width":2000},{"alt":null,"id":25830080413795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cae7d33bed58e0b7c273eceff2bf4320b9c45a78_9bfec153-3a7a-4cfc-a86f-626f4a807e4a.webp?v=1752650521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cae7d33bed58e0b7c273eceff2bf4320b9c45a78_9bfec153-3a7a-4cfc-a86f-626f4a807e4a.webp?v=1752650521","width":2000},{"alt":null,"id":25830081036387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad7002076dd06a77bfe27c257a7b9fc5ea708637_6b8adabd-752d-43af-b584-a0acde10040c.webp?v=1752650522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad7002076dd06a77bfe27c257a7b9fc5ea708637_6b8adabd-752d-43af-b584-a0acde10040c.webp?v=1752650522","width":2000},{"alt":null,"id":25830081593443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2daaa9c3cffd2a16993fa8e3821902ffa7339b6_fede0956-d64a-4e0d-9c15-a150c5a897ef.webp?v=1752650523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2daaa9c3cffd2a16993fa8e3821902ffa7339b6_fede0956-d64a-4e0d-9c15-a150c5a897ef.webp?v=1752650523","width":2000},{"alt":null,"id":25830081953891,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c246c8c9ad7c5503d8574493733352cbfcde61d_bf79997a-424b-4235-9fad-b426df050900.webp?v=1752650523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c246c8c9ad7c5503d8574493733352cbfcde61d_bf79997a-424b-4235-9fad-b426df050900.webp?v=1752650523","width":2000},{"alt":null,"id":25830082347107,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dbd8c502a4cd14dfc842e41adf98a93ccdcc1ff_1964b60b-8c3d-43aa-87db-7e299dcb0792.webp?v=1752650524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dbd8c502a4cd14dfc842e41adf98a93ccdcc1ff_1964b60b-8c3d-43aa-87db-7e299dcb0792.webp?v=1752650524","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304806776931,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197749203043,"product_id":7769962414179,"position":11,"created_at":"2025-07-16T15:22:01+08:00","updated_at":"2025-07-16T15:22:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c246c8c9ad7c5503d8574493733352cbfcde61d_bf79997a-424b-4235-9fad-b426df050900.webp?v=1752650523","variant_ids":[43304806776931]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful 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-XF46","featured_media":{"alt":null,"id":25830081953891,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c246c8c9ad7c5503d8574493733352cbfcde61d_bf79997a-424b-4235-9fad-b426df050900.webp?v=1752650523"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304811593827,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197744517219,"product_id":7769962414179,"position":6,"created_at":"2025-07-16T15:21:58+08:00","updated_at":"2025-07-16T15:22:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/041545cad5097449a52570a0aa274f168c697d0a_d1e9b51d-8bd6-4b9e-a710-56ab2ebba566.webp?v=1752650520","variant_ids":[43304811593827]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful 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-XF46","featured_media":{"alt":null,"id":25830079660131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/041545cad5097449a52570a0aa274f168c697d0a_d1e9b51d-8bd6-4b9e-a710-56ab2ebba566.webp?v=1752650520"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304811757667,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197742780515,"product_id":7769962414179,"position":3,"created_at":"2025-07-16T15:21:56+08:00","updated_at":"2025-07-16T15:21:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e6215b791b42cca0b6f8101519697d3ba2aaaa_476eabd8-8525-4466-99d6-53c09f560447.webp?v=1752650518","variant_ids":[43304811757667]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful 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-XF46","featured_media":{"alt":null,"id":25830078939235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e6215b791b42cca0b6f8101519697d3ba2aaaa_476eabd8-8525-4466-99d6-53c09f560447.webp?v=1752650518"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304806776931,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197749203043,"product_id":7769962414179,"position":11,"created_at":"2025-07-16T15:22:01+08:00","updated_at":"2025-07-16T15:22:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c246c8c9ad7c5503d8574493733352cbfcde61d_bf79997a-424b-4235-9fad-b426df050900.webp?v=1752650523","variant_ids":[43304806776931]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful 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-XF46","featured_media":{"alt":null,"id":25830081953891,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c246c8c9ad7c5503d8574493733352cbfcde61d_bf79997a-424b-4235-9fad-b426df050900.webp?v=1752650523"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }