$product = {"id":7413982003299,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb66","description":null,"published_at":"2024-06-11T17:46:49+08:00","created_at":"2024-05-05T13:55:03+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 13 mini","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":41902973747299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31484383232099,"product_id":7413982003299,"position":1,"created_at":"2024-05-05T13:55:05+08:00","updated_at":"2024-05-05T13:55:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c600f2e43c9e6d11482f4a6597db72ddca24a259_6a8fbcd4-c8ae-4758-b5fe-e15f485ebe1c.webp?v=1714888505","variant_ids":[41902973747299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"MPB0122824-PB66","featured_media":{"alt":null,"id":23889677156451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c600f2e43c9e6d11482f4a6597db72ddca24a259_6a8fbcd4-c8ae-4758-b5fe-e15f485ebe1c.webp?v=1714888505"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902973812835,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31484387491939,"product_id":7413982003299,"position":10,"created_at":"2024-05-05T13:55:26+08:00","updated_at":"2024-05-05T13:55:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f141bd399b7b762e9359c99d59091473d5fe80_f56532d6-b9d7-4dd7-abe6-f090f79af0d9.webp?v=1714888526","variant_ids":[41902973812835]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"MPB0122804-PB66","featured_media":{"alt":null,"id":23889681449059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f141bd399b7b762e9359c99d59091473d5fe80_f56532d6-b9d7-4dd7-abe6-f090f79af0d9.webp?v=1714888526"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902974206051,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31484385722467,"product_id":7413982003299,"position":6,"created_at":"2024-05-05T13:55:17+08:00","updated_at":"2024-05-05T13:55:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab147fadaafe67368e9e9f95bb10e4438982760_b97202f6-118f-49af-9b5b-b83b71b6c37b.webp?v=1714888517","variant_ids":[41902974206051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"MPB01228J5-PB66","featured_media":{"alt":null,"id":23889679614051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab147fadaafe67368e9e9f95bb10e4438982760_b97202f6-118f-49af-9b5b-b83b71b6c37b.webp?v=1714888517"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c600f2e43c9e6d11482f4a6597db72ddca24a259_6a8fbcd4-c8ae-4758-b5fe-e15f485ebe1c.webp?v=1714888505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/887a133bead616bbc4eba77290e93e191fa57972_8fc73141-e92f-4c33-8c8c-b7f89b374534.webp?v=1714888507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d2dd9fc0333e98c0d21ad83b492febae05fb68_081b393c-6e37-426b-a148-85dfc8c86fe4.webp?v=1714888510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f280b24c444a294f51e36692722d3b1719703f0_64584a52-dd22-450a-8dcb-dfe9c5975b09.webp?v=1714888512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2680cde2989470648f2b6148589b3e6bc5a21ec9_004cf28c-9163-41e5-a58c-017992bbd63d.webp?v=1714888514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab147fadaafe67368e9e9f95bb10e4438982760_b97202f6-118f-49af-9b5b-b83b71b6c37b.webp?v=1714888517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d115b3a3edc3e64fe71a897656747bd66f74529_c721ad6e-ace5-4c86-ab11-b9e05dc487fe.webp?v=1714888519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a47c19fa147a24cf32d573bcc4835fac7bb6e59_505d801b-b132-40bc-9510-911117b98c7d.webp?v=1714888521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c89cd11fce5a1e4a63a2cbfbb505982516ccdfef_36f45cb1-dc6b-4caa-ae5a-f6ff0a9c0aac.webp?v=1714888524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f141bd399b7b762e9359c99d59091473d5fe80_f56532d6-b9d7-4dd7-abe6-f090f79af0d9.webp?v=1714888526"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c600f2e43c9e6d11482f4a6597db72ddca24a259_6a8fbcd4-c8ae-4758-b5fe-e15f485ebe1c.webp?v=1714888505","options":["color"],"media":[{"alt":null,"id":23889677156451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c600f2e43c9e6d11482f4a6597db72ddca24a259_6a8fbcd4-c8ae-4758-b5fe-e15f485ebe1c.webp?v=1714888505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c600f2e43c9e6d11482f4a6597db72ddca24a259_6a8fbcd4-c8ae-4758-b5fe-e15f485ebe1c.webp?v=1714888505","width":2000},{"alt":null,"id":23889677582435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/887a133bead616bbc4eba77290e93e191fa57972_8fc73141-e92f-4c33-8c8c-b7f89b374534.webp?v=1714888507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/887a133bead616bbc4eba77290e93e191fa57972_8fc73141-e92f-4c33-8c8c-b7f89b374534.webp?v=1714888507","width":2000},{"alt":null,"id":23889678073955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d2dd9fc0333e98c0d21ad83b492febae05fb68_081b393c-6e37-426b-a148-85dfc8c86fe4.webp?v=1714888510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d2dd9fc0333e98c0d21ad83b492febae05fb68_081b393c-6e37-426b-a148-85dfc8c86fe4.webp?v=1714888510","width":2000},{"alt":null,"id":23889678499939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f280b24c444a294f51e36692722d3b1719703f0_64584a52-dd22-450a-8dcb-dfe9c5975b09.webp?v=1714888512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f280b24c444a294f51e36692722d3b1719703f0_64584a52-dd22-450a-8dcb-dfe9c5975b09.webp?v=1714888512","width":2000},{"alt":null,"id":23889678893155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2680cde2989470648f2b6148589b3e6bc5a21ec9_004cf28c-9163-41e5-a58c-017992bbd63d.webp?v=1714888514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2680cde2989470648f2b6148589b3e6bc5a21ec9_004cf28c-9163-41e5-a58c-017992bbd63d.webp?v=1714888514","width":2000},{"alt":null,"id":23889679614051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab147fadaafe67368e9e9f95bb10e4438982760_b97202f6-118f-49af-9b5b-b83b71b6c37b.webp?v=1714888517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab147fadaafe67368e9e9f95bb10e4438982760_b97202f6-118f-49af-9b5b-b83b71b6c37b.webp?v=1714888517","width":2000},{"alt":null,"id":23889680105571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d115b3a3edc3e64fe71a897656747bd66f74529_c721ad6e-ace5-4c86-ab11-b9e05dc487fe.webp?v=1714888519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d115b3a3edc3e64fe71a897656747bd66f74529_c721ad6e-ace5-4c86-ab11-b9e05dc487fe.webp?v=1714888519","width":2000},{"alt":null,"id":23889680564323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a47c19fa147a24cf32d573bcc4835fac7bb6e59_505d801b-b132-40bc-9510-911117b98c7d.webp?v=1714888521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a47c19fa147a24cf32d573bcc4835fac7bb6e59_505d801b-b132-40bc-9510-911117b98c7d.webp?v=1714888521","width":2000},{"alt":null,"id":23889680924771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c89cd11fce5a1e4a63a2cbfbb505982516ccdfef_36f45cb1-dc6b-4caa-ae5a-f6ff0a9c0aac.webp?v=1714888524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c89cd11fce5a1e4a63a2cbfbb505982516ccdfef_36f45cb1-dc6b-4caa-ae5a-f6ff0a9c0aac.webp?v=1714888524","width":2000},{"alt":null,"id":23889681449059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f141bd399b7b762e9359c99d59091473d5fe80_f56532d6-b9d7-4dd7-abe6-f090f79af0d9.webp?v=1714888526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f141bd399b7b762e9359c99d59091473d5fe80_f56532d6-b9d7-4dd7-abe6-f090f79af0d9.webp?v=1714888526","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41902973747299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31484383232099,"product_id":7413982003299,"position":1,"created_at":"2024-05-05T13:55:05+08:00","updated_at":"2024-05-05T13:55:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c600f2e43c9e6d11482f4a6597db72ddca24a259_6a8fbcd4-c8ae-4758-b5fe-e15f485ebe1c.webp?v=1714888505","variant_ids":[41902973747299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"MPB0122824-PB66","featured_media":{"alt":null,"id":23889677156451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c600f2e43c9e6d11482f4a6597db72ddca24a259_6a8fbcd4-c8ae-4758-b5fe-e15f485ebe1c.webp?v=1714888505"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902973812835,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31484387491939,"product_id":7413982003299,"position":10,"created_at":"2024-05-05T13:55:26+08:00","updated_at":"2024-05-05T13:55:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f141bd399b7b762e9359c99d59091473d5fe80_f56532d6-b9d7-4dd7-abe6-f090f79af0d9.webp?v=1714888526","variant_ids":[41902973812835]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"MPB0122804-PB66","featured_media":{"alt":null,"id":23889681449059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f141bd399b7b762e9359c99d59091473d5fe80_f56532d6-b9d7-4dd7-abe6-f090f79af0d9.webp?v=1714888526"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902974206051,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31484385722467,"product_id":7413982003299,"position":6,"created_at":"2024-05-05T13:55:17+08:00","updated_at":"2024-05-05T13:55:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab147fadaafe67368e9e9f95bb10e4438982760_b97202f6-118f-49af-9b5b-b83b71b6c37b.webp?v=1714888517","variant_ids":[41902974206051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"MPB01228J5-PB66","featured_media":{"alt":null,"id":23889679614051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab147fadaafe67368e9e9f95bb10e4438982760_b97202f6-118f-49af-9b5b-b83b71b6c37b.webp?v=1714888517"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41902973747299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31484383232099,"product_id":7413982003299,"position":1,"created_at":"2024-05-05T13:55:05+08:00","updated_at":"2024-05-05T13:55:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c600f2e43c9e6d11482f4a6597db72ddca24a259_6a8fbcd4-c8ae-4758-b5fe-e15f485ebe1c.webp?v=1714888505","variant_ids":[41902973747299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"MPB0122824-PB66","featured_media":{"alt":null,"id":23889677156451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c600f2e43c9e6d11482f4a6597db72ddca24a259_6a8fbcd4-c8ae-4758-b5fe-e15f485ebe1c.webp?v=1714888505"}},"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: "停產" }