$product = {"id":7414188179555,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-噴漆白","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb04","description":null,"published_at":"2024-06-11T17:49:43+08:00","created_at":"2024-05-05T14:14:56+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":41904703176803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484869836899,"product_id":7414188179555,"position":4,"created_at":"2024-05-05T14:15:06+08:00","updated_at":"2024-05-05T14:15:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e103c31806487cb74a23feffe8037b0bdb0ec789_f30f52fd-cad7-416a-b637-502b7c40ba0e.webp?v=1714889706","variant_ids":[41904703176803]},"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-PB04","featured_media":{"alt":null,"id":23890170740835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e103c31806487cb74a23feffe8037b0bdb0ec789_f30f52fd-cad7-416a-b637-502b7c40ba0e.webp?v=1714889706"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904704061539,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484883042403,"product_id":7414188179555,"position":11,"created_at":"2024-05-05T14:15:22+08:00","updated_at":"2024-05-05T14:15:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79277fc02880ec5d5536cea62de8fbefc20b942_ca98e08f-5a07-43aa-ba19-4c8e9ee39998.webp?v=1714889722","variant_ids":[41904704061539]},"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-PB04","featured_media":{"alt":null,"id":23890184765539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79277fc02880ec5d5536cea62de8fbefc20b942_ca98e08f-5a07-43aa-ba19-4c8e9ee39998.webp?v=1714889722"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec247b902c76fc95a60814cd90f2e07726e8fb5f_9c1dfc1d-b647-424d-af5a-2c16f03ff320.webp?v=1714889699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5030ea6db83435e5c686e3e3c116717fd4f5ec9_834b6842-0cb6-4ece-a8ba-7ab1d8bbecce.webp?v=1714889701","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76c8e9f8f8762e8b63c76965e5bc9abf9f7b9b1d_ddb429f0-795a-4900-b217-cead8237ce71.webp?v=1714889703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e103c31806487cb74a23feffe8037b0bdb0ec789_f30f52fd-cad7-416a-b637-502b7c40ba0e.webp?v=1714889706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed97c401c09e9cea21c2ec718766823337636d0e_b8e80592-ed1f-424a-bc3d-5536d7ad7f55.webp?v=1714889708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a393248abbdb22a9a25df00ff30cc6429ad587_e7819585-036c-4013-acdf-e84a74061ccd.webp?v=1714889710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/702a4ca98d14e8c8a22897619296ad12b268387d_6869b5b3-4d6d-4bf7-9ff0-6a064c17bea7.webp?v=1714889712","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f9e37a65538ee76e2be00375d8621b8cbb97fb6_40dc537f-246f-40e3-a52c-d316a52942aa.webp?v=1714889715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/869c3c4a5c82448c9f84e3edd8ad198594027725_dda4621f-36bb-4455-82a1-8aa27161ffef.webp?v=1714889717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767be4548e9e28871d858e5f0d38b994dd9b1d4b_e2a0c0ea-eea2-4cdf-91f2-34d044f1b785.webp?v=1714889719","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79277fc02880ec5d5536cea62de8fbefc20b942_ca98e08f-5a07-43aa-ba19-4c8e9ee39998.webp?v=1714889722"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec247b902c76fc95a60814cd90f2e07726e8fb5f_9c1dfc1d-b647-424d-af5a-2c16f03ff320.webp?v=1714889699","options":["color"],"media":[{"alt":null,"id":23890163728483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec247b902c76fc95a60814cd90f2e07726e8fb5f_9c1dfc1d-b647-424d-af5a-2c16f03ff320.webp?v=1714889699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec247b902c76fc95a60814cd90f2e07726e8fb5f_9c1dfc1d-b647-424d-af5a-2c16f03ff320.webp?v=1714889699","width":2000},{"alt":null,"id":23890166317155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5030ea6db83435e5c686e3e3c116717fd4f5ec9_834b6842-0cb6-4ece-a8ba-7ab1d8bbecce.webp?v=1714889701"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5030ea6db83435e5c686e3e3c116717fd4f5ec9_834b6842-0cb6-4ece-a8ba-7ab1d8bbecce.webp?v=1714889701","width":2000},{"alt":null,"id":23890168414307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76c8e9f8f8762e8b63c76965e5bc9abf9f7b9b1d_ddb429f0-795a-4900-b217-cead8237ce71.webp?v=1714889703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76c8e9f8f8762e8b63c76965e5bc9abf9f7b9b1d_ddb429f0-795a-4900-b217-cead8237ce71.webp?v=1714889703","width":2000},{"alt":null,"id":23890170740835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e103c31806487cb74a23feffe8037b0bdb0ec789_f30f52fd-cad7-416a-b637-502b7c40ba0e.webp?v=1714889706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e103c31806487cb74a23feffe8037b0bdb0ec789_f30f52fd-cad7-416a-b637-502b7c40ba0e.webp?v=1714889706","width":2000},{"alt":null,"id":23890172739683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed97c401c09e9cea21c2ec718766823337636d0e_b8e80592-ed1f-424a-bc3d-5536d7ad7f55.webp?v=1714889708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed97c401c09e9cea21c2ec718766823337636d0e_b8e80592-ed1f-424a-bc3d-5536d7ad7f55.webp?v=1714889708","width":2000},{"alt":null,"id":23890174902371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a393248abbdb22a9a25df00ff30cc6429ad587_e7819585-036c-4013-acdf-e84a74061ccd.webp?v=1714889710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a393248abbdb22a9a25df00ff30cc6429ad587_e7819585-036c-4013-acdf-e84a74061ccd.webp?v=1714889710","width":2000},{"alt":null,"id":23890177065059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/702a4ca98d14e8c8a22897619296ad12b268387d_6869b5b3-4d6d-4bf7-9ff0-6a064c17bea7.webp?v=1714889712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/702a4ca98d14e8c8a22897619296ad12b268387d_6869b5b3-4d6d-4bf7-9ff0-6a064c17bea7.webp?v=1714889712","width":2000},{"alt":null,"id":23890179227747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f9e37a65538ee76e2be00375d8621b8cbb97fb6_40dc537f-246f-40e3-a52c-d316a52942aa.webp?v=1714889715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f9e37a65538ee76e2be00375d8621b8cbb97fb6_40dc537f-246f-40e3-a52c-d316a52942aa.webp?v=1714889715","width":2000},{"alt":null,"id":23890181357667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/869c3c4a5c82448c9f84e3edd8ad198594027725_dda4621f-36bb-4455-82a1-8aa27161ffef.webp?v=1714889717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/869c3c4a5c82448c9f84e3edd8ad198594027725_dda4621f-36bb-4455-82a1-8aa27161ffef.webp?v=1714889717","width":2000},{"alt":null,"id":23890182996067,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767be4548e9e28871d858e5f0d38b994dd9b1d4b_e2a0c0ea-eea2-4cdf-91f2-34d044f1b785.webp?v=1714889719"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767be4548e9e28871d858e5f0d38b994dd9b1d4b_e2a0c0ea-eea2-4cdf-91f2-34d044f1b785.webp?v=1714889719","width":2000},{"alt":null,"id":23890184765539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79277fc02880ec5d5536cea62de8fbefc20b942_ca98e08f-5a07-43aa-ba19-4c8e9ee39998.webp?v=1714889722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79277fc02880ec5d5536cea62de8fbefc20b942_ca98e08f-5a07-43aa-ba19-4c8e9ee39998.webp?v=1714889722","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904703176803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484869836899,"product_id":7414188179555,"position":4,"created_at":"2024-05-05T14:15:06+08:00","updated_at":"2024-05-05T14:15:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e103c31806487cb74a23feffe8037b0bdb0ec789_f30f52fd-cad7-416a-b637-502b7c40ba0e.webp?v=1714889706","variant_ids":[41904703176803]},"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-PB04","featured_media":{"alt":null,"id":23890170740835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e103c31806487cb74a23feffe8037b0bdb0ec789_f30f52fd-cad7-416a-b637-502b7c40ba0e.webp?v=1714889706"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904704061539,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484883042403,"product_id":7414188179555,"position":11,"created_at":"2024-05-05T14:15:22+08:00","updated_at":"2024-05-05T14:15:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79277fc02880ec5d5536cea62de8fbefc20b942_ca98e08f-5a07-43aa-ba19-4c8e9ee39998.webp?v=1714889722","variant_ids":[41904704061539]},"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-PB04","featured_media":{"alt":null,"id":23890184765539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79277fc02880ec5d5536cea62de8fbefc20b942_ca98e08f-5a07-43aa-ba19-4c8e9ee39998.webp?v=1714889722"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904703176803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484869836899,"product_id":7414188179555,"position":4,"created_at":"2024-05-05T14:15:06+08:00","updated_at":"2024-05-05T14:15:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e103c31806487cb74a23feffe8037b0bdb0ec789_f30f52fd-cad7-416a-b637-502b7c40ba0e.webp?v=1714889706","variant_ids":[41904703176803]},"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-PB04","featured_media":{"alt":null,"id":23890170740835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e103c31806487cb74a23feffe8037b0bdb0ec789_f30f52fd-cad7-416a-b637-502b7c40ba0e.webp?v=1714889706"}},"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: "停產" }