$product = {"id":7411345358947,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 星球大戰-貼紙系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb98","description":null,"published_at":"2024-06-11T17:42:27+08:00","created_at":"2024-05-05T00:11:44+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 14 Plus","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":41897719890019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31480191254627,"product_id":7411345358947,"position":1,"created_at":"2024-05-05T00:11:47+08:00","updated_at":"2024-05-05T00:11:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a6312ac1920d07bb5c440746bee9f58c88aefc1_127aaf88-f8ff-4e79-aec1-d908d555004b.webp?v=1714839107","variant_ids":[41897719890019]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB98","featured_media":{"alt":null,"id":23885442318435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a6312ac1920d07bb5c440746bee9f58c88aefc1_127aaf88-f8ff-4e79-aec1-d908d555004b.webp?v=1714839107"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a6312ac1920d07bb5c440746bee9f58c88aefc1_127aaf88-f8ff-4e79-aec1-d908d555004b.webp?v=1714839107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9070d0fae75989314a30c5d9779ce497a1b5afcb_a2e85ad4-ce94-4a27-9a6a-bf09e2e1c566.webp?v=1714839109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ce611cf2f981ea133c37d22be9a41023e36b6a_652c3b0d-7238-47e5-a994-2e5572a38c86.webp?v=1714839112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cf000f60abf2061f1fbbea07318ab1a493c6953_96bac17f-71cd-4a19-9374-4a32117b395b.webp?v=1714839114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a67dd61fb8b5df4ac15ec3daa9e5b160ff01f6bd_b7df3300-05e2-4d10-983a-0f8d30bcc0f6.webp?v=1714839117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66939636bd305f189cf06202a8a8136a47550e8e_368e862c-2b49-4aa2-83a3-90a3f49253d2.webp?v=1714839119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05dc161fb50a99826eec2358150d81dd2df1f857_ca042f68-6f7f-4cfd-a1ba-e0e82dabdc08.webp?v=1714839122","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ede9e4fe74d4d8b8df17fd2b37ee97009864e241_079197a2-9cef-41c5-81a5-cc76b07773e4.webp?v=1714839124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ab833e1d7dfc6e2048bc7f12520593bf148639e_5c470161-1063-49ee-86ff-ea6fddd40729.webp?v=1714839127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91e703f81b19d3c842a38c60d3f957f490ad4415_adde53bb-a4ca-4fa0-a815-c234a20bed77.webp?v=1714839129"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a6312ac1920d07bb5c440746bee9f58c88aefc1_127aaf88-f8ff-4e79-aec1-d908d555004b.webp?v=1714839107","options":["color"],"media":[{"alt":null,"id":23885442318435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a6312ac1920d07bb5c440746bee9f58c88aefc1_127aaf88-f8ff-4e79-aec1-d908d555004b.webp?v=1714839107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a6312ac1920d07bb5c440746bee9f58c88aefc1_127aaf88-f8ff-4e79-aec1-d908d555004b.webp?v=1714839107","width":2000},{"alt":null,"id":23885442744419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9070d0fae75989314a30c5d9779ce497a1b5afcb_a2e85ad4-ce94-4a27-9a6a-bf09e2e1c566.webp?v=1714839109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9070d0fae75989314a30c5d9779ce497a1b5afcb_a2e85ad4-ce94-4a27-9a6a-bf09e2e1c566.webp?v=1714839109","width":2000},{"alt":null,"id":23885443170403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ce611cf2f981ea133c37d22be9a41023e36b6a_652c3b0d-7238-47e5-a994-2e5572a38c86.webp?v=1714839112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ce611cf2f981ea133c37d22be9a41023e36b6a_652c3b0d-7238-47e5-a994-2e5572a38c86.webp?v=1714839112","width":2000},{"alt":null,"id":23885444022371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cf000f60abf2061f1fbbea07318ab1a493c6953_96bac17f-71cd-4a19-9374-4a32117b395b.webp?v=1714839114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cf000f60abf2061f1fbbea07318ab1a493c6953_96bac17f-71cd-4a19-9374-4a32117b395b.webp?v=1714839114","width":2000},{"alt":null,"id":23885444415587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a67dd61fb8b5df4ac15ec3daa9e5b160ff01f6bd_b7df3300-05e2-4d10-983a-0f8d30bcc0f6.webp?v=1714839117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a67dd61fb8b5df4ac15ec3daa9e5b160ff01f6bd_b7df3300-05e2-4d10-983a-0f8d30bcc0f6.webp?v=1714839117","width":2000},{"alt":null,"id":23885445005411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66939636bd305f189cf06202a8a8136a47550e8e_368e862c-2b49-4aa2-83a3-90a3f49253d2.webp?v=1714839119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66939636bd305f189cf06202a8a8136a47550e8e_368e862c-2b49-4aa2-83a3-90a3f49253d2.webp?v=1714839119","width":2000},{"alt":null,"id":23885445529699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05dc161fb50a99826eec2358150d81dd2df1f857_ca042f68-6f7f-4cfd-a1ba-e0e82dabdc08.webp?v=1714839122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05dc161fb50a99826eec2358150d81dd2df1f857_ca042f68-6f7f-4cfd-a1ba-e0e82dabdc08.webp?v=1714839122","width":2000},{"alt":null,"id":23885446152291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ede9e4fe74d4d8b8df17fd2b37ee97009864e241_079197a2-9cef-41c5-81a5-cc76b07773e4.webp?v=1714839124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ede9e4fe74d4d8b8df17fd2b37ee97009864e241_079197a2-9cef-41c5-81a5-cc76b07773e4.webp?v=1714839124","width":2000},{"alt":null,"id":23885446643811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ab833e1d7dfc6e2048bc7f12520593bf148639e_5c470161-1063-49ee-86ff-ea6fddd40729.webp?v=1714839127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ab833e1d7dfc6e2048bc7f12520593bf148639e_5c470161-1063-49ee-86ff-ea6fddd40729.webp?v=1714839127","width":2000},{"alt":null,"id":23885447364707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91e703f81b19d3c842a38c60d3f957f490ad4415_adde53bb-a4ca-4fa0-a815-c234a20bed77.webp?v=1714839129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91e703f81b19d3c842a38c60d3f957f490ad4415_adde53bb-a4ca-4fa0-a815-c234a20bed77.webp?v=1714839129","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897719890019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31480191254627,"product_id":7411345358947,"position":1,"created_at":"2024-05-05T00:11:47+08:00","updated_at":"2024-05-05T00:11:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a6312ac1920d07bb5c440746bee9f58c88aefc1_127aaf88-f8ff-4e79-aec1-d908d555004b.webp?v=1714839107","variant_ids":[41897719890019]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB98","featured_media":{"alt":null,"id":23885442318435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a6312ac1920d07bb5c440746bee9f58c88aefc1_127aaf88-f8ff-4e79-aec1-d908d555004b.webp?v=1714839107"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897719890019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31480191254627,"product_id":7411345358947,"position":1,"created_at":"2024-05-05T00:11:47+08:00","updated_at":"2024-05-05T00:11:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a6312ac1920d07bb5c440746bee9f58c88aefc1_127aaf88-f8ff-4e79-aec1-d908d555004b.webp?v=1714839107","variant_ids":[41897719890019]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB98","featured_media":{"alt":null,"id":23885442318435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a6312ac1920d07bb5c440746bee9f58c88aefc1_127aaf88-f8ff-4e79-aec1-d908d555004b.webp?v=1714839107"}},"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: "停產" }