$product = {"id":7407645622371,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo","handle":"iphone-14-plus-mod-nx-printable-pb100","description":null,"published_at":"2024-06-11T16:21:28+08:00","created_at":"2024-05-03T10:36:40+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 14 Plus","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":41877120319587,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470143209571,"product_id":7407645622371,"position":8,"created_at":"2024-05-03T10:37:01+08:00","updated_at":"2024-05-03T10:37:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927b6171389b33f24a8b9847877a9ce44425f1f4_76851c06-f420-48f2-bc9e-af4acbdcb4a4.webp?v=1714703821","variant_ids":[41877120319587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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":"NPB0126124-PB100","featured_media":{"alt":null,"id":23875046146147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927b6171389b33f24a8b9847877a9ce44425f1f4_76851c06-f420-48f2-bc9e-af4acbdcb4a4.webp?v=1714703821"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aad1375f848086ad16a1d72a95f0d875c10be38_a773035e-a2d9-4107-a148-096ffabd611e.webp?v=1714703803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eacd5a2b870c9d37d06e07c10939df01328d2c7_29d789f0-c33f-4998-83db-ce830f2818de.webp?v=1714703805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19ea08a19086cd53a9181f0a09f2fe57860111a_ec57bfda-de14-4fdf-af87-5e5a6d39b4a1.webp?v=1714703808","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1298e37c3bf08dd7e810148efc4e23b7ba54042b_1576070a-b1d1-40d1-b330-162192f137a1.webp?v=1714703811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741e8b9bd79054829d3e160cf33076e1fd954202_c0ef337a-9c46-4017-8f70-acdfd7893f92.webp?v=1714703813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a352e4ba55f316e47938baf437cd3f7ec62323c1_20f50294-07ff-487a-8dd5-702388f5119d.webp?v=1714703816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2cab4e789a2c93889753343aa130fd701eae2d9_4a9cb556-4f32-405f-a295-c06121e475ce.webp?v=1714703818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927b6171389b33f24a8b9847877a9ce44425f1f4_76851c06-f420-48f2-bc9e-af4acbdcb4a4.webp?v=1714703821","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/632691f15ca09ec7ebd124a3db5046fcc05aba0e_5c007adc-2f00-46a9-8582-ebcebf111fe3.webp?v=1714703824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d04346d7f3fb86b590999c2ac1eebb77f3f21d7_4645fbb0-df96-438b-b544-4ad5ed336faa.webp?v=1714703827"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aad1375f848086ad16a1d72a95f0d875c10be38_a773035e-a2d9-4107-a148-096ffabd611e.webp?v=1714703803","options":["color"],"media":[{"alt":null,"id":23875042148451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aad1375f848086ad16a1d72a95f0d875c10be38_a773035e-a2d9-4107-a148-096ffabd611e.webp?v=1714703803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aad1375f848086ad16a1d72a95f0d875c10be38_a773035e-a2d9-4107-a148-096ffabd611e.webp?v=1714703803","width":2000},{"alt":null,"id":23875043164259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eacd5a2b870c9d37d06e07c10939df01328d2c7_29d789f0-c33f-4998-83db-ce830f2818de.webp?v=1714703805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eacd5a2b870c9d37d06e07c10939df01328d2c7_29d789f0-c33f-4998-83db-ce830f2818de.webp?v=1714703805","width":2000},{"alt":null,"id":23875043524707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19ea08a19086cd53a9181f0a09f2fe57860111a_ec57bfda-de14-4fdf-af87-5e5a6d39b4a1.webp?v=1714703808"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19ea08a19086cd53a9181f0a09f2fe57860111a_ec57bfda-de14-4fdf-af87-5e5a6d39b4a1.webp?v=1714703808","width":2000},{"alt":null,"id":23875044048995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1298e37c3bf08dd7e810148efc4e23b7ba54042b_1576070a-b1d1-40d1-b330-162192f137a1.webp?v=1714703811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1298e37c3bf08dd7e810148efc4e23b7ba54042b_1576070a-b1d1-40d1-b330-162192f137a1.webp?v=1714703811","width":2000},{"alt":null,"id":23875044507747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741e8b9bd79054829d3e160cf33076e1fd954202_c0ef337a-9c46-4017-8f70-acdfd7893f92.webp?v=1714703813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741e8b9bd79054829d3e160cf33076e1fd954202_c0ef337a-9c46-4017-8f70-acdfd7893f92.webp?v=1714703813","width":2000},{"alt":null,"id":23875045261411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a352e4ba55f316e47938baf437cd3f7ec62323c1_20f50294-07ff-487a-8dd5-702388f5119d.webp?v=1714703816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a352e4ba55f316e47938baf437cd3f7ec62323c1_20f50294-07ff-487a-8dd5-702388f5119d.webp?v=1714703816","width":2000},{"alt":null,"id":23875045589091,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2cab4e789a2c93889753343aa130fd701eae2d9_4a9cb556-4f32-405f-a295-c06121e475ce.webp?v=1714703818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2cab4e789a2c93889753343aa130fd701eae2d9_4a9cb556-4f32-405f-a295-c06121e475ce.webp?v=1714703818","width":2000},{"alt":null,"id":23875046146147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927b6171389b33f24a8b9847877a9ce44425f1f4_76851c06-f420-48f2-bc9e-af4acbdcb4a4.webp?v=1714703821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927b6171389b33f24a8b9847877a9ce44425f1f4_76851c06-f420-48f2-bc9e-af4acbdcb4a4.webp?v=1714703821","width":2000},{"alt":null,"id":23875046572131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/632691f15ca09ec7ebd124a3db5046fcc05aba0e_5c007adc-2f00-46a9-8582-ebcebf111fe3.webp?v=1714703824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/632691f15ca09ec7ebd124a3db5046fcc05aba0e_5c007adc-2f00-46a9-8582-ebcebf111fe3.webp?v=1714703824","width":2000},{"alt":null,"id":23875046834275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d04346d7f3fb86b590999c2ac1eebb77f3f21d7_4645fbb0-df96-438b-b544-4ad5ed336faa.webp?v=1714703827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d04346d7f3fb86b590999c2ac1eebb77f3f21d7_4645fbb0-df96-438b-b544-4ad5ed336faa.webp?v=1714703827","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41877120319587,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470143209571,"product_id":7407645622371,"position":8,"created_at":"2024-05-03T10:37:01+08:00","updated_at":"2024-05-03T10:37:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927b6171389b33f24a8b9847877a9ce44425f1f4_76851c06-f420-48f2-bc9e-af4acbdcb4a4.webp?v=1714703821","variant_ids":[41877120319587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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":"NPB0126124-PB100","featured_media":{"alt":null,"id":23875046146147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927b6171389b33f24a8b9847877a9ce44425f1f4_76851c06-f420-48f2-bc9e-af4acbdcb4a4.webp?v=1714703821"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41877120319587,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470143209571,"product_id":7407645622371,"position":8,"created_at":"2024-05-03T10:37:01+08:00","updated_at":"2024-05-03T10:37:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927b6171389b33f24a8b9847877a9ce44425f1f4_76851c06-f420-48f2-bc9e-af4acbdcb4a4.webp?v=1714703821","variant_ids":[41877120319587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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":"NPB0126124-PB100","featured_media":{"alt":null,"id":23875046146147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927b6171389b33f24a8b9847877a9ce44425f1f4_76851c06-f420-48f2-bc9e-af4acbdcb4a4.webp?v=1714703821"}},"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: "停產" }