$product = {"id":7411295125603,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - The Powerpuff Girls - 一天又平安的過去了","handle":"iphone-14-plus-mod-nx-magsafe-printable-sr01","description":null,"published_at":"2024-06-11T17:41:05+08:00","created_at":"2024-05-05T00:01:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區The Powerpuff Girls","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-the-power-puff-girls","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-the-power-puff-girls","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":41897082388579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480069521507,"product_id":7411295125603,"position":4,"created_at":"2024-05-05T00:02:08+08:00","updated_at":"2024-05-05T00:02:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/864062194b95f3aebe6b9fedaeb45093a017996b_7da9a746-e486-45ae-8479-0ff420ac6218.webp?v=1714838528","variant_ids":[41897082388579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - The Powerpuff Girls - 一天又平安的過去了 - 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":"MPB0126124-SR01","featured_media":{"alt":null,"id":23885320224867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/864062194b95f3aebe6b9fedaeb45093a017996b_7da9a746-e486-45ae-8479-0ff420ac6218.webp?v=1714838528"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c10644b35eb13e82922f2214d0a80429e470aae_42ec5d28-5fc8-40a8-9ab1-9db20b835828.webp?v=1714838520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccdec115d3efb6157aeb56cdbfe7a1763d333993_6e711a07-22f8-4e81-80d0-42c6fa7ec0af.webp?v=1714838523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f733bd4900d5c298e859f4f33837f45df286f860_d53e2f69-aa4e-4a8d-a607-e73abaa0f989.webp?v=1714838526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/864062194b95f3aebe6b9fedaeb45093a017996b_7da9a746-e486-45ae-8479-0ff420ac6218.webp?v=1714838528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb2e11fbecb821c673aaee9cafc70495bdd41153_20fd0b6d-b1b1-49aa-b47a-274b0f72f20f.webp?v=1714838531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e8c6060528e94349cb9052dad748ecdd5f6d7b_994d7e26-227b-412b-84be-15922cd8afeb.webp?v=1714838533","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5ee6668120840a8a9ec5a0c46838a55372d6683_bac545f5-c5d4-4246-8596-43b18e85c06b.webp?v=1714838536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d4234c8ecff75808d46c58a9a46982450b92851_11eddff7-3190-48cd-beca-1be32dd74966.webp?v=1714838538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caaeb1455a30e6454b3beae8822936017581d49c_edf49807-370e-4392-bf62-506dde5cda7d.webp?v=1714838540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baafdb0c6055c8a0dec3ca35938758e9c38f5388_c96b6a4d-e2c2-4087-9d4a-74fd010f86e2.webp?v=1714838543"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c10644b35eb13e82922f2214d0a80429e470aae_42ec5d28-5fc8-40a8-9ab1-9db20b835828.webp?v=1714838520","options":["color"],"media":[{"alt":null,"id":23885318815843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c10644b35eb13e82922f2214d0a80429e470aae_42ec5d28-5fc8-40a8-9ab1-9db20b835828.webp?v=1714838520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c10644b35eb13e82922f2214d0a80429e470aae_42ec5d28-5fc8-40a8-9ab1-9db20b835828.webp?v=1714838520","width":2000},{"alt":null,"id":23885319209059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccdec115d3efb6157aeb56cdbfe7a1763d333993_6e711a07-22f8-4e81-80d0-42c6fa7ec0af.webp?v=1714838523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccdec115d3efb6157aeb56cdbfe7a1763d333993_6e711a07-22f8-4e81-80d0-42c6fa7ec0af.webp?v=1714838523","width":2000},{"alt":null,"id":23885319831651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f733bd4900d5c298e859f4f33837f45df286f860_d53e2f69-aa4e-4a8d-a607-e73abaa0f989.webp?v=1714838526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f733bd4900d5c298e859f4f33837f45df286f860_d53e2f69-aa4e-4a8d-a607-e73abaa0f989.webp?v=1714838526","width":2000},{"alt":null,"id":23885320224867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/864062194b95f3aebe6b9fedaeb45093a017996b_7da9a746-e486-45ae-8479-0ff420ac6218.webp?v=1714838528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/864062194b95f3aebe6b9fedaeb45093a017996b_7da9a746-e486-45ae-8479-0ff420ac6218.webp?v=1714838528","width":2000},{"alt":null,"id":23885320716387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb2e11fbecb821c673aaee9cafc70495bdd41153_20fd0b6d-b1b1-49aa-b47a-274b0f72f20f.webp?v=1714838531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb2e11fbecb821c673aaee9cafc70495bdd41153_20fd0b6d-b1b1-49aa-b47a-274b0f72f20f.webp?v=1714838531","width":2000},{"alt":null,"id":23885321273443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e8c6060528e94349cb9052dad748ecdd5f6d7b_994d7e26-227b-412b-84be-15922cd8afeb.webp?v=1714838533"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e8c6060528e94349cb9052dad748ecdd5f6d7b_994d7e26-227b-412b-84be-15922cd8afeb.webp?v=1714838533","width":2000},{"alt":null,"id":23885321863267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5ee6668120840a8a9ec5a0c46838a55372d6683_bac545f5-c5d4-4246-8596-43b18e85c06b.webp?v=1714838536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5ee6668120840a8a9ec5a0c46838a55372d6683_bac545f5-c5d4-4246-8596-43b18e85c06b.webp?v=1714838536","width":2000},{"alt":null,"id":23885322420323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d4234c8ecff75808d46c58a9a46982450b92851_11eddff7-3190-48cd-beca-1be32dd74966.webp?v=1714838538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d4234c8ecff75808d46c58a9a46982450b92851_11eddff7-3190-48cd-beca-1be32dd74966.webp?v=1714838538","width":2000},{"alt":null,"id":23885323010147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caaeb1455a30e6454b3beae8822936017581d49c_edf49807-370e-4392-bf62-506dde5cda7d.webp?v=1714838540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caaeb1455a30e6454b3beae8822936017581d49c_edf49807-370e-4392-bf62-506dde5cda7d.webp?v=1714838540","width":2000},{"alt":null,"id":23885323501667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baafdb0c6055c8a0dec3ca35938758e9c38f5388_c96b6a4d-e2c2-4087-9d4a-74fd010f86e2.webp?v=1714838543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baafdb0c6055c8a0dec3ca35938758e9c38f5388_c96b6a4d-e2c2-4087-9d4a-74fd010f86e2.webp?v=1714838543","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897082388579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480069521507,"product_id":7411295125603,"position":4,"created_at":"2024-05-05T00:02:08+08:00","updated_at":"2024-05-05T00:02:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/864062194b95f3aebe6b9fedaeb45093a017996b_7da9a746-e486-45ae-8479-0ff420ac6218.webp?v=1714838528","variant_ids":[41897082388579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - The Powerpuff Girls - 一天又平安的過去了 - 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":"MPB0126124-SR01","featured_media":{"alt":null,"id":23885320224867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/864062194b95f3aebe6b9fedaeb45093a017996b_7da9a746-e486-45ae-8479-0ff420ac6218.webp?v=1714838528"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897082388579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480069521507,"product_id":7411295125603,"position":4,"created_at":"2024-05-05T00:02:08+08:00","updated_at":"2024-05-05T00:02:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/864062194b95f3aebe6b9fedaeb45093a017996b_7da9a746-e486-45ae-8479-0ff420ac6218.webp?v=1714838528","variant_ids":[41897082388579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - The Powerpuff Girls - 一天又平安的過去了 - 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":"MPB0126124-SR01","featured_media":{"alt":null,"id":23885320224867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/864062194b95f3aebe6b9fedaeb45093a017996b_7da9a746-e486-45ae-8479-0ff420ac6218.webp?v=1714838528"}},"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: "停產" }