$product = {"id":7408512794723,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列","handle":"iphone-12-mini-mod-nx-printable-pb44","description":null,"published_at":"2024-06-11T16:39:20+08:00","created_at":"2024-05-03T15:41:14+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41886331273315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31472468230243,"product_id":7408512794723,"position":4,"created_at":"2024-05-03T15:41:24+08:00","updated_at":"2024-05-03T15:41:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd2870f31923251f8cebf1a8b95839ff458d1914_0d7c3cca-b7e8-485e-aa55-b463452f0466.webp?v=1714722084","variant_ids":[41886331273315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-PB44","featured_media":{"alt":null,"id":23877385486435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd2870f31923251f8cebf1a8b95839ff458d1914_0d7c3cca-b7e8-485e-aa55-b463452f0466.webp?v=1714722084"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866e903ed8054a442ae869f3729563b1b1378c0e_e37f9423-d8ae-4421-8386-0130e97f67fd.webp?v=1714722076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8969a381dafb4b13e96e4747b783b66743ae5624_e6aa0d58-02d5-4f14-8f1a-fc2bf0dd3d39.webp?v=1714722079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cd809ea43d7607ddab09c5adfb23ef6f3ed3bd_b8b53305-fd49-4890-8391-bf5590e11d99.webp?v=1714722082","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd2870f31923251f8cebf1a8b95839ff458d1914_0d7c3cca-b7e8-485e-aa55-b463452f0466.webp?v=1714722084","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4184c721068bedd3dc7661919a28927ae1d138c5_60162d3e-0790-4965-998b-6aeb79821f61.webp?v=1714722087","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4277af1265b303a34a59ad43bfc16cc06b37c910_3ae49ea1-7f05-4c05-854a-f6f4c3badde7.webp?v=1714722089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d17d35443e81f96e682dfe98f6c19e590f9b8b6_d5ccf674-9fed-48d2-ab86-1ae671a2a1b0.webp?v=1714722091","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e4e706f5550fd1565da8e4c54089e5d666ccf5_22b49124-9440-483e-9a5a-0879e7c64843.webp?v=1714722094","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77b4c05dbebf44d9a0445dd390ddd1dfa3f06184_e8fe2202-9eba-42cf-a687-65dc34dbe247.webp?v=1714722096","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2278acf5e6f467b31260c9f4aae806333f08cc3a_08bf10cb-fb02-4898-a6f1-e616c054ab75.webp?v=1714722098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d21bcb635a4fa63e546753a5355be20d3c78044_02664e6b-1a69-4133-b543-e841765a9edd.webp?v=1714722101"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866e903ed8054a442ae869f3729563b1b1378c0e_e37f9423-d8ae-4421-8386-0130e97f67fd.webp?v=1714722076","options":["color"],"media":[{"alt":null,"id":23877383684195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866e903ed8054a442ae869f3729563b1b1378c0e_e37f9423-d8ae-4421-8386-0130e97f67fd.webp?v=1714722076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866e903ed8054a442ae869f3729563b1b1378c0e_e37f9423-d8ae-4421-8386-0130e97f67fd.webp?v=1714722076","width":2000},{"alt":null,"id":23877384339555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8969a381dafb4b13e96e4747b783b66743ae5624_e6aa0d58-02d5-4f14-8f1a-fc2bf0dd3d39.webp?v=1714722079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8969a381dafb4b13e96e4747b783b66743ae5624_e6aa0d58-02d5-4f14-8f1a-fc2bf0dd3d39.webp?v=1714722079","width":2000},{"alt":null,"id":23877384929379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cd809ea43d7607ddab09c5adfb23ef6f3ed3bd_b8b53305-fd49-4890-8391-bf5590e11d99.webp?v=1714722082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cd809ea43d7607ddab09c5adfb23ef6f3ed3bd_b8b53305-fd49-4890-8391-bf5590e11d99.webp?v=1714722082","width":2000},{"alt":null,"id":23877385486435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd2870f31923251f8cebf1a8b95839ff458d1914_0d7c3cca-b7e8-485e-aa55-b463452f0466.webp?v=1714722084"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd2870f31923251f8cebf1a8b95839ff458d1914_0d7c3cca-b7e8-485e-aa55-b463452f0466.webp?v=1714722084","width":2000},{"alt":null,"id":23877386174563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4184c721068bedd3dc7661919a28927ae1d138c5_60162d3e-0790-4965-998b-6aeb79821f61.webp?v=1714722087"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4184c721068bedd3dc7661919a28927ae1d138c5_60162d3e-0790-4965-998b-6aeb79821f61.webp?v=1714722087","width":2000},{"alt":null,"id":23877386731619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4277af1265b303a34a59ad43bfc16cc06b37c910_3ae49ea1-7f05-4c05-854a-f6f4c3badde7.webp?v=1714722089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4277af1265b303a34a59ad43bfc16cc06b37c910_3ae49ea1-7f05-4c05-854a-f6f4c3badde7.webp?v=1714722089","width":2000},{"alt":null,"id":23877387288675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d17d35443e81f96e682dfe98f6c19e590f9b8b6_d5ccf674-9fed-48d2-ab86-1ae671a2a1b0.webp?v=1714722091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d17d35443e81f96e682dfe98f6c19e590f9b8b6_d5ccf674-9fed-48d2-ab86-1ae671a2a1b0.webp?v=1714722091","width":2000},{"alt":null,"id":23877387845731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e4e706f5550fd1565da8e4c54089e5d666ccf5_22b49124-9440-483e-9a5a-0879e7c64843.webp?v=1714722094"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55e4e706f5550fd1565da8e4c54089e5d666ccf5_22b49124-9440-483e-9a5a-0879e7c64843.webp?v=1714722094","width":2000},{"alt":null,"id":23877388402787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77b4c05dbebf44d9a0445dd390ddd1dfa3f06184_e8fe2202-9eba-42cf-a687-65dc34dbe247.webp?v=1714722096"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77b4c05dbebf44d9a0445dd390ddd1dfa3f06184_e8fe2202-9eba-42cf-a687-65dc34dbe247.webp?v=1714722096","width":2000},{"alt":null,"id":23877388927075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2278acf5e6f467b31260c9f4aae806333f08cc3a_08bf10cb-fb02-4898-a6f1-e616c054ab75.webp?v=1714722098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2278acf5e6f467b31260c9f4aae806333f08cc3a_08bf10cb-fb02-4898-a6f1-e616c054ab75.webp?v=1714722098","width":2000},{"alt":null,"id":23877389615203,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d21bcb635a4fa63e546753a5355be20d3c78044_02664e6b-1a69-4133-b543-e841765a9edd.webp?v=1714722101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d21bcb635a4fa63e546753a5355be20d3c78044_02664e6b-1a69-4133-b543-e841765a9edd.webp?v=1714722101","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886331273315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31472468230243,"product_id":7408512794723,"position":4,"created_at":"2024-05-03T15:41:24+08:00","updated_at":"2024-05-03T15:41:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd2870f31923251f8cebf1a8b95839ff458d1914_0d7c3cca-b7e8-485e-aa55-b463452f0466.webp?v=1714722084","variant_ids":[41886331273315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-PB44","featured_media":{"alt":null,"id":23877385486435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd2870f31923251f8cebf1a8b95839ff458d1914_0d7c3cca-b7e8-485e-aa55-b463452f0466.webp?v=1714722084"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886331273315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31472468230243,"product_id":7408512794723,"position":4,"created_at":"2024-05-03T15:41:24+08:00","updated_at":"2024-05-03T15:41:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd2870f31923251f8cebf1a8b95839ff458d1914_0d7c3cca-b7e8-485e-aa55-b463452f0466.webp?v=1714722084","variant_ids":[41886331273315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-PB44","featured_media":{"alt":null,"id":23877385486435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd2870f31923251f8cebf1a8b95839ff458d1914_0d7c3cca-b7e8-485e-aa55-b463452f0466.webp?v=1714722084"}},"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: "停產" }