$product = {"id":7414339600483,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pc03","description":null,"published_at":"2024-06-11T17:50:51+08:00","created_at":"2024-05-05T14:22:31+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":41905840685155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31485218947171,"product_id":7414339600483,"position":6,"created_at":"2024-05-05T14:22:45+08:00","updated_at":"2024-05-05T14:22:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5152d165b630737449c64c6a5eb945591ef21977_90d57a04-53a4-46ad-a435-ef7eb499ec12.webp?v=1714890165","variant_ids":[41905840685155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23890535514211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5152d165b630737449c64c6a5eb945591ef21977_90d57a04-53a4-46ad-a435-ef7eb499ec12.webp?v=1714890165"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905841209443,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31485232185443,"product_id":7414339600483,"position":10,"created_at":"2024-05-05T14:22:55+08:00","updated_at":"2024-05-05T14:22:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e8ff9ec5fae518159f78754a2a6a7fd6c1d9b4_a95473e7-d5d2-4a6a-8e1b-6367692fb70b.webp?v=1714890175","variant_ids":[41905841209443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23890548621411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e8ff9ec5fae518159f78754a2a6a7fd6c1d9b4_a95473e7-d5d2-4a6a-8e1b-6367692fb70b.webp?v=1714890175"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/710aadcd429b0ea48bdef9485b65c93342854734_5840a61a-22f1-4b2d-a9a9-125e05cfa624.webp?v=1714890153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa901f4672cc9533a4df4d98e28f5a775577c6ef_002fa27c-7079-4f8c-b573-70fa75eb7826.webp?v=1714890155","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f023968229bc4a9fda517793040a1a51e6cd13c_b638d67a-66f5-4477-9db5-aa0963ba2201.webp?v=1714890158","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d04f2d590213aa790f31638839cb7a342519aa8_1767e7f5-10d4-476a-8239-d1b6a5b77676.webp?v=1714890160","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca30cd0fd4795b5aabeac68e2663a4b079d92002_85e97e97-4583-4bf5-8702-72442cfba9f9.webp?v=1714890163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5152d165b630737449c64c6a5eb945591ef21977_90d57a04-53a4-46ad-a435-ef7eb499ec12.webp?v=1714890165","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e51ea13bbcd54d61a717bd65fb638fe8e19eb1d_2387f91b-24ef-4d80-8356-2f610d331431.webp?v=1714890168","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6068219a3f56540c1cb37773bf9d04e888a9de5b_2ba39771-f63e-48dc-8f35-da4a34ed39e0.webp?v=1714890170","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f18d5e868c6b24eaa8ae848cf29a18bf1b4ebd5_3fe0e529-1ee5-4f61-b8f7-9b277e09c141.webp?v=1714890173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e8ff9ec5fae518159f78754a2a6a7fd6c1d9b4_a95473e7-d5d2-4a6a-8e1b-6367692fb70b.webp?v=1714890175","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baaa4351aaffc07326fa55cc28a093a06e700d05_bae8840d-30f9-4db4-b29f-fe113ad59c3e.webp?v=1714890177"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/710aadcd429b0ea48bdef9485b65c93342854734_5840a61a-22f1-4b2d-a9a9-125e05cfa624.webp?v=1714890153","options":["color"],"media":[{"alt":null,"id":23890518343779,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/710aadcd429b0ea48bdef9485b65c93342854734_5840a61a-22f1-4b2d-a9a9-125e05cfa624.webp?v=1714890153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/710aadcd429b0ea48bdef9485b65c93342854734_5840a61a-22f1-4b2d-a9a9-125e05cfa624.webp?v=1714890153","width":2000},{"alt":null,"id":23890521489507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa901f4672cc9533a4df4d98e28f5a775577c6ef_002fa27c-7079-4f8c-b573-70fa75eb7826.webp?v=1714890155"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa901f4672cc9533a4df4d98e28f5a775577c6ef_002fa27c-7079-4f8c-b573-70fa75eb7826.webp?v=1714890155","width":2000},{"alt":null,"id":23890524602467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f023968229bc4a9fda517793040a1a51e6cd13c_b638d67a-66f5-4477-9db5-aa0963ba2201.webp?v=1714890158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f023968229bc4a9fda517793040a1a51e6cd13c_b638d67a-66f5-4477-9db5-aa0963ba2201.webp?v=1714890158","width":2000},{"alt":null,"id":23890528469091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d04f2d590213aa790f31638839cb7a342519aa8_1767e7f5-10d4-476a-8239-d1b6a5b77676.webp?v=1714890160"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d04f2d590213aa790f31638839cb7a342519aa8_1767e7f5-10d4-476a-8239-d1b6a5b77676.webp?v=1714890160","width":2000},{"alt":null,"id":23890532073571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca30cd0fd4795b5aabeac68e2663a4b079d92002_85e97e97-4583-4bf5-8702-72442cfba9f9.webp?v=1714890163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca30cd0fd4795b5aabeac68e2663a4b079d92002_85e97e97-4583-4bf5-8702-72442cfba9f9.webp?v=1714890163","width":2000},{"alt":null,"id":23890535514211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5152d165b630737449c64c6a5eb945591ef21977_90d57a04-53a4-46ad-a435-ef7eb499ec12.webp?v=1714890165"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5152d165b630737449c64c6a5eb945591ef21977_90d57a04-53a4-46ad-a435-ef7eb499ec12.webp?v=1714890165","width":2000},{"alt":null,"id":23890539315299,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e51ea13bbcd54d61a717bd65fb638fe8e19eb1d_2387f91b-24ef-4d80-8356-2f610d331431.webp?v=1714890168"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e51ea13bbcd54d61a717bd65fb638fe8e19eb1d_2387f91b-24ef-4d80-8356-2f610d331431.webp?v=1714890168","width":2000},{"alt":null,"id":23890542395491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6068219a3f56540c1cb37773bf9d04e888a9de5b_2ba39771-f63e-48dc-8f35-da4a34ed39e0.webp?v=1714890170"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6068219a3f56540c1cb37773bf9d04e888a9de5b_2ba39771-f63e-48dc-8f35-da4a34ed39e0.webp?v=1714890170","width":2000},{"alt":null,"id":23890545279075,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f18d5e868c6b24eaa8ae848cf29a18bf1b4ebd5_3fe0e529-1ee5-4f61-b8f7-9b277e09c141.webp?v=1714890173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f18d5e868c6b24eaa8ae848cf29a18bf1b4ebd5_3fe0e529-1ee5-4f61-b8f7-9b277e09c141.webp?v=1714890173","width":2000},{"alt":null,"id":23890548621411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e8ff9ec5fae518159f78754a2a6a7fd6c1d9b4_a95473e7-d5d2-4a6a-8e1b-6367692fb70b.webp?v=1714890175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e8ff9ec5fae518159f78754a2a6a7fd6c1d9b4_a95473e7-d5d2-4a6a-8e1b-6367692fb70b.webp?v=1714890175","width":2000},{"alt":null,"id":23890551832675,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baaa4351aaffc07326fa55cc28a093a06e700d05_bae8840d-30f9-4db4-b29f-fe113ad59c3e.webp?v=1714890177"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baaa4351aaffc07326fa55cc28a093a06e700d05_bae8840d-30f9-4db4-b29f-fe113ad59c3e.webp?v=1714890177","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41905840685155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31485218947171,"product_id":7414339600483,"position":6,"created_at":"2024-05-05T14:22:45+08:00","updated_at":"2024-05-05T14:22:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5152d165b630737449c64c6a5eb945591ef21977_90d57a04-53a4-46ad-a435-ef7eb499ec12.webp?v=1714890165","variant_ids":[41905840685155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23890535514211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5152d165b630737449c64c6a5eb945591ef21977_90d57a04-53a4-46ad-a435-ef7eb499ec12.webp?v=1714890165"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905841209443,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31485232185443,"product_id":7414339600483,"position":10,"created_at":"2024-05-05T14:22:55+08:00","updated_at":"2024-05-05T14:22:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e8ff9ec5fae518159f78754a2a6a7fd6c1d9b4_a95473e7-d5d2-4a6a-8e1b-6367692fb70b.webp?v=1714890175","variant_ids":[41905841209443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23890548621411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e8ff9ec5fae518159f78754a2a6a7fd6c1d9b4_a95473e7-d5d2-4a6a-8e1b-6367692fb70b.webp?v=1714890175"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41905840685155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31485218947171,"product_id":7414339600483,"position":6,"created_at":"2024-05-05T14:22:45+08:00","updated_at":"2024-05-05T14:22:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5152d165b630737449c64c6a5eb945591ef21977_90d57a04-53a4-46ad-a435-ef7eb499ec12.webp?v=1714890165","variant_ids":[41905840685155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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-PC03","featured_media":{"alt":null,"id":23890535514211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5152d165b630737449c64c6a5eb945591ef21977_90d57a04-53a4-46ad-a435-ef7eb499ec12.webp?v=1714890165"}},"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: "停產" }