$product = {"id":7414013100131,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb21","description":null,"published_at":"2024-06-11T17:47:42+08:00","created_at":"2024-05-05T14:00:49+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":41903320072291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31484457025635,"product_id":7414013100131,"position":6,"created_at":"2024-05-05T14:01:03+08:00","updated_at":"2024-05-05T14:01:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbb2cd3920908ad8a86d095fc82d150ea7a1d65_8deee339-552b-47a0-91cf-28b6e59065ac.webp?v=1714888863","variant_ids":[41903320072291]},"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-PB21","featured_media":{"alt":null,"id":23889751146595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbb2cd3920908ad8a86d095fc82d150ea7a1d65_8deee339-552b-47a0-91cf-28b6e59065ac.webp?v=1714888863"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903320563811,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31484455485539,"product_id":7414013100131,"position":4,"created_at":"2024-05-05T14:00:58+08:00","updated_at":"2024-05-05T14:00:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113aa2e120060c03a5fd49fe2d1b55b25f579ffd_f55bee01-58d9-4487-bec8-5b4850c04fcf.webp?v=1714888858","variant_ids":[41903320563811]},"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-PB21","featured_media":{"alt":null,"id":23889749606499,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113aa2e120060c03a5fd49fe2d1b55b25f579ffd_f55bee01-58d9-4487-bec8-5b4850c04fcf.webp?v=1714888858"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e9f242dc9bc4736e0659fa47a85b4fc4db9791_146bb688-0dff-4bc9-b4ab-5a1e1936c4cf.webp?v=1714888851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187486cf5c57ca4b125ea62d846dc44844f15b38_902a23c4-a3b6-4895-973c-1591e8353717.webp?v=1714888853","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb7c78143f4ed1331e1e19e62423a88dbe2d774e_76cbb0ac-5335-4357-8408-514026cc2476.webp?v=1714888856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113aa2e120060c03a5fd49fe2d1b55b25f579ffd_f55bee01-58d9-4487-bec8-5b4850c04fcf.webp?v=1714888858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91214ba8df244c7fde23695b18d64d4b14ae4020_8aef375a-8975-4af0-9fa2-187750aa6614.webp?v=1714888861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbb2cd3920908ad8a86d095fc82d150ea7a1d65_8deee339-552b-47a0-91cf-28b6e59065ac.webp?v=1714888863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22ab59946c92a5231b8769d9f78451f52a3d79f1_5eae3fcc-b7f6-4e1e-8e64-7694bb5a2e36.webp?v=1714888866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74e62f0d43561c34ef662e3aeae73c0c14f84ce9_fa41862c-c021-4570-9e79-8eddab085ac1.webp?v=1714888868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c862d507fac6e9cd0fa819351d305409d71cc3eb_90b9ea9e-7e21-4df1-8d31-37a9058ebbd0.webp?v=1714888870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfa7911525ae29ed5c72db0c72540f9853ea19ba_42da5b25-cf7f-4d21-bc29-f5175b649517.webp?v=1714888873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b24ef01ae733cc4723302c21551b59ca6f1b7627_e2947904-8808-4864-92bb-3b8d28c40639.webp?v=1714888876"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e9f242dc9bc4736e0659fa47a85b4fc4db9791_146bb688-0dff-4bc9-b4ab-5a1e1936c4cf.webp?v=1714888851","options":["color"],"media":[{"alt":null,"id":23889748197475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e9f242dc9bc4736e0659fa47a85b4fc4db9791_146bb688-0dff-4bc9-b4ab-5a1e1936c4cf.webp?v=1714888851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e9f242dc9bc4736e0659fa47a85b4fc4db9791_146bb688-0dff-4bc9-b4ab-5a1e1936c4cf.webp?v=1714888851","width":2000},{"alt":null,"id":23889748623459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187486cf5c57ca4b125ea62d846dc44844f15b38_902a23c4-a3b6-4895-973c-1591e8353717.webp?v=1714888853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187486cf5c57ca4b125ea62d846dc44844f15b38_902a23c4-a3b6-4895-973c-1591e8353717.webp?v=1714888853","width":2000},{"alt":null,"id":23889749114979,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb7c78143f4ed1331e1e19e62423a88dbe2d774e_76cbb0ac-5335-4357-8408-514026cc2476.webp?v=1714888856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb7c78143f4ed1331e1e19e62423a88dbe2d774e_76cbb0ac-5335-4357-8408-514026cc2476.webp?v=1714888856","width":2000},{"alt":null,"id":23889749606499,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113aa2e120060c03a5fd49fe2d1b55b25f579ffd_f55bee01-58d9-4487-bec8-5b4850c04fcf.webp?v=1714888858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113aa2e120060c03a5fd49fe2d1b55b25f579ffd_f55bee01-58d9-4487-bec8-5b4850c04fcf.webp?v=1714888858","width":2000},{"alt":null,"id":23889750589539,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91214ba8df244c7fde23695b18d64d4b14ae4020_8aef375a-8975-4af0-9fa2-187750aa6614.webp?v=1714888861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91214ba8df244c7fde23695b18d64d4b14ae4020_8aef375a-8975-4af0-9fa2-187750aa6614.webp?v=1714888861","width":2000},{"alt":null,"id":23889751146595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbb2cd3920908ad8a86d095fc82d150ea7a1d65_8deee339-552b-47a0-91cf-28b6e59065ac.webp?v=1714888863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbb2cd3920908ad8a86d095fc82d150ea7a1d65_8deee339-552b-47a0-91cf-28b6e59065ac.webp?v=1714888863","width":2000},{"alt":null,"id":23889751670883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22ab59946c92a5231b8769d9f78451f52a3d79f1_5eae3fcc-b7f6-4e1e-8e64-7694bb5a2e36.webp?v=1714888866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22ab59946c92a5231b8769d9f78451f52a3d79f1_5eae3fcc-b7f6-4e1e-8e64-7694bb5a2e36.webp?v=1714888866","width":2000},{"alt":null,"id":23889752293475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74e62f0d43561c34ef662e3aeae73c0c14f84ce9_fa41862c-c021-4570-9e79-8eddab085ac1.webp?v=1714888868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74e62f0d43561c34ef662e3aeae73c0c14f84ce9_fa41862c-c021-4570-9e79-8eddab085ac1.webp?v=1714888868","width":2000},{"alt":null,"id":23889752817763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c862d507fac6e9cd0fa819351d305409d71cc3eb_90b9ea9e-7e21-4df1-8d31-37a9058ebbd0.webp?v=1714888870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c862d507fac6e9cd0fa819351d305409d71cc3eb_90b9ea9e-7e21-4df1-8d31-37a9058ebbd0.webp?v=1714888870","width":2000},{"alt":null,"id":23889753440355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfa7911525ae29ed5c72db0c72540f9853ea19ba_42da5b25-cf7f-4d21-bc29-f5175b649517.webp?v=1714888873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfa7911525ae29ed5c72db0c72540f9853ea19ba_42da5b25-cf7f-4d21-bc29-f5175b649517.webp?v=1714888873","width":2000},{"alt":null,"id":23889754161251,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b24ef01ae733cc4723302c21551b59ca6f1b7627_e2947904-8808-4864-92bb-3b8d28c40639.webp?v=1714888876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b24ef01ae733cc4723302c21551b59ca6f1b7627_e2947904-8808-4864-92bb-3b8d28c40639.webp?v=1714888876","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903320072291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31484457025635,"product_id":7414013100131,"position":6,"created_at":"2024-05-05T14:01:03+08:00","updated_at":"2024-05-05T14:01:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbb2cd3920908ad8a86d095fc82d150ea7a1d65_8deee339-552b-47a0-91cf-28b6e59065ac.webp?v=1714888863","variant_ids":[41903320072291]},"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-PB21","featured_media":{"alt":null,"id":23889751146595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbb2cd3920908ad8a86d095fc82d150ea7a1d65_8deee339-552b-47a0-91cf-28b6e59065ac.webp?v=1714888863"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903320563811,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31484455485539,"product_id":7414013100131,"position":4,"created_at":"2024-05-05T14:00:58+08:00","updated_at":"2024-05-05T14:00:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113aa2e120060c03a5fd49fe2d1b55b25f579ffd_f55bee01-58d9-4487-bec8-5b4850c04fcf.webp?v=1714888858","variant_ids":[41903320563811]},"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-PB21","featured_media":{"alt":null,"id":23889749606499,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113aa2e120060c03a5fd49fe2d1b55b25f579ffd_f55bee01-58d9-4487-bec8-5b4850c04fcf.webp?v=1714888858"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903320072291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31484457025635,"product_id":7414013100131,"position":6,"created_at":"2024-05-05T14:01:03+08:00","updated_at":"2024-05-05T14:01:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbb2cd3920908ad8a86d095fc82d150ea7a1d65_8deee339-552b-47a0-91cf-28b6e59065ac.webp?v=1714888863","variant_ids":[41903320072291]},"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-PB21","featured_media":{"alt":null,"id":23889751146595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecbb2cd3920908ad8a86d095fc82d150ea7a1d65_8deee339-552b-47a0-91cf-28b6e59065ac.webp?v=1714888863"}},"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: "停產" }