$product = {"id":7414264692835,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb07","description":null,"published_at":"2024-06-11T17:50:21+08:00","created_at":"2024-05-05T14:19:11+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":41905282973795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485035577443,"product_id":7414264692835,"position":9,"created_at":"2024-05-05T14:19:32+08:00","updated_at":"2024-05-05T14:19:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e857a988db1b1dbc12c60b4d949fe6cee72f20_25144e01-03ea-4dfe-8de9-8d8fffdb0384.webp?v=1714889972","variant_ids":[41905282973795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23890350866531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e857a988db1b1dbc12c60b4d949fe6cee72f20_25144e01-03ea-4dfe-8de9-8d8fffdb0384.webp?v=1714889972"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905283137635,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485037707363,"product_id":7414264692835,"position":10,"created_at":"2024-05-05T14:19:34+08:00","updated_at":"2024-05-05T14:19:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ce6fe6b929dc5e20c88756b4ec2ce7d01da277_97537bae-79ea-4f9b-94ad-ec3fb2a618a5.webp?v=1714889974","variant_ids":[41905283137635]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23890353029219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ce6fe6b929dc5e20c88756b4ec2ce7d01da277_97537bae-79ea-4f9b-94ad-ec3fb2a618a5.webp?v=1714889974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905283858531,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485027975267,"product_id":7414264692835,"position":4,"created_at":"2024-05-05T14:19:20+08:00","updated_at":"2024-05-05T14:19:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c01f3e3f1f2069c37f994a06acf8e8aa9ab421a_88eb1396-5bd0-4489-a8c6-4cdc2391aa9f.webp?v=1714889960","variant_ids":[41905283858531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23890342707299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c01f3e3f1f2069c37f994a06acf8e8aa9ab421a_88eb1396-5bd0-4489-a8c6-4cdc2391aa9f.webp?v=1714889960"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1fd8ae336d2e909357a0d23e4d94852852d59a_ab089a8a-1b89-4dc7-a848-2d5027b5f836.webp?v=1714889953","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/254e2df4e9948389fc12cd623825d26d97012b04_b6001b80-04ab-4bd5-8490-25f07c25c440.webp?v=1714889955","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49f3cdd4cfec97f19385561247c0caa9a65602a5_d91f87f8-e142-41fa-8164-1036d07275c2.webp?v=1714889958","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c01f3e3f1f2069c37f994a06acf8e8aa9ab421a_88eb1396-5bd0-4489-a8c6-4cdc2391aa9f.webp?v=1714889960","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d3d63a88b4590d82bba7c0b8c1831fdc20cbca5_e15fd9af-77de-4187-8891-374d05c577d0.webp?v=1714889962","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a68c0eba58d11b581e575c842c56d4e2fba4b667_51571da8-4618-446a-afe1-b5ff4393e085.webp?v=1714889965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f8e016acb6331417c8208984a90afe419a134af_e0aad206-817e-4cc5-acaa-35cce6da1fea.webp?v=1714889967","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3a7321cabfb260dbbc63bd0a09de179e4a64e8b_ac347a9d-db4b-4095-81a6-5c8ce808cfa7.webp?v=1714889969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e857a988db1b1dbc12c60b4d949fe6cee72f20_25144e01-03ea-4dfe-8de9-8d8fffdb0384.webp?v=1714889972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ce6fe6b929dc5e20c88756b4ec2ce7d01da277_97537bae-79ea-4f9b-94ad-ec3fb2a618a5.webp?v=1714889974"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1fd8ae336d2e909357a0d23e4d94852852d59a_ab089a8a-1b89-4dc7-a848-2d5027b5f836.webp?v=1714889953","options":["color"],"media":[{"alt":null,"id":23890338480227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1fd8ae336d2e909357a0d23e4d94852852d59a_ab089a8a-1b89-4dc7-a848-2d5027b5f836.webp?v=1714889953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1fd8ae336d2e909357a0d23e4d94852852d59a_ab089a8a-1b89-4dc7-a848-2d5027b5f836.webp?v=1714889953","width":2000},{"alt":null,"id":23890339987555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/254e2df4e9948389fc12cd623825d26d97012b04_b6001b80-04ab-4bd5-8490-25f07c25c440.webp?v=1714889955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/254e2df4e9948389fc12cd623825d26d97012b04_b6001b80-04ab-4bd5-8490-25f07c25c440.webp?v=1714889955","width":2000},{"alt":null,"id":23890341625955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49f3cdd4cfec97f19385561247c0caa9a65602a5_d91f87f8-e142-41fa-8164-1036d07275c2.webp?v=1714889958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49f3cdd4cfec97f19385561247c0caa9a65602a5_d91f87f8-e142-41fa-8164-1036d07275c2.webp?v=1714889958","width":2000},{"alt":null,"id":23890342707299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c01f3e3f1f2069c37f994a06acf8e8aa9ab421a_88eb1396-5bd0-4489-a8c6-4cdc2391aa9f.webp?v=1714889960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c01f3e3f1f2069c37f994a06acf8e8aa9ab421a_88eb1396-5bd0-4489-a8c6-4cdc2391aa9f.webp?v=1714889960","width":2000},{"alt":null,"id":23890344050787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d3d63a88b4590d82bba7c0b8c1831fdc20cbca5_e15fd9af-77de-4187-8891-374d05c577d0.webp?v=1714889962"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d3d63a88b4590d82bba7c0b8c1831fdc20cbca5_e15fd9af-77de-4187-8891-374d05c577d0.webp?v=1714889962","width":2000},{"alt":null,"id":23890345590883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a68c0eba58d11b581e575c842c56d4e2fba4b667_51571da8-4618-446a-afe1-b5ff4393e085.webp?v=1714889965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a68c0eba58d11b581e575c842c56d4e2fba4b667_51571da8-4618-446a-afe1-b5ff4393e085.webp?v=1714889965","width":2000},{"alt":null,"id":23890347294819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f8e016acb6331417c8208984a90afe419a134af_e0aad206-817e-4cc5-acaa-35cce6da1fea.webp?v=1714889967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f8e016acb6331417c8208984a90afe419a134af_e0aad206-817e-4cc5-acaa-35cce6da1fea.webp?v=1714889967","width":2000},{"alt":null,"id":23890348933219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3a7321cabfb260dbbc63bd0a09de179e4a64e8b_ac347a9d-db4b-4095-81a6-5c8ce808cfa7.webp?v=1714889969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3a7321cabfb260dbbc63bd0a09de179e4a64e8b_ac347a9d-db4b-4095-81a6-5c8ce808cfa7.webp?v=1714889969","width":2000},{"alt":null,"id":23890350866531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e857a988db1b1dbc12c60b4d949fe6cee72f20_25144e01-03ea-4dfe-8de9-8d8fffdb0384.webp?v=1714889972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e857a988db1b1dbc12c60b4d949fe6cee72f20_25144e01-03ea-4dfe-8de9-8d8fffdb0384.webp?v=1714889972","width":2000},{"alt":null,"id":23890353029219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ce6fe6b929dc5e20c88756b4ec2ce7d01da277_97537bae-79ea-4f9b-94ad-ec3fb2a618a5.webp?v=1714889974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ce6fe6b929dc5e20c88756b4ec2ce7d01da277_97537bae-79ea-4f9b-94ad-ec3fb2a618a5.webp?v=1714889974","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41905282973795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485035577443,"product_id":7414264692835,"position":9,"created_at":"2024-05-05T14:19:32+08:00","updated_at":"2024-05-05T14:19:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e857a988db1b1dbc12c60b4d949fe6cee72f20_25144e01-03ea-4dfe-8de9-8d8fffdb0384.webp?v=1714889972","variant_ids":[41905282973795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23890350866531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e857a988db1b1dbc12c60b4d949fe6cee72f20_25144e01-03ea-4dfe-8de9-8d8fffdb0384.webp?v=1714889972"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905283137635,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485037707363,"product_id":7414264692835,"position":10,"created_at":"2024-05-05T14:19:34+08:00","updated_at":"2024-05-05T14:19:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ce6fe6b929dc5e20c88756b4ec2ce7d01da277_97537bae-79ea-4f9b-94ad-ec3fb2a618a5.webp?v=1714889974","variant_ids":[41905283137635]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23890353029219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ce6fe6b929dc5e20c88756b4ec2ce7d01da277_97537bae-79ea-4f9b-94ad-ec3fb2a618a5.webp?v=1714889974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905283858531,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485027975267,"product_id":7414264692835,"position":4,"created_at":"2024-05-05T14:19:20+08:00","updated_at":"2024-05-05T14:19:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c01f3e3f1f2069c37f994a06acf8e8aa9ab421a_88eb1396-5bd0-4489-a8c6-4cdc2391aa9f.webp?v=1714889960","variant_ids":[41905283858531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23890342707299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c01f3e3f1f2069c37f994a06acf8e8aa9ab421a_88eb1396-5bd0-4489-a8c6-4cdc2391aa9f.webp?v=1714889960"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41905282973795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485035577443,"product_id":7414264692835,"position":9,"created_at":"2024-05-05T14:19:32+08:00","updated_at":"2024-05-05T14:19:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e857a988db1b1dbc12c60b4d949fe6cee72f20_25144e01-03ea-4dfe-8de9-8d8fffdb0384.webp?v=1714889972","variant_ids":[41905282973795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23890350866531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e857a988db1b1dbc12c60b4d949fe6cee72f20_25144e01-03ea-4dfe-8de9-8d8fffdb0384.webp?v=1714889972"}},"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: "停產" }