$product = {"id":7415068098659,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb76","description":null,"published_at":"2024-06-11T17:57:07+08:00","created_at":"2024-05-05T20:16:39+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 12 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":41911530192995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31488075169891,"product_id":7415068098659,"position":11,"created_at":"2024-05-05T20:17:06+08:00","updated_at":"2024-05-05T20:17:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ebd6d7bf6ce26302ea69709d1f697e88761eba_71df447f-146e-4e35-9e4b-ae01b2a08633.webp?v=1714911426","variant_ids":[41911530192995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"MPB0118424-PB76","featured_media":{"alt":null,"id":23893419556963,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ebd6d7bf6ce26302ea69709d1f697e88761eba_71df447f-146e-4e35-9e4b-ae01b2a08633.webp?v=1714911426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/771d55162f82176ff1707d048398433b8bea9010_e259772a-4c3e-4265-b0e1-961b6020b06a.webp?v=1714911403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8bb0b4b94e4bc8fc71f710be23d05b7705ef68_0d087513-7e14-4855-8adc-9dbe6af6eafa.webp?v=1714911405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ba2a41313da768ca900fc7eda3d2a04f7a50be_22b12fa7-62bd-47ec-b56c-3ca743f697a0.webp?v=1714911407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d454c6d145ce479e17feabe77f47787fbb780dd8_66fe53c4-fc02-4422-a947-1380d644c784.webp?v=1714911410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6849ef69e945302d3ecbf2fea14dccc5eaac33ae_ff0ba61b-5384-4804-80f4-e1f60a366fb1.webp?v=1714911412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/673a4aa26bda6e6a9665c46ea43e03b3ebc7d9af_97c2d503-ed37-48f0-b8c2-ec262c402dc2.webp?v=1714911414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54fbf71c5db47046e69fc5fe98de85153d354a2c_3eca2505-1080-4d30-b939-feda5ac08320.webp?v=1714911417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b823c7f2885b07f07c6f36308ad1ca93c959ecf_c917c167-d1bb-4b2c-8c3d-50df32d6b7ef.webp?v=1714911419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9bdc4fd0bc20cc7748b5ceffcdc62f0d1731625_648b2116-1e13-4d45-9acf-ff4359d767a1.webp?v=1714911421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd240c81c96f1070e92640b3e378351506c66d8_2ba4c2ea-e8ec-4045-abd4-176749a30720.webp?v=1714911424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ebd6d7bf6ce26302ea69709d1f697e88761eba_71df447f-146e-4e35-9e4b-ae01b2a08633.webp?v=1714911426"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/771d55162f82176ff1707d048398433b8bea9010_e259772a-4c3e-4265-b0e1-961b6020b06a.webp?v=1714911403","options":["color"],"media":[{"alt":null,"id":23893413068899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/771d55162f82176ff1707d048398433b8bea9010_e259772a-4c3e-4265-b0e1-961b6020b06a.webp?v=1714911403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/771d55162f82176ff1707d048398433b8bea9010_e259772a-4c3e-4265-b0e1-961b6020b06a.webp?v=1714911403","width":2000},{"alt":null,"id":23893414183011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8bb0b4b94e4bc8fc71f710be23d05b7705ef68_0d087513-7e14-4855-8adc-9dbe6af6eafa.webp?v=1714911405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8bb0b4b94e4bc8fc71f710be23d05b7705ef68_0d087513-7e14-4855-8adc-9dbe6af6eafa.webp?v=1714911405","width":2000},{"alt":null,"id":23893414707299,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ba2a41313da768ca900fc7eda3d2a04f7a50be_22b12fa7-62bd-47ec-b56c-3ca743f697a0.webp?v=1714911407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ba2a41313da768ca900fc7eda3d2a04f7a50be_22b12fa7-62bd-47ec-b56c-3ca743f697a0.webp?v=1714911407","width":2000},{"alt":null,"id":23893415329891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d454c6d145ce479e17feabe77f47787fbb780dd8_66fe53c4-fc02-4422-a947-1380d644c784.webp?v=1714911410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d454c6d145ce479e17feabe77f47787fbb780dd8_66fe53c4-fc02-4422-a947-1380d644c784.webp?v=1714911410","width":2000},{"alt":null,"id":23893416116323,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6849ef69e945302d3ecbf2fea14dccc5eaac33ae_ff0ba61b-5384-4804-80f4-e1f60a366fb1.webp?v=1714911412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6849ef69e945302d3ecbf2fea14dccc5eaac33ae_ff0ba61b-5384-4804-80f4-e1f60a366fb1.webp?v=1714911412","width":2000},{"alt":null,"id":23893416640611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/673a4aa26bda6e6a9665c46ea43e03b3ebc7d9af_97c2d503-ed37-48f0-b8c2-ec262c402dc2.webp?v=1714911414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/673a4aa26bda6e6a9665c46ea43e03b3ebc7d9af_97c2d503-ed37-48f0-b8c2-ec262c402dc2.webp?v=1714911414","width":2000},{"alt":null,"id":23893417361507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54fbf71c5db47046e69fc5fe98de85153d354a2c_3eca2505-1080-4d30-b939-feda5ac08320.webp?v=1714911417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54fbf71c5db47046e69fc5fe98de85153d354a2c_3eca2505-1080-4d30-b939-feda5ac08320.webp?v=1714911417","width":2000},{"alt":null,"id":23893417918563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b823c7f2885b07f07c6f36308ad1ca93c959ecf_c917c167-d1bb-4b2c-8c3d-50df32d6b7ef.webp?v=1714911419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b823c7f2885b07f07c6f36308ad1ca93c959ecf_c917c167-d1bb-4b2c-8c3d-50df32d6b7ef.webp?v=1714911419","width":2000},{"alt":null,"id":23893418541155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9bdc4fd0bc20cc7748b5ceffcdc62f0d1731625_648b2116-1e13-4d45-9acf-ff4359d767a1.webp?v=1714911421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9bdc4fd0bc20cc7748b5ceffcdc62f0d1731625_648b2116-1e13-4d45-9acf-ff4359d767a1.webp?v=1714911421","width":2000},{"alt":null,"id":23893418999907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd240c81c96f1070e92640b3e378351506c66d8_2ba4c2ea-e8ec-4045-abd4-176749a30720.webp?v=1714911424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd240c81c96f1070e92640b3e378351506c66d8_2ba4c2ea-e8ec-4045-abd4-176749a30720.webp?v=1714911424","width":2000},{"alt":null,"id":23893419556963,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ebd6d7bf6ce26302ea69709d1f697e88761eba_71df447f-146e-4e35-9e4b-ae01b2a08633.webp?v=1714911426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ebd6d7bf6ce26302ea69709d1f697e88761eba_71df447f-146e-4e35-9e4b-ae01b2a08633.webp?v=1714911426","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911530192995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31488075169891,"product_id":7415068098659,"position":11,"created_at":"2024-05-05T20:17:06+08:00","updated_at":"2024-05-05T20:17:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ebd6d7bf6ce26302ea69709d1f697e88761eba_71df447f-146e-4e35-9e4b-ae01b2a08633.webp?v=1714911426","variant_ids":[41911530192995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"MPB0118424-PB76","featured_media":{"alt":null,"id":23893419556963,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ebd6d7bf6ce26302ea69709d1f697e88761eba_71df447f-146e-4e35-9e4b-ae01b2a08633.webp?v=1714911426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911530192995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31488075169891,"product_id":7415068098659,"position":11,"created_at":"2024-05-05T20:17:06+08:00","updated_at":"2024-05-05T20:17:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ebd6d7bf6ce26302ea69709d1f697e88761eba_71df447f-146e-4e35-9e4b-ae01b2a08633.webp?v=1714911426","variant_ids":[41911530192995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"MPB0118424-PB76","featured_media":{"alt":null,"id":23893419556963,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ebd6d7bf6ce26302ea69709d1f697e88761eba_71df447f-146e-4e35-9e4b-ae01b2a08633.webp?v=1714911426"}},"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: "停產" }