$product = {"id":7414164488291,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb60","description":null,"published_at":"2024-06-11T17:49:33+08:00","created_at":"2024-05-05T14:13:47+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":41904558669923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31484819112035,"product_id":7414164488291,"position":6,"created_at":"2024-05-05T14:14:01+08:00","updated_at":"2024-05-05T14:14:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdb1c224b841c12de6a248e855a8b0d62ff90fe_9459dfb4-ba88-46fb-a26d-e3261c7f2020.webp?v=1714889641","variant_ids":[41904558669923]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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-PB60","featured_media":{"alt":null,"id":23890114347107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdb1c224b841c12de6a248e855a8b0d62ff90fe_9459dfb4-ba88-46fb-a26d-e3261c7f2020.webp?v=1714889641"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904559030371,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31484822388835,"product_id":7414164488291,"position":8,"created_at":"2024-05-05T14:14:06+08:00","updated_at":"2024-05-05T14:14:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504c23fa71ad938bb210fc28b379a167055a1285_e4e04a78-fa20-4692-b3ae-ed4336cc9e03.webp?v=1714889646","variant_ids":[41904559030371]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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-PB60","featured_media":{"alt":null,"id":23890117820515,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504c23fa71ad938bb210fc28b379a167055a1285_e4e04a78-fa20-4692-b3ae-ed4336cc9e03.webp?v=1714889646"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e25f6a6a98dbabf9c8aab5d5c5b6d5bfaeb1edf7_8ed1ddd1-98c2-44e6-992c-516fc20c66b6.webp?v=1714889630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c62a693f52ccbe1526c851ed334d42a052ac5b9_7da34369-c3ef-4126-a2df-09d9d29ca5e6.webp?v=1714889632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bc6e009684cf831109db5b7dc9b7de95f5f745_58029c08-c1ac-4df1-bad3-241f92cf2bd2.webp?v=1714889634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5a0b2baf88871b0a513fe1bed0dd4301d0b0832_748398b8-6fca-48ae-9a01-2465ac694959.webp?v=1714889637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/425e7f63c3227d9ac8d81850b34c3a4b3f84f4bf_37d67f95-2cb8-4690-b11c-297a7174e30d.webp?v=1714889639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdb1c224b841c12de6a248e855a8b0d62ff90fe_9459dfb4-ba88-46fb-a26d-e3261c7f2020.webp?v=1714889641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f6d23e44378013af635321885ab3c0ca4ce0ea_4a86c5bb-90c5-4970-822e-4db56b5d1c09.webp?v=1714889644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504c23fa71ad938bb210fc28b379a167055a1285_e4e04a78-fa20-4692-b3ae-ed4336cc9e03.webp?v=1714889646","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6cbb3f32757b03668969f637a438b172eb01845_8f03a55a-6b99-44a1-97cf-ea002e3292fc.webp?v=1714889648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5166a7bfbaae1f43fc73d1e8c8f5be996f837ef9_a626b9eb-d4df-48fa-8672-ec05b579f4c6.webp?v=1714889651","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d15adc06956357980b83e22bb742b96aaf8273e7_00f14456-18c2-4585-ab8c-e63f6f011c69.webp?v=1714889653"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e25f6a6a98dbabf9c8aab5d5c5b6d5bfaeb1edf7_8ed1ddd1-98c2-44e6-992c-516fc20c66b6.webp?v=1714889630","options":["color"],"media":[{"alt":null,"id":23890106024035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e25f6a6a98dbabf9c8aab5d5c5b6d5bfaeb1edf7_8ed1ddd1-98c2-44e6-992c-516fc20c66b6.webp?v=1714889630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e25f6a6a98dbabf9c8aab5d5c5b6d5bfaeb1edf7_8ed1ddd1-98c2-44e6-992c-516fc20c66b6.webp?v=1714889630","width":2000},{"alt":null,"id":23890107760739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c62a693f52ccbe1526c851ed334d42a052ac5b9_7da34369-c3ef-4126-a2df-09d9d29ca5e6.webp?v=1714889632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c62a693f52ccbe1526c851ed334d42a052ac5b9_7da34369-c3ef-4126-a2df-09d9d29ca5e6.webp?v=1714889632","width":2000},{"alt":null,"id":23890109333603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bc6e009684cf831109db5b7dc9b7de95f5f745_58029c08-c1ac-4df1-bad3-241f92cf2bd2.webp?v=1714889634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99bc6e009684cf831109db5b7dc9b7de95f5f745_58029c08-c1ac-4df1-bad3-241f92cf2bd2.webp?v=1714889634","width":2000},{"alt":null,"id":23890111397987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5a0b2baf88871b0a513fe1bed0dd4301d0b0832_748398b8-6fca-48ae-9a01-2465ac694959.webp?v=1714889637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5a0b2baf88871b0a513fe1bed0dd4301d0b0832_748398b8-6fca-48ae-9a01-2465ac694959.webp?v=1714889637","width":2000},{"alt":null,"id":23890112675939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/425e7f63c3227d9ac8d81850b34c3a4b3f84f4bf_37d67f95-2cb8-4690-b11c-297a7174e30d.webp?v=1714889639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/425e7f63c3227d9ac8d81850b34c3a4b3f84f4bf_37d67f95-2cb8-4690-b11c-297a7174e30d.webp?v=1714889639","width":2000},{"alt":null,"id":23890114347107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdb1c224b841c12de6a248e855a8b0d62ff90fe_9459dfb4-ba88-46fb-a26d-e3261c7f2020.webp?v=1714889641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdb1c224b841c12de6a248e855a8b0d62ff90fe_9459dfb4-ba88-46fb-a26d-e3261c7f2020.webp?v=1714889641","width":2000},{"alt":null,"id":23890116182115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f6d23e44378013af635321885ab3c0ca4ce0ea_4a86c5bb-90c5-4970-822e-4db56b5d1c09.webp?v=1714889644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f6d23e44378013af635321885ab3c0ca4ce0ea_4a86c5bb-90c5-4970-822e-4db56b5d1c09.webp?v=1714889644","width":2000},{"alt":null,"id":23890117820515,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504c23fa71ad938bb210fc28b379a167055a1285_e4e04a78-fa20-4692-b3ae-ed4336cc9e03.webp?v=1714889646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504c23fa71ad938bb210fc28b379a167055a1285_e4e04a78-fa20-4692-b3ae-ed4336cc9e03.webp?v=1714889646","width":2000},{"alt":null,"id":23890119393379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6cbb3f32757b03668969f637a438b172eb01845_8f03a55a-6b99-44a1-97cf-ea002e3292fc.webp?v=1714889648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6cbb3f32757b03668969f637a438b172eb01845_8f03a55a-6b99-44a1-97cf-ea002e3292fc.webp?v=1714889648","width":2000},{"alt":null,"id":23890121556067,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5166a7bfbaae1f43fc73d1e8c8f5be996f837ef9_a626b9eb-d4df-48fa-8672-ec05b579f4c6.webp?v=1714889651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5166a7bfbaae1f43fc73d1e8c8f5be996f837ef9_a626b9eb-d4df-48fa-8672-ec05b579f4c6.webp?v=1714889651","width":2000},{"alt":null,"id":23890122866787,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d15adc06956357980b83e22bb742b96aaf8273e7_00f14456-18c2-4585-ab8c-e63f6f011c69.webp?v=1714889653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d15adc06956357980b83e22bb742b96aaf8273e7_00f14456-18c2-4585-ab8c-e63f6f011c69.webp?v=1714889653","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904558669923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31484819112035,"product_id":7414164488291,"position":6,"created_at":"2024-05-05T14:14:01+08:00","updated_at":"2024-05-05T14:14:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdb1c224b841c12de6a248e855a8b0d62ff90fe_9459dfb4-ba88-46fb-a26d-e3261c7f2020.webp?v=1714889641","variant_ids":[41904558669923]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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-PB60","featured_media":{"alt":null,"id":23890114347107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdb1c224b841c12de6a248e855a8b0d62ff90fe_9459dfb4-ba88-46fb-a26d-e3261c7f2020.webp?v=1714889641"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904559030371,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31484822388835,"product_id":7414164488291,"position":8,"created_at":"2024-05-05T14:14:06+08:00","updated_at":"2024-05-05T14:14:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504c23fa71ad938bb210fc28b379a167055a1285_e4e04a78-fa20-4692-b3ae-ed4336cc9e03.webp?v=1714889646","variant_ids":[41904559030371]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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-PB60","featured_media":{"alt":null,"id":23890117820515,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504c23fa71ad938bb210fc28b379a167055a1285_e4e04a78-fa20-4692-b3ae-ed4336cc9e03.webp?v=1714889646"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904558669923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31484819112035,"product_id":7414164488291,"position":6,"created_at":"2024-05-05T14:14:01+08:00","updated_at":"2024-05-05T14:14:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdb1c224b841c12de6a248e855a8b0d62ff90fe_9459dfb4-ba88-46fb-a26d-e3261c7f2020.webp?v=1714889641","variant_ids":[41904558669923]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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-PB60","featured_media":{"alt":null,"id":23890114347107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bdb1c224b841c12de6a248e855a8b0d62ff90fe_9459dfb4-ba88-46fb-a26d-e3261c7f2020.webp?v=1714889641"}},"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: "停產" }