$product = {"id":7411319275619,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 大自然的傑作(斯瓦爾巴冰川)","handle":"iphone-14-plus-mod-nx-magsafe-printable-af10","description":null,"published_at":"2024-06-11T17:41:43+08:00","created_at":"2024-05-05T00:06:42+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41897390375011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480129355875,"product_id":7411319275619,"position":3,"created_at":"2024-05-05T00:06:50+08:00","updated_at":"2024-05-05T00:06:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06bb31593a59b325cfaa5ae4e4759e5de997f2e7_e435980b-f0d0-45b8-8980-3ec2dfe2501b.webp?v=1714838810","variant_ids":[41897390375011]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AF10","featured_media":{"alt":null,"id":23885380223075,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06bb31593a59b325cfaa5ae4e4759e5de997f2e7_e435980b-f0d0-45b8-8980-3ec2dfe2501b.webp?v=1714838810"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b563bf9d4c02cff9ec3d698b78afa60f6b42ffa6_e56db7d4-de88-4684-a5bd-036caa2c57d6.webp?v=1714838805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9365bbb9dbd17f41c427c6bfba25be5b231f6c9b_24978bac-434e-4ee9-9e00-35eec491d085.webp?v=1714838807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06bb31593a59b325cfaa5ae4e4759e5de997f2e7_e435980b-f0d0-45b8-8980-3ec2dfe2501b.webp?v=1714838810","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c3df0587ea855441dfe7794bf000792f124440_097a587f-5aa3-4fcd-bec0-73f3583f0064.webp?v=1714838812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dbb594c681c391d9b85d4dcff1f51df4f4cff2e_e73b297d-0e80-44c2-9b62-164cb5d9780e.webp?v=1714838815","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10dcfd56352a22e733d5e3a3718256cbe8cd771a_ff34b149-bf9d-4687-901e-d44d95d40633.webp?v=1714838817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58455e75200728dedd486f8bead5c0d03887132a_a7975cab-7380-4828-a21f-f83f564acbd9.webp?v=1714838820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0e9d2b222ed495b6368ac0784dada25670168bf_87a819b5-d86c-4b06-b1ed-e19586019fe8.webp?v=1714838822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfafb06290066fe853cfbe99c4b21385577a0817_ccc1b01b-6c31-442e-90e9-97be7ee337f6.webp?v=1714838825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f88ba66ceed5ab25ed41816c5398eca97f751c_645a8b5c-2eba-4923-b434-323620d42279.webp?v=1714838827"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b563bf9d4c02cff9ec3d698b78afa60f6b42ffa6_e56db7d4-de88-4684-a5bd-036caa2c57d6.webp?v=1714838805","options":["color"],"media":[{"alt":null,"id":23885379305571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b563bf9d4c02cff9ec3d698b78afa60f6b42ffa6_e56db7d4-de88-4684-a5bd-036caa2c57d6.webp?v=1714838805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b563bf9d4c02cff9ec3d698b78afa60f6b42ffa6_e56db7d4-de88-4684-a5bd-036caa2c57d6.webp?v=1714838805","width":2000},{"alt":null,"id":23885379797091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9365bbb9dbd17f41c427c6bfba25be5b231f6c9b_24978bac-434e-4ee9-9e00-35eec491d085.webp?v=1714838807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9365bbb9dbd17f41c427c6bfba25be5b231f6c9b_24978bac-434e-4ee9-9e00-35eec491d085.webp?v=1714838807","width":2000},{"alt":null,"id":23885380223075,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06bb31593a59b325cfaa5ae4e4759e5de997f2e7_e435980b-f0d0-45b8-8980-3ec2dfe2501b.webp?v=1714838810"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06bb31593a59b325cfaa5ae4e4759e5de997f2e7_e435980b-f0d0-45b8-8980-3ec2dfe2501b.webp?v=1714838810","width":2000},{"alt":null,"id":23885380911203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c3df0587ea855441dfe7794bf000792f124440_097a587f-5aa3-4fcd-bec0-73f3583f0064.webp?v=1714838812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c3df0587ea855441dfe7794bf000792f124440_097a587f-5aa3-4fcd-bec0-73f3583f0064.webp?v=1714838812","width":2000},{"alt":null,"id":23885381566563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dbb594c681c391d9b85d4dcff1f51df4f4cff2e_e73b297d-0e80-44c2-9b62-164cb5d9780e.webp?v=1714838815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dbb594c681c391d9b85d4dcff1f51df4f4cff2e_e73b297d-0e80-44c2-9b62-164cb5d9780e.webp?v=1714838815","width":2000},{"alt":null,"id":23885381959779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10dcfd56352a22e733d5e3a3718256cbe8cd771a_ff34b149-bf9d-4687-901e-d44d95d40633.webp?v=1714838817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10dcfd56352a22e733d5e3a3718256cbe8cd771a_ff34b149-bf9d-4687-901e-d44d95d40633.webp?v=1714838817","width":2000},{"alt":null,"id":23885382647907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58455e75200728dedd486f8bead5c0d03887132a_a7975cab-7380-4828-a21f-f83f564acbd9.webp?v=1714838820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58455e75200728dedd486f8bead5c0d03887132a_a7975cab-7380-4828-a21f-f83f564acbd9.webp?v=1714838820","width":2000},{"alt":null,"id":23885383106659,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0e9d2b222ed495b6368ac0784dada25670168bf_87a819b5-d86c-4b06-b1ed-e19586019fe8.webp?v=1714838822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0e9d2b222ed495b6368ac0784dada25670168bf_87a819b5-d86c-4b06-b1ed-e19586019fe8.webp?v=1714838822","width":2000},{"alt":null,"id":23885383499875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfafb06290066fe853cfbe99c4b21385577a0817_ccc1b01b-6c31-442e-90e9-97be7ee337f6.webp?v=1714838825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfafb06290066fe853cfbe99c4b21385577a0817_ccc1b01b-6c31-442e-90e9-97be7ee337f6.webp?v=1714838825","width":2000},{"alt":null,"id":23885384056931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f88ba66ceed5ab25ed41816c5398eca97f751c_645a8b5c-2eba-4923-b434-323620d42279.webp?v=1714838827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f88ba66ceed5ab25ed41816c5398eca97f751c_645a8b5c-2eba-4923-b434-323620d42279.webp?v=1714838827","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897390375011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480129355875,"product_id":7411319275619,"position":3,"created_at":"2024-05-05T00:06:50+08:00","updated_at":"2024-05-05T00:06:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06bb31593a59b325cfaa5ae4e4759e5de997f2e7_e435980b-f0d0-45b8-8980-3ec2dfe2501b.webp?v=1714838810","variant_ids":[41897390375011]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AF10","featured_media":{"alt":null,"id":23885380223075,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06bb31593a59b325cfaa5ae4e4759e5de997f2e7_e435980b-f0d0-45b8-8980-3ec2dfe2501b.webp?v=1714838810"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897390375011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480129355875,"product_id":7411319275619,"position":3,"created_at":"2024-05-05T00:06:50+08:00","updated_at":"2024-05-05T00:06:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06bb31593a59b325cfaa5ae4e4759e5de997f2e7_e435980b-f0d0-45b8-8980-3ec2dfe2501b.webp?v=1714838810","variant_ids":[41897390375011]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 大自然的傑作(斯瓦爾巴冰川) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AF10","featured_media":{"alt":null,"id":23885380223075,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06bb31593a59b325cfaa5ae4e4759e5de997f2e7_e435980b-f0d0-45b8-8980-3ec2dfe2501b.webp?v=1714838810"}},"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: "停產" }