$product = {"id":7414590570595,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb102","description":null,"published_at":"2024-06-11T17:52:23+08:00","created_at":"2024-05-05T14:32: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":41907637157987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31485841539171,"product_id":7414590570595,"position":6,"created_at":"2024-05-05T14:33:08+08:00","updated_at":"2024-05-05T14:33:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4044fa3dd1634545c89c8b4a4a151eb268d3f66_6f22a314-8e44-481a-b26b-e2ead7aca1b5.webp?v=1714890788","variant_ids":[41907637157987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23891176652899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4044fa3dd1634545c89c8b4a4a151eb268d3f66_6f22a314-8e44-481a-b26b-e2ead7aca1b5.webp?v=1714890788"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907637583971,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31485842817123,"product_id":7414590570595,"position":7,"created_at":"2024-05-05T14:33:10+08:00","updated_at":"2024-05-05T14:33:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11eaa536c6d2874bd98776b82777ce606eb023c_a7ad72bf-b3ff-4b84-9669-bfdc5d8d361d.webp?v=1714890790","variant_ids":[41907637583971]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23891177832547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11eaa536c6d2874bd98776b82777ce606eb023c_a7ad72bf-b3ff-4b84-9669-bfdc5d8d361d.webp?v=1714890790"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50583c208dd7ab81a44f2e64e78d6a09093da89e_7c60dd3c-8c2d-4ab8-913b-f8bfd94c4354.webp?v=1714890776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf1f493f544ec4b26792363366a53f6b47c7218_1630fc28-50a7-4f7a-8369-470149eb6f92.webp?v=1714890779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a86300aa58752e24aa85c3bcd8597fb9d906790_ce297242-e6d8-4743-a86d-a274fbbb8232.webp?v=1714890781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d79f0ad45d9fc31ac348c79e9e8be90e0cc4e66_4c93f6f6-7366-4c87-92a2-363d090c4e83.webp?v=1714890783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49a997f64eb6d33a5ee6b00eafab94b8b68d7265_d496d296-7b1e-4980-9fcb-2da03ca955d5.webp?v=1714890785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4044fa3dd1634545c89c8b4a4a151eb268d3f66_6f22a314-8e44-481a-b26b-e2ead7aca1b5.webp?v=1714890788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11eaa536c6d2874bd98776b82777ce606eb023c_a7ad72bf-b3ff-4b84-9669-bfdc5d8d361d.webp?v=1714890790","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c10944a14fb700692c731e85e89020fd13b095f_e367839b-4e74-423b-b31f-b9dc0c72caf0.webp?v=1714890792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa82e6a41c91afe6ce93e771f3260f4f2cd44b4_2d871d75-26c0-4263-8090-171e7de693ed.webp?v=1714890795","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33e5658ff64184e4bdd5f6027e27284272ab20f_9bb7e60c-6128-45fa-a1f1-a5957d58b4e9.webp?v=1714890797","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fdfcfeb55013cedd88f712c62f04cc0203f9f44_8606bcd7-3f15-4bf1-a724-c595bb2ac0b8.webp?v=1714890799"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50583c208dd7ab81a44f2e64e78d6a09093da89e_7c60dd3c-8c2d-4ab8-913b-f8bfd94c4354.webp?v=1714890776","options":["color"],"media":[{"alt":null,"id":23891169280099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50583c208dd7ab81a44f2e64e78d6a09093da89e_7c60dd3c-8c2d-4ab8-913b-f8bfd94c4354.webp?v=1714890776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50583c208dd7ab81a44f2e64e78d6a09093da89e_7c60dd3c-8c2d-4ab8-913b-f8bfd94c4354.webp?v=1714890776","width":2000},{"alt":null,"id":23891171213411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf1f493f544ec4b26792363366a53f6b47c7218_1630fc28-50a7-4f7a-8369-470149eb6f92.webp?v=1714890779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaf1f493f544ec4b26792363366a53f6b47c7218_1630fc28-50a7-4f7a-8369-470149eb6f92.webp?v=1714890779","width":2000},{"alt":null,"id":23891172950115,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a86300aa58752e24aa85c3bcd8597fb9d906790_ce297242-e6d8-4743-a86d-a274fbbb8232.webp?v=1714890781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a86300aa58752e24aa85c3bcd8597fb9d906790_ce297242-e6d8-4743-a86d-a274fbbb8232.webp?v=1714890781","width":2000},{"alt":null,"id":23891174129763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d79f0ad45d9fc31ac348c79e9e8be90e0cc4e66_4c93f6f6-7366-4c87-92a2-363d090c4e83.webp?v=1714890783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d79f0ad45d9fc31ac348c79e9e8be90e0cc4e66_4c93f6f6-7366-4c87-92a2-363d090c4e83.webp?v=1714890783","width":2000},{"alt":null,"id":23891175243875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49a997f64eb6d33a5ee6b00eafab94b8b68d7265_d496d296-7b1e-4980-9fcb-2da03ca955d5.webp?v=1714890785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49a997f64eb6d33a5ee6b00eafab94b8b68d7265_d496d296-7b1e-4980-9fcb-2da03ca955d5.webp?v=1714890785","width":2000},{"alt":null,"id":23891176652899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4044fa3dd1634545c89c8b4a4a151eb268d3f66_6f22a314-8e44-481a-b26b-e2ead7aca1b5.webp?v=1714890788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4044fa3dd1634545c89c8b4a4a151eb268d3f66_6f22a314-8e44-481a-b26b-e2ead7aca1b5.webp?v=1714890788","width":2000},{"alt":null,"id":23891177832547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11eaa536c6d2874bd98776b82777ce606eb023c_a7ad72bf-b3ff-4b84-9669-bfdc5d8d361d.webp?v=1714890790"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11eaa536c6d2874bd98776b82777ce606eb023c_a7ad72bf-b3ff-4b84-9669-bfdc5d8d361d.webp?v=1714890790","width":2000},{"alt":null,"id":23891179241571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c10944a14fb700692c731e85e89020fd13b095f_e367839b-4e74-423b-b31f-b9dc0c72caf0.webp?v=1714890792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c10944a14fb700692c731e85e89020fd13b095f_e367839b-4e74-423b-b31f-b9dc0c72caf0.webp?v=1714890792","width":2000},{"alt":null,"id":23891180650595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa82e6a41c91afe6ce93e771f3260f4f2cd44b4_2d871d75-26c0-4263-8090-171e7de693ed.webp?v=1714890795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa82e6a41c91afe6ce93e771f3260f4f2cd44b4_2d871d75-26c0-4263-8090-171e7de693ed.webp?v=1714890795","width":2000},{"alt":null,"id":23891181731939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33e5658ff64184e4bdd5f6027e27284272ab20f_9bb7e60c-6128-45fa-a1f1-a5957d58b4e9.webp?v=1714890797"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f33e5658ff64184e4bdd5f6027e27284272ab20f_9bb7e60c-6128-45fa-a1f1-a5957d58b4e9.webp?v=1714890797","width":2000},{"alt":null,"id":23891183075427,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fdfcfeb55013cedd88f712c62f04cc0203f9f44_8606bcd7-3f15-4bf1-a724-c595bb2ac0b8.webp?v=1714890799"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fdfcfeb55013cedd88f712c62f04cc0203f9f44_8606bcd7-3f15-4bf1-a724-c595bb2ac0b8.webp?v=1714890799","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907637157987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31485841539171,"product_id":7414590570595,"position":6,"created_at":"2024-05-05T14:33:08+08:00","updated_at":"2024-05-05T14:33:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4044fa3dd1634545c89c8b4a4a151eb268d3f66_6f22a314-8e44-481a-b26b-e2ead7aca1b5.webp?v=1714890788","variant_ids":[41907637157987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23891176652899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4044fa3dd1634545c89c8b4a4a151eb268d3f66_6f22a314-8e44-481a-b26b-e2ead7aca1b5.webp?v=1714890788"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907637583971,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31485842817123,"product_id":7414590570595,"position":7,"created_at":"2024-05-05T14:33:10+08:00","updated_at":"2024-05-05T14:33:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11eaa536c6d2874bd98776b82777ce606eb023c_a7ad72bf-b3ff-4b84-9669-bfdc5d8d361d.webp?v=1714890790","variant_ids":[41907637583971]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23891177832547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11eaa536c6d2874bd98776b82777ce606eb023c_a7ad72bf-b3ff-4b84-9669-bfdc5d8d361d.webp?v=1714890790"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907637157987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31485841539171,"product_id":7414590570595,"position":6,"created_at":"2024-05-05T14:33:08+08:00","updated_at":"2024-05-05T14:33:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4044fa3dd1634545c89c8b4a4a151eb268d3f66_6f22a314-8e44-481a-b26b-e2ead7aca1b5.webp?v=1714890788","variant_ids":[41907637157987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23891176652899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4044fa3dd1634545c89c8b4a4a151eb268d3f66_6f22a314-8e44-481a-b26b-e2ead7aca1b5.webp?v=1714890788"}},"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: "停產" }