$product = {"id":7414130999395,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵-全白設計","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb103","description":null,"published_at":"2024-06-11T17:49:15+08:00","created_at":"2024-05-05T14:11:48+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":41904303145059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31484744400995,"product_id":7414130999395,"position":9,"created_at":"2024-05-05T14:12:09+08:00","updated_at":"2024-05-05T14:12:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5204d3c44275bbf2a844e90251b38196220bd7f0_ba77769f-65de-4636-b7d1-d35c4a9f83a0.webp?v=1714889529","variant_ids":[41904303145059]},"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-PB103","featured_media":{"alt":null,"id":23890039046243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5204d3c44275bbf2a844e90251b38196220bd7f0_ba77769f-65de-4636-b7d1-d35c4a9f83a0.webp?v=1714889529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904303538275,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31484738928739,"product_id":7414130999395,"position":3,"created_at":"2024-05-05T14:11:55+08:00","updated_at":"2024-05-05T14:11:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375ad80c381b8f62e68b2d0d1ed44df9e345e5d4_6b7f23e2-d30f-4b3b-9cce-768cc6871774.webp?v=1714889515","variant_ids":[41904303538275]},"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-PB103","featured_media":{"alt":null,"id":23890033639523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375ad80c381b8f62e68b2d0d1ed44df9e345e5d4_6b7f23e2-d30f-4b3b-9cce-768cc6871774.webp?v=1714889515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7980a473912331722815bcbb4b7135e6ee6ea7_97608821-be29-4746-9ea2-db0f398b5f77.webp?v=1714889511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbfce788c0152ebaabfdc77d3577e46374b9c309_ef27043f-c624-471e-9ba9-da583bc58f50.webp?v=1714889513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375ad80c381b8f62e68b2d0d1ed44df9e345e5d4_6b7f23e2-d30f-4b3b-9cce-768cc6871774.webp?v=1714889515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f71015eff333585b9b6a3c2ba415c06b2d3e0005_2739a87a-1274-4c87-a0f2-7b4bd30bbab5.webp?v=1714889518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f27d350ce93abaabf1e9984558e5be32726c7b3_03a13e4f-a830-4e26-b504-ed694b484fd4.webp?v=1714889520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9acc6d6be94e82b0f04bf18cc8bc3de9a99cc0a3_83abfaad-d98b-413b-9b93-3df08aa2b91b.webp?v=1714889523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9aab65058dd51a952b496c972fdbbaa86d252a_cf69c970-f53f-4724-ba94-0ffdb26a538f.webp?v=1714889525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e05518e32b339e366fbd601350e609555fd7c241_51724e93-5f3c-491c-be4f-defc81f9eeaf.webp?v=1714889527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5204d3c44275bbf2a844e90251b38196220bd7f0_ba77769f-65de-4636-b7d1-d35c4a9f83a0.webp?v=1714889529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3216cc2cbe2160ddbdfc1ef99f02df17f2bdb54c_340c74de-014a-491f-88d5-6710e25cf610.webp?v=1714889532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d4f39f2cdf4a22023923f648e23090399f7c76e_9ef59bff-6a79-4fab-92aa-f2d2ee700092.webp?v=1714889534"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7980a473912331722815bcbb4b7135e6ee6ea7_97608821-be29-4746-9ea2-db0f398b5f77.webp?v=1714889511","options":["color"],"media":[{"alt":null,"id":23890032099427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7980a473912331722815bcbb4b7135e6ee6ea7_97608821-be29-4746-9ea2-db0f398b5f77.webp?v=1714889511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be7980a473912331722815bcbb4b7135e6ee6ea7_97608821-be29-4746-9ea2-db0f398b5f77.webp?v=1714889511","width":2000},{"alt":null,"id":23890032853091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbfce788c0152ebaabfdc77d3577e46374b9c309_ef27043f-c624-471e-9ba9-da583bc58f50.webp?v=1714889513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbfce788c0152ebaabfdc77d3577e46374b9c309_ef27043f-c624-471e-9ba9-da583bc58f50.webp?v=1714889513","width":2000},{"alt":null,"id":23890033639523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375ad80c381b8f62e68b2d0d1ed44df9e345e5d4_6b7f23e2-d30f-4b3b-9cce-768cc6871774.webp?v=1714889515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375ad80c381b8f62e68b2d0d1ed44df9e345e5d4_6b7f23e2-d30f-4b3b-9cce-768cc6871774.webp?v=1714889515","width":2000},{"alt":null,"id":23890034786403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f71015eff333585b9b6a3c2ba415c06b2d3e0005_2739a87a-1274-4c87-a0f2-7b4bd30bbab5.webp?v=1714889518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f71015eff333585b9b6a3c2ba415c06b2d3e0005_2739a87a-1274-4c87-a0f2-7b4bd30bbab5.webp?v=1714889518","width":2000},{"alt":null,"id":23890035966051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f27d350ce93abaabf1e9984558e5be32726c7b3_03a13e4f-a830-4e26-b504-ed694b484fd4.webp?v=1714889520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f27d350ce93abaabf1e9984558e5be32726c7b3_03a13e4f-a830-4e26-b504-ed694b484fd4.webp?v=1714889520","width":2000},{"alt":null,"id":23890036752483,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9acc6d6be94e82b0f04bf18cc8bc3de9a99cc0a3_83abfaad-d98b-413b-9b93-3df08aa2b91b.webp?v=1714889523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9acc6d6be94e82b0f04bf18cc8bc3de9a99cc0a3_83abfaad-d98b-413b-9b93-3df08aa2b91b.webp?v=1714889523","width":2000},{"alt":null,"id":23890037538915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9aab65058dd51a952b496c972fdbbaa86d252a_cf69c970-f53f-4724-ba94-0ffdb26a538f.webp?v=1714889525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9aab65058dd51a952b496c972fdbbaa86d252a_cf69c970-f53f-4724-ba94-0ffdb26a538f.webp?v=1714889525","width":2000},{"alt":null,"id":23890038194275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e05518e32b339e366fbd601350e609555fd7c241_51724e93-5f3c-491c-be4f-defc81f9eeaf.webp?v=1714889527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e05518e32b339e366fbd601350e609555fd7c241_51724e93-5f3c-491c-be4f-defc81f9eeaf.webp?v=1714889527","width":2000},{"alt":null,"id":23890039046243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5204d3c44275bbf2a844e90251b38196220bd7f0_ba77769f-65de-4636-b7d1-d35c4a9f83a0.webp?v=1714889529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5204d3c44275bbf2a844e90251b38196220bd7f0_ba77769f-65de-4636-b7d1-d35c4a9f83a0.webp?v=1714889529","width":2000},{"alt":null,"id":23890039799907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3216cc2cbe2160ddbdfc1ef99f02df17f2bdb54c_340c74de-014a-491f-88d5-6710e25cf610.webp?v=1714889532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3216cc2cbe2160ddbdfc1ef99f02df17f2bdb54c_340c74de-014a-491f-88d5-6710e25cf610.webp?v=1714889532","width":2000},{"alt":null,"id":23890040488035,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d4f39f2cdf4a22023923f648e23090399f7c76e_9ef59bff-6a79-4fab-92aa-f2d2ee700092.webp?v=1714889534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d4f39f2cdf4a22023923f648e23090399f7c76e_9ef59bff-6a79-4fab-92aa-f2d2ee700092.webp?v=1714889534","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904303145059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31484744400995,"product_id":7414130999395,"position":9,"created_at":"2024-05-05T14:12:09+08:00","updated_at":"2024-05-05T14:12:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5204d3c44275bbf2a844e90251b38196220bd7f0_ba77769f-65de-4636-b7d1-d35c4a9f83a0.webp?v=1714889529","variant_ids":[41904303145059]},"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-PB103","featured_media":{"alt":null,"id":23890039046243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5204d3c44275bbf2a844e90251b38196220bd7f0_ba77769f-65de-4636-b7d1-d35c4a9f83a0.webp?v=1714889529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904303538275,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31484738928739,"product_id":7414130999395,"position":3,"created_at":"2024-05-05T14:11:55+08:00","updated_at":"2024-05-05T14:11:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375ad80c381b8f62e68b2d0d1ed44df9e345e5d4_6b7f23e2-d30f-4b3b-9cce-768cc6871774.webp?v=1714889515","variant_ids":[41904303538275]},"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-PB103","featured_media":{"alt":null,"id":23890033639523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/375ad80c381b8f62e68b2d0d1ed44df9e345e5d4_6b7f23e2-d30f-4b3b-9cce-768cc6871774.webp?v=1714889515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904303145059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31484744400995,"product_id":7414130999395,"position":9,"created_at":"2024-05-05T14:12:09+08:00","updated_at":"2024-05-05T14:12:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5204d3c44275bbf2a844e90251b38196220bd7f0_ba77769f-65de-4636-b7d1-d35c4a9f83a0.webp?v=1714889529","variant_ids":[41904303145059]},"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-PB103","featured_media":{"alt":null,"id":23890039046243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5204d3c44275bbf2a844e90251b38196220bd7f0_ba77769f-65de-4636-b7d1-d35c4a9f83a0.webp?v=1714889529"}},"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: "停產" }