$product = {"id":7770051444835,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱","handle":"iphone-13-mini-mod-nx-magsafe-printable-xf55","description":null,"published_at":"2025-04-16T12:40:46+08:00","created_at":"2025-04-15T23:32:42+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":43305206153315,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197835382883,"product_id":7770051444835,"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\/72bcdb69f3953356b7d8c6f905085c3cad8f008b_9bc58525-0054-4047-acb2-f7c31ff86c61.webp?v=1752650599","variant_ids":[43305206153315]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - 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-XF55","featured_media":{"alt":null,"id":25830127599715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72bcdb69f3953356b7d8c6f905085c3cad8f008b_9bc58525-0054-4047-acb2-f7c31ff86c61.webp?v=1752650599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43305209954403,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197833154659,"product_id":7770051444835,"position":5,"created_at":"2025-07-16T15:23:15+08:00","updated_at":"2025-07-16T15:23:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f985baf8c2d9356af51944dea70eb8de13649e8_6f6f6913-4d46-4982-bb44-0fb55915b94f.webp?v=1752650597","variant_ids":[43305209954403]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - 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-XF55","featured_media":{"alt":null,"id":25830126583907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f985baf8c2d9356af51944dea70eb8de13649e8_6f6f6913-4d46-4982-bb44-0fb55915b94f.webp?v=1752650597"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43305210118243,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197834760291,"product_id":7770051444835,"position":7,"created_at":"2025-07-16T15:23:17+08:00","updated_at":"2025-07-16T15:23:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f24eaaf7ff4cf72668623c7575de378facda5b_95959450-e338-40b9-b27e-c190acba4a19.webp?v=1752650598","variant_ids":[43305210118243]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - 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-XF55","featured_media":{"alt":null,"id":25830127337571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f24eaaf7ff4cf72668623c7575de378facda5b_95959450-e338-40b9-b27e-c190acba4a19.webp?v=1752650598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd1513707c1efb876012d5461d1316180fa0a67_490e338b-8fef-48a2-ab15-8d3ed83c0d32.webp?v=1744731169","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcb783adc7fef73cc2d996d559dc70b83a780320_14badaf4-6fb8-4154-a80c-74a83d86f0c5.webp?v=1752650595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d299fc0747473dfd83a123ce2dc2477fb744ec1c_811fea85-c8a9-497b-b9eb-b5e488c826c5.webp?v=1752650596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f1898e5498cca2ef26406787c6040f9a7c7fd53_82ee349a-fa0c-47dd-9448-c3dbb2fe66a8.webp?v=1752650596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f985baf8c2d9356af51944dea70eb8de13649e8_6f6f6913-4d46-4982-bb44-0fb55915b94f.webp?v=1752650597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de35ca2c81675ba6b62d184a36d3f816e5a9b02_fe03da96-ed72-4a86-a07d-a72680f2e45c.webp?v=1752650598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f24eaaf7ff4cf72668623c7575de378facda5b_95959450-e338-40b9-b27e-c190acba4a19.webp?v=1752650598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72bcdb69f3953356b7d8c6f905085c3cad8f008b_9bc58525-0054-4047-acb2-f7c31ff86c61.webp?v=1752650599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95c285dab303cb3a5521239c5a653d1b5fcbd303_f82ce00b-d7ca-4e85-bfdd-a53628b20629.webp?v=1752650600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8828d6cc07b372e904783dc913353ae957ec687a_74546416-3f6f-442e-be11-087a580f4d04.webp?v=1752650600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f290ba0c42dff5eac20961e6a7e4d605f585a9e_172adc30-4df5-4990-93d8-fa092e9d2410.webp?v=1752650601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac192820c7ed1eac52c29c45424321bd8e6f71e_2d9e5c79-f34e-470f-9f43-b6fef8d72db2.webp?v=1752650602"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd1513707c1efb876012d5461d1316180fa0a67_490e338b-8fef-48a2-ab15-8d3ed83c0d32.webp?v=1744731169","options":["color"],"media":[{"alt":null,"id":25496804491363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd1513707c1efb876012d5461d1316180fa0a67_490e338b-8fef-48a2-ab15-8d3ed83c0d32.webp?v=1744731169"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd1513707c1efb876012d5461d1316180fa0a67_490e338b-8fef-48a2-ab15-8d3ed83c0d32.webp?v=1744731169","width":2000},{"alt":null,"id":25830125535331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcb783adc7fef73cc2d996d559dc70b83a780320_14badaf4-6fb8-4154-a80c-74a83d86f0c5.webp?v=1752650595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcb783adc7fef73cc2d996d559dc70b83a780320_14badaf4-6fb8-4154-a80c-74a83d86f0c5.webp?v=1752650595","width":2000},{"alt":null,"id":25830125994083,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d299fc0747473dfd83a123ce2dc2477fb744ec1c_811fea85-c8a9-497b-b9eb-b5e488c826c5.webp?v=1752650596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d299fc0747473dfd83a123ce2dc2477fb744ec1c_811fea85-c8a9-497b-b9eb-b5e488c826c5.webp?v=1752650596","width":2000},{"alt":null,"id":25830126321763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f1898e5498cca2ef26406787c6040f9a7c7fd53_82ee349a-fa0c-47dd-9448-c3dbb2fe66a8.webp?v=1752650596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f1898e5498cca2ef26406787c6040f9a7c7fd53_82ee349a-fa0c-47dd-9448-c3dbb2fe66a8.webp?v=1752650596","width":2000},{"alt":null,"id":25830126583907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f985baf8c2d9356af51944dea70eb8de13649e8_6f6f6913-4d46-4982-bb44-0fb55915b94f.webp?v=1752650597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f985baf8c2d9356af51944dea70eb8de13649e8_6f6f6913-4d46-4982-bb44-0fb55915b94f.webp?v=1752650597","width":2000},{"alt":null,"id":25830127009891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de35ca2c81675ba6b62d184a36d3f816e5a9b02_fe03da96-ed72-4a86-a07d-a72680f2e45c.webp?v=1752650598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de35ca2c81675ba6b62d184a36d3f816e5a9b02_fe03da96-ed72-4a86-a07d-a72680f2e45c.webp?v=1752650598","width":2000},{"alt":null,"id":25830127337571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f24eaaf7ff4cf72668623c7575de378facda5b_95959450-e338-40b9-b27e-c190acba4a19.webp?v=1752650598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f24eaaf7ff4cf72668623c7575de378facda5b_95959450-e338-40b9-b27e-c190acba4a19.webp?v=1752650598","width":2000},{"alt":null,"id":25830127599715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72bcdb69f3953356b7d8c6f905085c3cad8f008b_9bc58525-0054-4047-acb2-f7c31ff86c61.webp?v=1752650599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72bcdb69f3953356b7d8c6f905085c3cad8f008b_9bc58525-0054-4047-acb2-f7c31ff86c61.webp?v=1752650599","width":2000},{"alt":null,"id":25830127927395,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95c285dab303cb3a5521239c5a653d1b5fcbd303_f82ce00b-d7ca-4e85-bfdd-a53628b20629.webp?v=1752650600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95c285dab303cb3a5521239c5a653d1b5fcbd303_f82ce00b-d7ca-4e85-bfdd-a53628b20629.webp?v=1752650600","width":2000},{"alt":null,"id":25830128517219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8828d6cc07b372e904783dc913353ae957ec687a_74546416-3f6f-442e-be11-087a580f4d04.webp?v=1752650600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8828d6cc07b372e904783dc913353ae957ec687a_74546416-3f6f-442e-be11-087a580f4d04.webp?v=1752650600","width":2000},{"alt":null,"id":25830128943203,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f290ba0c42dff5eac20961e6a7e4d605f585a9e_172adc30-4df5-4990-93d8-fa092e9d2410.webp?v=1752650601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f290ba0c42dff5eac20961e6a7e4d605f585a9e_172adc30-4df5-4990-93d8-fa092e9d2410.webp?v=1752650601","width":2000},{"alt":null,"id":25830129270883,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac192820c7ed1eac52c29c45424321bd8e6f71e_2d9e5c79-f34e-470f-9f43-b6fef8d72db2.webp?v=1752650602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac192820c7ed1eac52c29c45424321bd8e6f71e_2d9e5c79-f34e-470f-9f43-b6fef8d72db2.webp?v=1752650602","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43305206153315,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197835382883,"product_id":7770051444835,"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\/72bcdb69f3953356b7d8c6f905085c3cad8f008b_9bc58525-0054-4047-acb2-f7c31ff86c61.webp?v=1752650599","variant_ids":[43305206153315]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - 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-XF55","featured_media":{"alt":null,"id":25830127599715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72bcdb69f3953356b7d8c6f905085c3cad8f008b_9bc58525-0054-4047-acb2-f7c31ff86c61.webp?v=1752650599"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43305209954403,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197833154659,"product_id":7770051444835,"position":5,"created_at":"2025-07-16T15:23:15+08:00","updated_at":"2025-07-16T15:23:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f985baf8c2d9356af51944dea70eb8de13649e8_6f6f6913-4d46-4982-bb44-0fb55915b94f.webp?v=1752650597","variant_ids":[43305209954403]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - 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-XF55","featured_media":{"alt":null,"id":25830126583907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f985baf8c2d9356af51944dea70eb8de13649e8_6f6f6913-4d46-4982-bb44-0fb55915b94f.webp?v=1752650597"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43305210118243,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197834760291,"product_id":7770051444835,"position":7,"created_at":"2025-07-16T15:23:17+08:00","updated_at":"2025-07-16T15:23:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f24eaaf7ff4cf72668623c7575de378facda5b_95959450-e338-40b9-b27e-c190acba4a19.webp?v=1752650598","variant_ids":[43305210118243]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - 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-XF55","featured_media":{"alt":null,"id":25830127337571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f24eaaf7ff4cf72668623c7575de378facda5b_95959450-e338-40b9-b27e-c190acba4a19.webp?v=1752650598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43305206153315,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197835382883,"product_id":7770051444835,"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\/72bcdb69f3953356b7d8c6f905085c3cad8f008b_9bc58525-0054-4047-acb2-f7c31ff86c61.webp?v=1752650599","variant_ids":[43305206153315]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - 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-XF55","featured_media":{"alt":null,"id":25830127599715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72bcdb69f3953356b7d8c6f905085c3cad8f008b_9bc58525-0054-4047-acb2-f7c31ff86c61.webp?v=1752650599"}},"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: "停產" }