$product = {"id":7411385270371,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具3","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb26","description":null,"published_at":"2024-06-11T17:43:32+08:00","created_at":"2024-05-05T00:19:35+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"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":41898217668707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31480296800355,"product_id":7411385270371,"position":9,"created_at":"2024-05-05T00:19:55+08:00","updated_at":"2024-05-05T00:19:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9bd74bbbdb7d306d5e9e49c0f25188a9d2396a_4d84124e-319d-4077-a15c-ae2b698f2e21.webp?v=1714839595","variant_ids":[41898217668707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PB26","featured_media":{"alt":null,"id":23885548126307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9bd74bbbdb7d306d5e9e49c0f25188a9d2396a_4d84124e-319d-4077-a15c-ae2b698f2e21.webp?v=1714839595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898217734243,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31480294506595,"product_id":7411385270371,"position":5,"created_at":"2024-05-05T00:19:46+08:00","updated_at":"2024-05-05T00:19:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e310f46e61f12e4307c1f91145ec2f476318d5_980cd8a6-1073-4bbf-8f4a-e83548a3123a.webp?v=1714839586","variant_ids":[41898217734243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-PB26","featured_media":{"alt":null,"id":23885545930851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e310f46e61f12e4307c1f91145ec2f476318d5_980cd8a6-1073-4bbf-8f4a-e83548a3123a.webp?v=1714839586"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898217996387,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31480296177763,"product_id":7411385270371,"position":8,"created_at":"2024-05-05T00:19:53+08:00","updated_at":"2024-05-05T00:19:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd6ef3d4a5d87207d06ce5cf31c5f2af996f7d6_61b60ec0-ac59-4ff5-b611-dec28fd73895.webp?v=1714839593","variant_ids":[41898217996387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-PB26","featured_media":{"alt":null,"id":23885547503715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd6ef3d4a5d87207d06ce5cf31c5f2af996f7d6_61b60ec0-ac59-4ff5-b611-dec28fd73895.webp?v=1714839593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563b52baf66dbd50d092731f2f2222ba7017dbb6_a66e5172-3292-4563-bca5-cea2dd56dbd3.webp?v=1714839577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffba5ebb97b9d808fc39f82cef6debe10a8f007c_ea835729-0927-48b7-993f-254bceb80902.webp?v=1714839579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e84e835b72f6567d0daf4a670068ef7f8a6fa72_15511164-541a-496f-ab4e-2be1d802e79e.webp?v=1714839582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4a68f59b0b1aacf1bd7ecde9405fc94d132a6a1_38eb85d6-0839-463a-9838-be1f5922d08c.webp?v=1714839584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e310f46e61f12e4307c1f91145ec2f476318d5_980cd8a6-1073-4bbf-8f4a-e83548a3123a.webp?v=1714839586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477bd3829ce8eb01b46360e8254ba2d28e07da6d_22572801-2e7d-4b41-9859-75e602764513.webp?v=1714839589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27083930fd9faea0af0b20942a3b2f232c6adcaa_7a54940f-ac2b-47dc-aab9-670d1504e9c0.webp?v=1714839591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd6ef3d4a5d87207d06ce5cf31c5f2af996f7d6_61b60ec0-ac59-4ff5-b611-dec28fd73895.webp?v=1714839593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9bd74bbbdb7d306d5e9e49c0f25188a9d2396a_4d84124e-319d-4077-a15c-ae2b698f2e21.webp?v=1714839595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23771300a0e1f64f8b9fec27778a3efc07a6ad6a_e36923ba-657b-4ce9-ac6f-43efccc24127.webp?v=1714839598"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563b52baf66dbd50d092731f2f2222ba7017dbb6_a66e5172-3292-4563-bca5-cea2dd56dbd3.webp?v=1714839577","options":["color"],"media":[{"alt":null,"id":23885543243875,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563b52baf66dbd50d092731f2f2222ba7017dbb6_a66e5172-3292-4563-bca5-cea2dd56dbd3.webp?v=1714839577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563b52baf66dbd50d092731f2f2222ba7017dbb6_a66e5172-3292-4563-bca5-cea2dd56dbd3.webp?v=1714839577","width":2000},{"alt":null,"id":23885543702627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffba5ebb97b9d808fc39f82cef6debe10a8f007c_ea835729-0927-48b7-993f-254bceb80902.webp?v=1714839579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffba5ebb97b9d808fc39f82cef6debe10a8f007c_ea835729-0927-48b7-993f-254bceb80902.webp?v=1714839579","width":2000},{"alt":null,"id":23885544783971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e84e835b72f6567d0daf4a670068ef7f8a6fa72_15511164-541a-496f-ab4e-2be1d802e79e.webp?v=1714839582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e84e835b72f6567d0daf4a670068ef7f8a6fa72_15511164-541a-496f-ab4e-2be1d802e79e.webp?v=1714839582","width":2000},{"alt":null,"id":23885545275491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4a68f59b0b1aacf1bd7ecde9405fc94d132a6a1_38eb85d6-0839-463a-9838-be1f5922d08c.webp?v=1714839584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4a68f59b0b1aacf1bd7ecde9405fc94d132a6a1_38eb85d6-0839-463a-9838-be1f5922d08c.webp?v=1714839584","width":2000},{"alt":null,"id":23885545930851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e310f46e61f12e4307c1f91145ec2f476318d5_980cd8a6-1073-4bbf-8f4a-e83548a3123a.webp?v=1714839586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e310f46e61f12e4307c1f91145ec2f476318d5_980cd8a6-1073-4bbf-8f4a-e83548a3123a.webp?v=1714839586","width":2000},{"alt":null,"id":23885546389603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477bd3829ce8eb01b46360e8254ba2d28e07da6d_22572801-2e7d-4b41-9859-75e602764513.webp?v=1714839589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477bd3829ce8eb01b46360e8254ba2d28e07da6d_22572801-2e7d-4b41-9859-75e602764513.webp?v=1714839589","width":2000},{"alt":null,"id":23885547044963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27083930fd9faea0af0b20942a3b2f232c6adcaa_7a54940f-ac2b-47dc-aab9-670d1504e9c0.webp?v=1714839591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27083930fd9faea0af0b20942a3b2f232c6adcaa_7a54940f-ac2b-47dc-aab9-670d1504e9c0.webp?v=1714839591","width":2000},{"alt":null,"id":23885547503715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd6ef3d4a5d87207d06ce5cf31c5f2af996f7d6_61b60ec0-ac59-4ff5-b611-dec28fd73895.webp?v=1714839593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd6ef3d4a5d87207d06ce5cf31c5f2af996f7d6_61b60ec0-ac59-4ff5-b611-dec28fd73895.webp?v=1714839593","width":2000},{"alt":null,"id":23885548126307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9bd74bbbdb7d306d5e9e49c0f25188a9d2396a_4d84124e-319d-4077-a15c-ae2b698f2e21.webp?v=1714839595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9bd74bbbdb7d306d5e9e49c0f25188a9d2396a_4d84124e-319d-4077-a15c-ae2b698f2e21.webp?v=1714839595","width":2000},{"alt":null,"id":23885548585059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23771300a0e1f64f8b9fec27778a3efc07a6ad6a_e36923ba-657b-4ce9-ac6f-43efccc24127.webp?v=1714839598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23771300a0e1f64f8b9fec27778a3efc07a6ad6a_e36923ba-657b-4ce9-ac6f-43efccc24127.webp?v=1714839598","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898217668707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31480296800355,"product_id":7411385270371,"position":9,"created_at":"2024-05-05T00:19:55+08:00","updated_at":"2024-05-05T00:19:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9bd74bbbdb7d306d5e9e49c0f25188a9d2396a_4d84124e-319d-4077-a15c-ae2b698f2e21.webp?v=1714839595","variant_ids":[41898217668707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PB26","featured_media":{"alt":null,"id":23885548126307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9bd74bbbdb7d306d5e9e49c0f25188a9d2396a_4d84124e-319d-4077-a15c-ae2b698f2e21.webp?v=1714839595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898217734243,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31480294506595,"product_id":7411385270371,"position":5,"created_at":"2024-05-05T00:19:46+08:00","updated_at":"2024-05-05T00:19:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e310f46e61f12e4307c1f91145ec2f476318d5_980cd8a6-1073-4bbf-8f4a-e83548a3123a.webp?v=1714839586","variant_ids":[41898217734243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-PB26","featured_media":{"alt":null,"id":23885545930851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e310f46e61f12e4307c1f91145ec2f476318d5_980cd8a6-1073-4bbf-8f4a-e83548a3123a.webp?v=1714839586"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898217996387,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31480296177763,"product_id":7411385270371,"position":8,"created_at":"2024-05-05T00:19:53+08:00","updated_at":"2024-05-05T00:19:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd6ef3d4a5d87207d06ce5cf31c5f2af996f7d6_61b60ec0-ac59-4ff5-b611-dec28fd73895.webp?v=1714839593","variant_ids":[41898217996387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-PB26","featured_media":{"alt":null,"id":23885547503715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cd6ef3d4a5d87207d06ce5cf31c5f2af996f7d6_61b60ec0-ac59-4ff5-b611-dec28fd73895.webp?v=1714839593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898217668707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31480296800355,"product_id":7411385270371,"position":9,"created_at":"2024-05-05T00:19:55+08:00","updated_at":"2024-05-05T00:19:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9bd74bbbdb7d306d5e9e49c0f25188a9d2396a_4d84124e-319d-4077-a15c-ae2b698f2e21.webp?v=1714839595","variant_ids":[41898217668707]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PB26","featured_media":{"alt":null,"id":23885548126307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9bd74bbbdb7d306d5e9e49c0f25188a9d2396a_4d84124e-319d-4077-a15c-ae2b698f2e21.webp?v=1714839595"}},"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: "停產" }