$product = {"id":7414032433251,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb51","description":null,"published_at":"2024-06-11T17:48:16+08:00","created_at":"2024-05-05T14:04:54+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 13 Pro Max","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":41903551873123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31484508995683,"product_id":7414032433251,"position":5,"created_at":"2024-05-05T14:05:06+08:00","updated_at":"2024-05-05T14:05:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6fd4fc1d94e063e3cd77f4d484f124f2a253f52_e11492f6-9848-455e-ace7-ef03db8abec1.webp?v=1714889106","variant_ids":[41903551873123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB51","featured_media":{"alt":null,"id":23889803116643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6fd4fc1d94e063e3cd77f4d484f124f2a253f52_e11492f6-9848-455e-ace7-ef03db8abec1.webp?v=1714889106"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903552331875,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31484507947107,"product_id":7414032433251,"position":3,"created_at":"2024-05-05T14:05:01+08:00","updated_at":"2024-05-05T14:05:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8421f4952962522e6599be3aca5635c8f909ed51_0a2da8b5-7ed8-4b8d-bded-2ea302fa67cb.webp?v=1714889101","variant_ids":[41903552331875]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB01232J5-PB51","featured_media":{"alt":null,"id":23889802068067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8421f4952962522e6599be3aca5635c8f909ed51_0a2da8b5-7ed8-4b8d-bded-2ea302fa67cb.webp?v=1714889101"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa85e6ae30ce12b6689519b3559307a07c974d28_5c37cefe-492d-43a1-b3b7-24fef9758df7.webp?v=1714889097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06ff1740acb6ad0288f60aea581602f0b012b4f_eba4ecaf-a01c-4956-b906-02e22be71c05.webp?v=1714889099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8421f4952962522e6599be3aca5635c8f909ed51_0a2da8b5-7ed8-4b8d-bded-2ea302fa67cb.webp?v=1714889101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c05d25eaaa78f60782711db7270cbb493e3e7b4_b1d8bf1d-436b-439c-9701-cf25c4a9bdd5.webp?v=1714889104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6fd4fc1d94e063e3cd77f4d484f124f2a253f52_e11492f6-9848-455e-ace7-ef03db8abec1.webp?v=1714889106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e749483cbad356975e57f07cc557b54b9e31f7f_65280e81-01c5-4123-9b68-c64cc43d24d2.webp?v=1714889108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/090ad7e879120460410e558bad8c1c82941330e5_32bbe797-a19e-4bfd-be9a-5cadfa786d93.webp?v=1714889111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adf7ca651cd85725e25b920984600b8c584a7068_03113781-b936-4607-b917-491b0f7d65e3.webp?v=1714889113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3663e4e3d14bdab3f7a28ba838ed4d2e2912d851_d51eab3b-5483-43e2-901f-dc831c9868ab.webp?v=1714889115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916df3d78d432946a2e96ab2948d2e3c2098de99_97eb258d-4d62-4148-af98-cccb184db792.webp?v=1714889118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da54ca872475a8764b9d08e61c3e2ed4de8d616f_6188d11e-d17b-44e7-8520-24f654876842.webp?v=1714889120"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa85e6ae30ce12b6689519b3559307a07c974d28_5c37cefe-492d-43a1-b3b7-24fef9758df7.webp?v=1714889097","options":["color"],"media":[{"alt":null,"id":23889801117795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa85e6ae30ce12b6689519b3559307a07c974d28_5c37cefe-492d-43a1-b3b7-24fef9758df7.webp?v=1714889097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa85e6ae30ce12b6689519b3559307a07c974d28_5c37cefe-492d-43a1-b3b7-24fef9758df7.webp?v=1714889097","width":2000},{"alt":null,"id":23889801642083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06ff1740acb6ad0288f60aea581602f0b012b4f_eba4ecaf-a01c-4956-b906-02e22be71c05.webp?v=1714889099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f06ff1740acb6ad0288f60aea581602f0b012b4f_eba4ecaf-a01c-4956-b906-02e22be71c05.webp?v=1714889099","width":2000},{"alt":null,"id":23889802068067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8421f4952962522e6599be3aca5635c8f909ed51_0a2da8b5-7ed8-4b8d-bded-2ea302fa67cb.webp?v=1714889101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8421f4952962522e6599be3aca5635c8f909ed51_0a2da8b5-7ed8-4b8d-bded-2ea302fa67cb.webp?v=1714889101","width":2000},{"alt":null,"id":23889802657891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c05d25eaaa78f60782711db7270cbb493e3e7b4_b1d8bf1d-436b-439c-9701-cf25c4a9bdd5.webp?v=1714889104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c05d25eaaa78f60782711db7270cbb493e3e7b4_b1d8bf1d-436b-439c-9701-cf25c4a9bdd5.webp?v=1714889104","width":2000},{"alt":null,"id":23889803116643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6fd4fc1d94e063e3cd77f4d484f124f2a253f52_e11492f6-9848-455e-ace7-ef03db8abec1.webp?v=1714889106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6fd4fc1d94e063e3cd77f4d484f124f2a253f52_e11492f6-9848-455e-ace7-ef03db8abec1.webp?v=1714889106","width":2000},{"alt":null,"id":23889803608163,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e749483cbad356975e57f07cc557b54b9e31f7f_65280e81-01c5-4123-9b68-c64cc43d24d2.webp?v=1714889108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e749483cbad356975e57f07cc557b54b9e31f7f_65280e81-01c5-4123-9b68-c64cc43d24d2.webp?v=1714889108","width":2000},{"alt":null,"id":23889804066915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/090ad7e879120460410e558bad8c1c82941330e5_32bbe797-a19e-4bfd-be9a-5cadfa786d93.webp?v=1714889111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/090ad7e879120460410e558bad8c1c82941330e5_32bbe797-a19e-4bfd-be9a-5cadfa786d93.webp?v=1714889111","width":2000},{"alt":null,"id":23889804656739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adf7ca651cd85725e25b920984600b8c584a7068_03113781-b936-4607-b917-491b0f7d65e3.webp?v=1714889113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adf7ca651cd85725e25b920984600b8c584a7068_03113781-b936-4607-b917-491b0f7d65e3.webp?v=1714889113","width":2000},{"alt":null,"id":23889805148259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3663e4e3d14bdab3f7a28ba838ed4d2e2912d851_d51eab3b-5483-43e2-901f-dc831c9868ab.webp?v=1714889115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3663e4e3d14bdab3f7a28ba838ed4d2e2912d851_d51eab3b-5483-43e2-901f-dc831c9868ab.webp?v=1714889115","width":2000},{"alt":null,"id":23889805967459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916df3d78d432946a2e96ab2948d2e3c2098de99_97eb258d-4d62-4148-af98-cccb184db792.webp?v=1714889118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916df3d78d432946a2e96ab2948d2e3c2098de99_97eb258d-4d62-4148-af98-cccb184db792.webp?v=1714889118","width":2000},{"alt":null,"id":23889806491747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da54ca872475a8764b9d08e61c3e2ed4de8d616f_6188d11e-d17b-44e7-8520-24f654876842.webp?v=1714889120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da54ca872475a8764b9d08e61c3e2ed4de8d616f_6188d11e-d17b-44e7-8520-24f654876842.webp?v=1714889120","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903551873123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31484508995683,"product_id":7414032433251,"position":5,"created_at":"2024-05-05T14:05:06+08:00","updated_at":"2024-05-05T14:05:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6fd4fc1d94e063e3cd77f4d484f124f2a253f52_e11492f6-9848-455e-ace7-ef03db8abec1.webp?v=1714889106","variant_ids":[41903551873123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB51","featured_media":{"alt":null,"id":23889803116643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6fd4fc1d94e063e3cd77f4d484f124f2a253f52_e11492f6-9848-455e-ace7-ef03db8abec1.webp?v=1714889106"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903552331875,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31484507947107,"product_id":7414032433251,"position":3,"created_at":"2024-05-05T14:05:01+08:00","updated_at":"2024-05-05T14:05:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8421f4952962522e6599be3aca5635c8f909ed51_0a2da8b5-7ed8-4b8d-bded-2ea302fa67cb.webp?v=1714889101","variant_ids":[41903552331875]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB01232J5-PB51","featured_media":{"alt":null,"id":23889802068067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8421f4952962522e6599be3aca5635c8f909ed51_0a2da8b5-7ed8-4b8d-bded-2ea302fa67cb.webp?v=1714889101"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903551873123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31484508995683,"product_id":7414032433251,"position":5,"created_at":"2024-05-05T14:05:06+08:00","updated_at":"2024-05-05T14:05:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6fd4fc1d94e063e3cd77f4d484f124f2a253f52_e11492f6-9848-455e-ace7-ef03db8abec1.webp?v=1714889106","variant_ids":[41903551873123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB51","featured_media":{"alt":null,"id":23889803116643,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6fd4fc1d94e063e3cd77f4d484f124f2a253f52_e11492f6-9848-455e-ace7-ef03db8abec1.webp?v=1714889106"}},"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: "停產" }