$product = {"id":7369199157347,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 開心小花","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pl65","description":null,"published_at":"2024-06-11T17:31:17+08:00","created_at":"2024-04-23T15:43:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-snoopy","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":41793528594531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31387050016867,"product_id":7369199157347,"position":10,"created_at":"2024-04-23T15:43:43+08:00","updated_at":"2024-04-23T15:43:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feac64ae50a7cec9299853484ae5694beee5397a_c3a9249d-4ea8-4082-9a52-2422c1e61d94.webp?v=1713858223","variant_ids":[41793528594531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 開心小花 - 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":"MPB0123224-PL65","featured_media":{"alt":null,"id":23789288652899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feac64ae50a7cec9299853484ae5694beee5397a_c3a9249d-4ea8-4082-9a52-2422c1e61d94.webp?v=1713858223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793528922211,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31387049328739,"product_id":7369199157347,"position":9,"created_at":"2024-04-23T15:43:40+08:00","updated_at":"2024-04-23T15:43:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76ffce292a49938ca85bb03f2a18637a65cab4f4_9ced68ee-2bda-4d86-93df-5a135149c339.webp?v=1713858220","variant_ids":[41793528922211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 開心小花 - 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":"MPB01232J5-PL65","featured_media":{"alt":null,"id":23789287997539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76ffce292a49938ca85bb03f2a18637a65cab4f4_9ced68ee-2bda-4d86-93df-5a135149c339.webp?v=1713858220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30600c7a72932a930db6aa79a8becbedd1464b53_3368b9b1-d1ad-46aa-9e26-bd29dc8657d4.webp?v=1713858201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09ea26f13bc402fa013949c29dd1be16dfe0c006_ade5d1f9-d7c3-43a5-9516-3ba0662d2ec9.webp?v=1713858203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d518caa8b5e8042ad1597d689fca7f630c087e_b332b75d-d48f-4fc1-857e-e3897415a377.webp?v=1713858206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae757208bbeea48e93a0b0d6188364b63a653a81_68638c62-8ca4-4139-b5d2-fc715a071af0.webp?v=1713858208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1670ab46257cd8f8437f96915d6dea1631152a8c_04b8d03c-38c6-4c89-95ee-19ea71e1d535.webp?v=1713858211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a4f2c577dc3c7e2fe1f0c40ffbfb233f54bec8e_f03a7070-ab6d-4529-8a01-ad4243edfa5d.webp?v=1713858213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff358aea1c86e049c1d662cb2dc2e6622ed4574_567a3592-fa04-481a-be04-fb4aaf83e080.webp?v=1713858215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9aa8b0e8fa9de5f00b203d1b13bdf4a0f7b441a_cbee3773-01dc-48f9-9dcd-c5b1f2dfe924.webp?v=1713858218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76ffce292a49938ca85bb03f2a18637a65cab4f4_9ced68ee-2bda-4d86-93df-5a135149c339.webp?v=1713858220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feac64ae50a7cec9299853484ae5694beee5397a_c3a9249d-4ea8-4082-9a52-2422c1e61d94.webp?v=1713858223","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b6681c274b501a983d2af748bda2e92c8600a07_a6cd8d00-336d-45a0-ae20-c96a54491ae9.webp?v=1713858225"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30600c7a72932a930db6aa79a8becbedd1464b53_3368b9b1-d1ad-46aa-9e26-bd29dc8657d4.webp?v=1713858201","options":["color"],"media":[{"alt":null,"id":23789283016803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30600c7a72932a930db6aa79a8becbedd1464b53_3368b9b1-d1ad-46aa-9e26-bd29dc8657d4.webp?v=1713858201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30600c7a72932a930db6aa79a8becbedd1464b53_3368b9b1-d1ad-46aa-9e26-bd29dc8657d4.webp?v=1713858201","width":2000},{"alt":null,"id":23789283573859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09ea26f13bc402fa013949c29dd1be16dfe0c006_ade5d1f9-d7c3-43a5-9516-3ba0662d2ec9.webp?v=1713858203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09ea26f13bc402fa013949c29dd1be16dfe0c006_ade5d1f9-d7c3-43a5-9516-3ba0662d2ec9.webp?v=1713858203","width":2000},{"alt":null,"id":23789284360291,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d518caa8b5e8042ad1597d689fca7f630c087e_b332b75d-d48f-4fc1-857e-e3897415a377.webp?v=1713858206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29d518caa8b5e8042ad1597d689fca7f630c087e_b332b75d-d48f-4fc1-857e-e3897415a377.webp?v=1713858206","width":2000},{"alt":null,"id":23789284884579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae757208bbeea48e93a0b0d6188364b63a653a81_68638c62-8ca4-4139-b5d2-fc715a071af0.webp?v=1713858208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae757208bbeea48e93a0b0d6188364b63a653a81_68638c62-8ca4-4139-b5d2-fc715a071af0.webp?v=1713858208","width":2000},{"alt":null,"id":23789285474403,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1670ab46257cd8f8437f96915d6dea1631152a8c_04b8d03c-38c6-4c89-95ee-19ea71e1d535.webp?v=1713858211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1670ab46257cd8f8437f96915d6dea1631152a8c_04b8d03c-38c6-4c89-95ee-19ea71e1d535.webp?v=1713858211","width":2000},{"alt":null,"id":23789285900387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a4f2c577dc3c7e2fe1f0c40ffbfb233f54bec8e_f03a7070-ab6d-4529-8a01-ad4243edfa5d.webp?v=1713858213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a4f2c577dc3c7e2fe1f0c40ffbfb233f54bec8e_f03a7070-ab6d-4529-8a01-ad4243edfa5d.webp?v=1713858213","width":2000},{"alt":null,"id":23789286555747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff358aea1c86e049c1d662cb2dc2e6622ed4574_567a3592-fa04-481a-be04-fb4aaf83e080.webp?v=1713858215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff358aea1c86e049c1d662cb2dc2e6622ed4574_567a3592-fa04-481a-be04-fb4aaf83e080.webp?v=1713858215","width":2000},{"alt":null,"id":23789287276643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9aa8b0e8fa9de5f00b203d1b13bdf4a0f7b441a_cbee3773-01dc-48f9-9dcd-c5b1f2dfe924.webp?v=1713858218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9aa8b0e8fa9de5f00b203d1b13bdf4a0f7b441a_cbee3773-01dc-48f9-9dcd-c5b1f2dfe924.webp?v=1713858218","width":2000},{"alt":null,"id":23789287997539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76ffce292a49938ca85bb03f2a18637a65cab4f4_9ced68ee-2bda-4d86-93df-5a135149c339.webp?v=1713858220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76ffce292a49938ca85bb03f2a18637a65cab4f4_9ced68ee-2bda-4d86-93df-5a135149c339.webp?v=1713858220","width":2000},{"alt":null,"id":23789288652899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feac64ae50a7cec9299853484ae5694beee5397a_c3a9249d-4ea8-4082-9a52-2422c1e61d94.webp?v=1713858223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feac64ae50a7cec9299853484ae5694beee5397a_c3a9249d-4ea8-4082-9a52-2422c1e61d94.webp?v=1713858223","width":2000},{"alt":null,"id":23789289144419,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b6681c274b501a983d2af748bda2e92c8600a07_a6cd8d00-336d-45a0-ae20-c96a54491ae9.webp?v=1713858225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b6681c274b501a983d2af748bda2e92c8600a07_a6cd8d00-336d-45a0-ae20-c96a54491ae9.webp?v=1713858225","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41793528594531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31387050016867,"product_id":7369199157347,"position":10,"created_at":"2024-04-23T15:43:43+08:00","updated_at":"2024-04-23T15:43:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feac64ae50a7cec9299853484ae5694beee5397a_c3a9249d-4ea8-4082-9a52-2422c1e61d94.webp?v=1713858223","variant_ids":[41793528594531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 開心小花 - 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":"MPB0123224-PL65","featured_media":{"alt":null,"id":23789288652899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feac64ae50a7cec9299853484ae5694beee5397a_c3a9249d-4ea8-4082-9a52-2422c1e61d94.webp?v=1713858223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793528922211,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31387049328739,"product_id":7369199157347,"position":9,"created_at":"2024-04-23T15:43:40+08:00","updated_at":"2024-04-23T15:43:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76ffce292a49938ca85bb03f2a18637a65cab4f4_9ced68ee-2bda-4d86-93df-5a135149c339.webp?v=1713858220","variant_ids":[41793528922211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 開心小花 - 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":"MPB01232J5-PL65","featured_media":{"alt":null,"id":23789287997539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76ffce292a49938ca85bb03f2a18637a65cab4f4_9ced68ee-2bda-4d86-93df-5a135149c339.webp?v=1713858220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41793528594531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31387050016867,"product_id":7369199157347,"position":10,"created_at":"2024-04-23T15:43:43+08:00","updated_at":"2024-04-23T15:43:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feac64ae50a7cec9299853484ae5694beee5397a_c3a9249d-4ea8-4082-9a52-2422c1e61d94.webp?v=1713858223","variant_ids":[41793528594531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 開心小花 - 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":"MPB0123224-PL65","featured_media":{"alt":null,"id":23789288652899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feac64ae50a7cec9299853484ae5694beee5397a_c3a9249d-4ea8-4082-9a52-2422c1e61d94.webp?v=1713858223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }