$product = {"id":7414963437667,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-pb72","description":null,"published_at":"2024-06-11T17:54:16+08:00","created_at":"2024-05-05T19:56: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 12 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":41910408413283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31487792382051,"product_id":7414963437667,"position":6,"created_at":"2024-05-05T19:57:03+08:00","updated_at":"2024-05-05T19:57:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a3f9a1320a7ed74aa52dab0d7b40fbad9b1d3d3_2c4dea8c-cb7a-4c2e-8951-de601b9290d1.webp?v=1714910223","variant_ids":[41910408413283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-PB72","featured_media":{"alt":null,"id":23893136343139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a3f9a1320a7ed74aa52dab0d7b40fbad9b1d3d3_2c4dea8c-cb7a-4c2e-8951-de601b9290d1.webp?v=1714910223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f539315a047917bcca7954ea07bef1225af006f_f99cfff6-84e7-4680-8983-1b2dd33de129.webp?v=1714910211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547c5bd6ecf17f6f2c7fbb201adabee588c16fdb_f18f2b56-38ea-4f50-8de9-d019d999aedb.webp?v=1714910214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f4b14605a970e8fd05245e29b78e7ff9e2696ba_88d7eef6-aa85-4b8b-8541-6271a8615c5e.webp?v=1714910216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02e4f5f008d107414c2233aa72c3ec815014d6cd_f37d2d85-72a4-4dd9-b343-b8fa19d5ac85.webp?v=1714910218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4bceee9c2a25baf0a3fd71856d144ef35ac076f_eca7b1e0-1eaa-47b7-848a-5c7087cb2784.webp?v=1714910221","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a3f9a1320a7ed74aa52dab0d7b40fbad9b1d3d3_2c4dea8c-cb7a-4c2e-8951-de601b9290d1.webp?v=1714910223","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c18ca5c5f22c215db5717d09ec17b28d616071c_ca51aad3-a220-4b66-8d76-3321b03bdb20.webp?v=1714910225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c4457bdb47a5e762829c0cd6b01465619dcef7_e9aac672-00e8-49f2-b763-f7068418781a.webp?v=1714910228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f4e8d2aeba1b817736bc432c1ac2ff00641c0d0_71472aaf-b55f-4195-8b4e-b270b9a11d5a.webp?v=1714910230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85795b56e656cc4633c1bf6b54a2c2590565bc55_1dcad8b2-8ec5-4b19-884b-d775113853cd.webp?v=1714910233"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f539315a047917bcca7954ea07bef1225af006f_f99cfff6-84e7-4680-8983-1b2dd33de129.webp?v=1714910211","options":["color"],"media":[{"alt":null,"id":23893133623395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f539315a047917bcca7954ea07bef1225af006f_f99cfff6-84e7-4680-8983-1b2dd33de129.webp?v=1714910211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f539315a047917bcca7954ea07bef1225af006f_f99cfff6-84e7-4680-8983-1b2dd33de129.webp?v=1714910211","width":2000},{"alt":null,"id":23893134180451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547c5bd6ecf17f6f2c7fbb201adabee588c16fdb_f18f2b56-38ea-4f50-8de9-d019d999aedb.webp?v=1714910214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547c5bd6ecf17f6f2c7fbb201adabee588c16fdb_f18f2b56-38ea-4f50-8de9-d019d999aedb.webp?v=1714910214","width":2000},{"alt":null,"id":23893134508131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f4b14605a970e8fd05245e29b78e7ff9e2696ba_88d7eef6-aa85-4b8b-8541-6271a8615c5e.webp?v=1714910216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f4b14605a970e8fd05245e29b78e7ff9e2696ba_88d7eef6-aa85-4b8b-8541-6271a8615c5e.webp?v=1714910216","width":2000},{"alt":null,"id":23893135294563,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02e4f5f008d107414c2233aa72c3ec815014d6cd_f37d2d85-72a4-4dd9-b343-b8fa19d5ac85.webp?v=1714910218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02e4f5f008d107414c2233aa72c3ec815014d6cd_f37d2d85-72a4-4dd9-b343-b8fa19d5ac85.webp?v=1714910218","width":2000},{"alt":null,"id":23893135622243,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4bceee9c2a25baf0a3fd71856d144ef35ac076f_eca7b1e0-1eaa-47b7-848a-5c7087cb2784.webp?v=1714910221"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4bceee9c2a25baf0a3fd71856d144ef35ac076f_eca7b1e0-1eaa-47b7-848a-5c7087cb2784.webp?v=1714910221","width":2000},{"alt":null,"id":23893136343139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a3f9a1320a7ed74aa52dab0d7b40fbad9b1d3d3_2c4dea8c-cb7a-4c2e-8951-de601b9290d1.webp?v=1714910223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a3f9a1320a7ed74aa52dab0d7b40fbad9b1d3d3_2c4dea8c-cb7a-4c2e-8951-de601b9290d1.webp?v=1714910223","width":2000},{"alt":null,"id":23893136801891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c18ca5c5f22c215db5717d09ec17b28d616071c_ca51aad3-a220-4b66-8d76-3321b03bdb20.webp?v=1714910225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c18ca5c5f22c215db5717d09ec17b28d616071c_ca51aad3-a220-4b66-8d76-3321b03bdb20.webp?v=1714910225","width":2000},{"alt":null,"id":23893137227875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c4457bdb47a5e762829c0cd6b01465619dcef7_e9aac672-00e8-49f2-b763-f7068418781a.webp?v=1714910228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c4457bdb47a5e762829c0cd6b01465619dcef7_e9aac672-00e8-49f2-b763-f7068418781a.webp?v=1714910228","width":2000},{"alt":null,"id":23893137588323,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f4e8d2aeba1b817736bc432c1ac2ff00641c0d0_71472aaf-b55f-4195-8b4e-b270b9a11d5a.webp?v=1714910230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f4e8d2aeba1b817736bc432c1ac2ff00641c0d0_71472aaf-b55f-4195-8b4e-b270b9a11d5a.webp?v=1714910230","width":2000},{"alt":null,"id":23893138210915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85795b56e656cc4633c1bf6b54a2c2590565bc55_1dcad8b2-8ec5-4b19-884b-d775113853cd.webp?v=1714910233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85795b56e656cc4633c1bf6b54a2c2590565bc55_1dcad8b2-8ec5-4b19-884b-d775113853cd.webp?v=1714910233","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910408413283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31487792382051,"product_id":7414963437667,"position":6,"created_at":"2024-05-05T19:57:03+08:00","updated_at":"2024-05-05T19:57:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a3f9a1320a7ed74aa52dab0d7b40fbad9b1d3d3_2c4dea8c-cb7a-4c2e-8951-de601b9290d1.webp?v=1714910223","variant_ids":[41910408413283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-PB72","featured_media":{"alt":null,"id":23893136343139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a3f9a1320a7ed74aa52dab0d7b40fbad9b1d3d3_2c4dea8c-cb7a-4c2e-8951-de601b9290d1.webp?v=1714910223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910408413283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31487792382051,"product_id":7414963437667,"position":6,"created_at":"2024-05-05T19:57:03+08:00","updated_at":"2024-05-05T19:57:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a3f9a1320a7ed74aa52dab0d7b40fbad9b1d3d3_2c4dea8c-cb7a-4c2e-8951-de601b9290d1.webp?v=1714910223","variant_ids":[41910408413283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-PB72","featured_media":{"alt":null,"id":23893136343139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a3f9a1320a7ed74aa52dab0d7b40fbad9b1d3d3_2c4dea8c-cb7a-4c2e-8951-de601b9290d1.webp?v=1714910223"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }