$product = {"id":7411110379619,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 千年鷹-線條白","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb14","description":null,"published_at":"2024-06-11T17:36:34+08:00","created_at":"2024-05-04T22:44:45+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 15 Plus","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":41895071973475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479538319459,"product_id":7411110379619,"position":4,"created_at":"2024-05-04T22:44:54+08:00","updated_at":"2024-05-04T22:44:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8d2c017e66af4dc99f6e4dd4fee6d03f3b5cb4f_ce73393a-b061-4ac9-8bed-bac0fa6c0b45.webp?v=1714833894","variant_ids":[41895071973475]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 千年鷹-線條白 - 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":"MPB0129624-PB14","featured_media":{"alt":null,"id":23884785975395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8d2c017e66af4dc99f6e4dd4fee6d03f3b5cb4f_ce73393a-b061-4ac9-8bed-bac0fa6c0b45.webp?v=1714833894"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895072104547,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479540416611,"product_id":7411110379619,"position":8,"created_at":"2024-05-04T22:45:03+08:00","updated_at":"2024-05-04T22:45:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e35838a09c41252566bf3dafdf6cd78cd07c651_7542b521-4a1b-4f69-b20d-342bcc672404.webp?v=1714833903","variant_ids":[41895072104547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 千年鷹-線條白 - 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":"MPB0129657-PB14","featured_media":{"alt":null,"id":23884788105315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e35838a09c41252566bf3dafdf6cd78cd07c651_7542b521-4a1b-4f69-b20d-342bcc672404.webp?v=1714833903"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7e4ce9a022eac8f20394f333001246936d1c080_64f2809a-aeda-4d24-9ce3-0e2c09d41c95.webp?v=1714833887","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acf11b78c58c4dc7c187d4f75073724a717ce24_8390ee53-84e5-459d-8fea-6ed342654721.webp?v=1714833889","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec0a0095eb64e36b1d9d1755149f2c1b8c181af_f75e77e0-312b-4147-bddf-a457b98fbe04.webp?v=1714833892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8d2c017e66af4dc99f6e4dd4fee6d03f3b5cb4f_ce73393a-b061-4ac9-8bed-bac0fa6c0b45.webp?v=1714833894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dc7f822f3021c693265c28e3e6b8ca1802896b0_c899ac79-0676-4486-b239-41300be57132.webp?v=1714833896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da0f27d967d47b4a67c296c3b268600fd72fbdaa_76cdd52d-c1d0-4e6d-bcf7-5cc61a345c7c.webp?v=1714833898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bff55ef29d2eb8a89fb6ba13316195a36562503d_7d80e6c4-f49c-4d02-b9d1-dcea618a0fbc.webp?v=1714833900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e35838a09c41252566bf3dafdf6cd78cd07c651_7542b521-4a1b-4f69-b20d-342bcc672404.webp?v=1714833903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096fe80ba256aad5c6352a05b3d397973e1ee452_de81f9ec-4a19-4c67-a766-c7725efad35d.webp?v=1714833905","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f05c64ca422c899157f476fea26db0e598c645a5_10951c95-55b1-404f-8298-48363fbdbf06.webp?v=1714833907"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7e4ce9a022eac8f20394f333001246936d1c080_64f2809a-aeda-4d24-9ce3-0e2c09d41c95.webp?v=1714833887","options":["color"],"media":[{"alt":null,"id":23884784566371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7e4ce9a022eac8f20394f333001246936d1c080_64f2809a-aeda-4d24-9ce3-0e2c09d41c95.webp?v=1714833887"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7e4ce9a022eac8f20394f333001246936d1c080_64f2809a-aeda-4d24-9ce3-0e2c09d41c95.webp?v=1714833887","width":2000},{"alt":null,"id":23884785057891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acf11b78c58c4dc7c187d4f75073724a717ce24_8390ee53-84e5-459d-8fea-6ed342654721.webp?v=1714833889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1acf11b78c58c4dc7c187d4f75073724a717ce24_8390ee53-84e5-459d-8fea-6ed342654721.webp?v=1714833889","width":2000},{"alt":null,"id":23884785582179,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec0a0095eb64e36b1d9d1755149f2c1b8c181af_f75e77e0-312b-4147-bddf-a457b98fbe04.webp?v=1714833892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec0a0095eb64e36b1d9d1755149f2c1b8c181af_f75e77e0-312b-4147-bddf-a457b98fbe04.webp?v=1714833892","width":2000},{"alt":null,"id":23884785975395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8d2c017e66af4dc99f6e4dd4fee6d03f3b5cb4f_ce73393a-b061-4ac9-8bed-bac0fa6c0b45.webp?v=1714833894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8d2c017e66af4dc99f6e4dd4fee6d03f3b5cb4f_ce73393a-b061-4ac9-8bed-bac0fa6c0b45.webp?v=1714833894","width":2000},{"alt":null,"id":23884786466915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dc7f822f3021c693265c28e3e6b8ca1802896b0_c899ac79-0676-4486-b239-41300be57132.webp?v=1714833896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dc7f822f3021c693265c28e3e6b8ca1802896b0_c899ac79-0676-4486-b239-41300be57132.webp?v=1714833896","width":2000},{"alt":null,"id":23884786892899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da0f27d967d47b4a67c296c3b268600fd72fbdaa_76cdd52d-c1d0-4e6d-bcf7-5cc61a345c7c.webp?v=1714833898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da0f27d967d47b4a67c296c3b268600fd72fbdaa_76cdd52d-c1d0-4e6d-bcf7-5cc61a345c7c.webp?v=1714833898","width":2000},{"alt":null,"id":23884787351651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bff55ef29d2eb8a89fb6ba13316195a36562503d_7d80e6c4-f49c-4d02-b9d1-dcea618a0fbc.webp?v=1714833900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bff55ef29d2eb8a89fb6ba13316195a36562503d_7d80e6c4-f49c-4d02-b9d1-dcea618a0fbc.webp?v=1714833900","width":2000},{"alt":null,"id":23884788105315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e35838a09c41252566bf3dafdf6cd78cd07c651_7542b521-4a1b-4f69-b20d-342bcc672404.webp?v=1714833903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e35838a09c41252566bf3dafdf6cd78cd07c651_7542b521-4a1b-4f69-b20d-342bcc672404.webp?v=1714833903","width":2000},{"alt":null,"id":23884788695139,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096fe80ba256aad5c6352a05b3d397973e1ee452_de81f9ec-4a19-4c67-a766-c7725efad35d.webp?v=1714833905"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096fe80ba256aad5c6352a05b3d397973e1ee452_de81f9ec-4a19-4c67-a766-c7725efad35d.webp?v=1714833905","width":2000},{"alt":null,"id":23884789219427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f05c64ca422c899157f476fea26db0e598c645a5_10951c95-55b1-404f-8298-48363fbdbf06.webp?v=1714833907"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f05c64ca422c899157f476fea26db0e598c645a5_10951c95-55b1-404f-8298-48363fbdbf06.webp?v=1714833907","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895071973475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479538319459,"product_id":7411110379619,"position":4,"created_at":"2024-05-04T22:44:54+08:00","updated_at":"2024-05-04T22:44:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8d2c017e66af4dc99f6e4dd4fee6d03f3b5cb4f_ce73393a-b061-4ac9-8bed-bac0fa6c0b45.webp?v=1714833894","variant_ids":[41895071973475]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 千年鷹-線條白 - 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":"MPB0129624-PB14","featured_media":{"alt":null,"id":23884785975395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8d2c017e66af4dc99f6e4dd4fee6d03f3b5cb4f_ce73393a-b061-4ac9-8bed-bac0fa6c0b45.webp?v=1714833894"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895072104547,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479540416611,"product_id":7411110379619,"position":8,"created_at":"2024-05-04T22:45:03+08:00","updated_at":"2024-05-04T22:45:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e35838a09c41252566bf3dafdf6cd78cd07c651_7542b521-4a1b-4f69-b20d-342bcc672404.webp?v=1714833903","variant_ids":[41895072104547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 千年鷹-線條白 - 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":"MPB0129657-PB14","featured_media":{"alt":null,"id":23884788105315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e35838a09c41252566bf3dafdf6cd78cd07c651_7542b521-4a1b-4f69-b20d-342bcc672404.webp?v=1714833903"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895071973475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479538319459,"product_id":7411110379619,"position":4,"created_at":"2024-05-04T22:44:54+08:00","updated_at":"2024-05-04T22:44:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8d2c017e66af4dc99f6e4dd4fee6d03f3b5cb4f_ce73393a-b061-4ac9-8bed-bac0fa6c0b45.webp?v=1714833894","variant_ids":[41895071973475]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 千年鷹-線條白 - 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":"MPB0129624-PB14","featured_media":{"alt":null,"id":23884785975395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8d2c017e66af4dc99f6e4dd4fee6d03f3b5cb4f_ce73393a-b061-4ac9-8bed-bac0fa6c0b45.webp?v=1714833894"}},"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: "停產" }