$product = {"id":7414588702819,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb35","description":null,"published_at":"2024-06-11T17:52:22+08:00","created_at":"2024-05-05T14:32: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":41907623886947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31485839507555,"product_id":7414588702819,"position":7,"created_at":"2024-05-05T14:33:04+08:00","updated_at":"2024-05-05T14:33:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013f35c7ace8418e773afcd251f2ef3e0944128c_42767b8f-e5d9-4c0f-a565-acb18cb12990.webp?v=1714890784","variant_ids":[41907623886947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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-PB35","featured_media":{"alt":null,"id":23891174522979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013f35c7ace8418e773afcd251f2ef3e0944128c_42767b8f-e5d9-4c0f-a565-acb18cb12990.webp?v=1714890784"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907624345699,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31485844881507,"product_id":7414588702819,"position":11,"created_at":"2024-05-05T14:33:13+08:00","updated_at":"2024-05-05T14:33:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d557a1c0e857036cd09913cd07ab9add184214_d820eca7-528e-4e1d-93c9-94b5df424272.webp?v=1714890793","variant_ids":[41907624345699]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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-PB35","featured_media":{"alt":null,"id":23891180093539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d557a1c0e857036cd09913cd07ab9add184214_d820eca7-528e-4e1d-93c9-94b5df424272.webp?v=1714890793"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238abfbd353309c4c86ff798d9b8f21778ea8d69_69f26b6f-f1b9-418e-a7a5-90ab4ddca703.webp?v=1714890770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e842ac7c47484526a09cfa0ef883f63658cc938_5e731949-a42b-494b-a549-f9e59cdf0a87.webp?v=1714890772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bbc218efb3ea5effc254142fb44e24bbb49275b_1aaeb28c-a7d5-4653-ae68-c3d5df02e259.webp?v=1714890774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8c6106733d48dd72acc889d9fc32345ba07a459_9e36f999-f131-467c-808e-03c4d08f8661.webp?v=1714890777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c432ebe0c20c1d53dad3a0a850740109db06822_45683cfb-36b1-4654-b8d5-e420fd66a69a.webp?v=1714890779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a131828646c0977101998b606343af5432777a4c_294db8f0-476a-4772-a740-82329fb058cb.webp?v=1714890782","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013f35c7ace8418e773afcd251f2ef3e0944128c_42767b8f-e5d9-4c0f-a565-acb18cb12990.webp?v=1714890784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/087ee82e13dd679e4325f654de183d03e2122352_0692a5bc-6bdb-4c3f-a6db-1d8d8721c993.webp?v=1714890786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9983adbb7abb88c6639fbf2398675f53446a92d_4f5beffe-92f8-48ec-a0e0-d7d252a61ab8.webp?v=1714890789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e20feae15073bf71464c1985079a9a19bcfd5336_7ebb1eda-b66e-4959-ae31-c7a6e76d0ffb.webp?v=1714890791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d557a1c0e857036cd09913cd07ab9add184214_d820eca7-528e-4e1d-93c9-94b5df424272.webp?v=1714890793"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238abfbd353309c4c86ff798d9b8f21778ea8d69_69f26b6f-f1b9-418e-a7a5-90ab4ddca703.webp?v=1714890770","options":["color"],"media":[{"alt":null,"id":23891163906147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238abfbd353309c4c86ff798d9b8f21778ea8d69_69f26b6f-f1b9-418e-a7a5-90ab4ddca703.webp?v=1714890770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238abfbd353309c4c86ff798d9b8f21778ea8d69_69f26b6f-f1b9-418e-a7a5-90ab4ddca703.webp?v=1714890770","width":2000},{"alt":null,"id":23891165642851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e842ac7c47484526a09cfa0ef883f63658cc938_5e731949-a42b-494b-a549-f9e59cdf0a87.webp?v=1714890772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e842ac7c47484526a09cfa0ef883f63658cc938_5e731949-a42b-494b-a549-f9e59cdf0a87.webp?v=1714890772","width":2000},{"alt":null,"id":23891167510627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bbc218efb3ea5effc254142fb44e24bbb49275b_1aaeb28c-a7d5-4653-ae68-c3d5df02e259.webp?v=1714890774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bbc218efb3ea5effc254142fb44e24bbb49275b_1aaeb28c-a7d5-4653-ae68-c3d5df02e259.webp?v=1714890774","width":2000},{"alt":null,"id":23891169476707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8c6106733d48dd72acc889d9fc32345ba07a459_9e36f999-f131-467c-808e-03c4d08f8661.webp?v=1714890777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8c6106733d48dd72acc889d9fc32345ba07a459_9e36f999-f131-467c-808e-03c4d08f8661.webp?v=1714890777","width":2000},{"alt":null,"id":23891171541091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c432ebe0c20c1d53dad3a0a850740109db06822_45683cfb-36b1-4654-b8d5-e420fd66a69a.webp?v=1714890779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c432ebe0c20c1d53dad3a0a850740109db06822_45683cfb-36b1-4654-b8d5-e420fd66a69a.webp?v=1714890779","width":2000},{"alt":null,"id":23891173212259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a131828646c0977101998b606343af5432777a4c_294db8f0-476a-4772-a740-82329fb058cb.webp?v=1714890782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a131828646c0977101998b606343af5432777a4c_294db8f0-476a-4772-a740-82329fb058cb.webp?v=1714890782","width":2000},{"alt":null,"id":23891174522979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013f35c7ace8418e773afcd251f2ef3e0944128c_42767b8f-e5d9-4c0f-a565-acb18cb12990.webp?v=1714890784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013f35c7ace8418e773afcd251f2ef3e0944128c_42767b8f-e5d9-4c0f-a565-acb18cb12990.webp?v=1714890784","width":2000},{"alt":null,"id":23891175833699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/087ee82e13dd679e4325f654de183d03e2122352_0692a5bc-6bdb-4c3f-a6db-1d8d8721c993.webp?v=1714890786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/087ee82e13dd679e4325f654de183d03e2122352_0692a5bc-6bdb-4c3f-a6db-1d8d8721c993.webp?v=1714890786","width":2000},{"alt":null,"id":23891177078883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9983adbb7abb88c6639fbf2398675f53446a92d_4f5beffe-92f8-48ec-a0e0-d7d252a61ab8.webp?v=1714890789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9983adbb7abb88c6639fbf2398675f53446a92d_4f5beffe-92f8-48ec-a0e0-d7d252a61ab8.webp?v=1714890789","width":2000},{"alt":null,"id":23891178225763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e20feae15073bf71464c1985079a9a19bcfd5336_7ebb1eda-b66e-4959-ae31-c7a6e76d0ffb.webp?v=1714890791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e20feae15073bf71464c1985079a9a19bcfd5336_7ebb1eda-b66e-4959-ae31-c7a6e76d0ffb.webp?v=1714890791","width":2000},{"alt":null,"id":23891180093539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d557a1c0e857036cd09913cd07ab9add184214_d820eca7-528e-4e1d-93c9-94b5df424272.webp?v=1714890793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d557a1c0e857036cd09913cd07ab9add184214_d820eca7-528e-4e1d-93c9-94b5df424272.webp?v=1714890793","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907623886947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31485839507555,"product_id":7414588702819,"position":7,"created_at":"2024-05-05T14:33:04+08:00","updated_at":"2024-05-05T14:33:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013f35c7ace8418e773afcd251f2ef3e0944128c_42767b8f-e5d9-4c0f-a565-acb18cb12990.webp?v=1714890784","variant_ids":[41907623886947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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-PB35","featured_media":{"alt":null,"id":23891174522979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013f35c7ace8418e773afcd251f2ef3e0944128c_42767b8f-e5d9-4c0f-a565-acb18cb12990.webp?v=1714890784"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907624345699,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31485844881507,"product_id":7414588702819,"position":11,"created_at":"2024-05-05T14:33:13+08:00","updated_at":"2024-05-05T14:33:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d557a1c0e857036cd09913cd07ab9add184214_d820eca7-528e-4e1d-93c9-94b5df424272.webp?v=1714890793","variant_ids":[41907624345699]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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-PB35","featured_media":{"alt":null,"id":23891180093539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d557a1c0e857036cd09913cd07ab9add184214_d820eca7-528e-4e1d-93c9-94b5df424272.webp?v=1714890793"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907623886947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31485839507555,"product_id":7414588702819,"position":7,"created_at":"2024-05-05T14:33:04+08:00","updated_at":"2024-05-05T14:33:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013f35c7ace8418e773afcd251f2ef3e0944128c_42767b8f-e5d9-4c0f-a565-acb18cb12990.webp?v=1714890784","variant_ids":[41907623886947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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-PB35","featured_media":{"alt":null,"id":23891174522979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/013f35c7ace8418e773afcd251f2ef3e0944128c_42767b8f-e5d9-4c0f-a565-acb18cb12990.webp?v=1714890784"}},"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: "停產" }