$product = {"id":7414975463523,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - POP全載具3","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb26","description":null,"published_at":"2024-06-11T17:54:36+08:00","created_at":"2024-05-05T19:59:01+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 mini","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":41910531784803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31487826165859,"product_id":7414975463523,"position":10,"created_at":"2024-05-05T19:59:26+08:00","updated_at":"2024-05-05T19:59:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818f361b44a2e0e6b283d658a8bed77d28d89a72_cb4ad490-57c3-41c3-be34-308690a3a9ba.webp?v=1714910366","variant_ids":[41910531784803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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":"MPB0118424-PB26","featured_media":{"alt":null,"id":23893170192483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818f361b44a2e0e6b283d658a8bed77d28d89a72_cb4ad490-57c3-41c3-be34-308690a3a9ba.webp?v=1714910366"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6266f2ee54426c176c225b1b741ef02cfaa5c061_78165c36-4a36-400d-9737-dafff2b5db84.webp?v=1714910344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d55c67f3a234d46c229fd93ecbdedac949600d2_046b53b0-d7dc-450c-ac28-7ec8c9bccbe5.webp?v=1714910346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/267e7bf997822697050027052e6ebe8e3fdbdefc_7b0099d3-8a8f-45d8-8b4d-89449b273ee7.webp?v=1714910349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/715a6136558270e075255c9f301fd94a24f34acd_06083024-d2bd-4e25-a070-993e7569b733.webp?v=1714910351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f60ebd9736816f3ed1e5bbd0227817ab16479be7_e97e6ec9-74e8-4ea5-b58d-0bc0bcba6665.webp?v=1714910354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1efeecd46196408c1f61ffc0ee1fa2e671df0db_927e3370-3d80-442e-926f-f0e88e94b255.webp?v=1714910356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e14c8914da38313788ae44d0399bd9007d48091f_8f67060c-bb58-4b52-a655-b354802e84f8.webp?v=1714910359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8288d6cc3b74374a3299cd260504446b79897eb6_01377db1-76ea-4688-a67b-6d86ae865912.webp?v=1714910361","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11d0662f134b8b84beeae35da0e7d3d9e9b3a8_e6b25211-6869-4773-b0b5-c0fd09d50376.webp?v=1714910363","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818f361b44a2e0e6b283d658a8bed77d28d89a72_cb4ad490-57c3-41c3-be34-308690a3a9ba.webp?v=1714910366","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04aacf13eef43d86e5d998bb6696cae480766ceb_0167692a-2934-464b-afc3-0a04ca7d5b56.webp?v=1714910368"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6266f2ee54426c176c225b1b741ef02cfaa5c061_78165c36-4a36-400d-9737-dafff2b5db84.webp?v=1714910344","options":["color"],"media":[{"alt":null,"id":23893164851299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6266f2ee54426c176c225b1b741ef02cfaa5c061_78165c36-4a36-400d-9737-dafff2b5db84.webp?v=1714910344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6266f2ee54426c176c225b1b741ef02cfaa5c061_78165c36-4a36-400d-9737-dafff2b5db84.webp?v=1714910344","width":2000},{"alt":null,"id":23893165211747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d55c67f3a234d46c229fd93ecbdedac949600d2_046b53b0-d7dc-450c-ac28-7ec8c9bccbe5.webp?v=1714910346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d55c67f3a234d46c229fd93ecbdedac949600d2_046b53b0-d7dc-450c-ac28-7ec8c9bccbe5.webp?v=1714910346","width":2000},{"alt":null,"id":23893165801571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/267e7bf997822697050027052e6ebe8e3fdbdefc_7b0099d3-8a8f-45d8-8b4d-89449b273ee7.webp?v=1714910349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/267e7bf997822697050027052e6ebe8e3fdbdefc_7b0099d3-8a8f-45d8-8b4d-89449b273ee7.webp?v=1714910349","width":2000},{"alt":null,"id":23893166391395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/715a6136558270e075255c9f301fd94a24f34acd_06083024-d2bd-4e25-a070-993e7569b733.webp?v=1714910351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/715a6136558270e075255c9f301fd94a24f34acd_06083024-d2bd-4e25-a070-993e7569b733.webp?v=1714910351","width":2000},{"alt":null,"id":23893167112291,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f60ebd9736816f3ed1e5bbd0227817ab16479be7_e97e6ec9-74e8-4ea5-b58d-0bc0bcba6665.webp?v=1714910354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f60ebd9736816f3ed1e5bbd0227817ab16479be7_e97e6ec9-74e8-4ea5-b58d-0bc0bcba6665.webp?v=1714910354","width":2000},{"alt":null,"id":23893167669347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1efeecd46196408c1f61ffc0ee1fa2e671df0db_927e3370-3d80-442e-926f-f0e88e94b255.webp?v=1714910356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1efeecd46196408c1f61ffc0ee1fa2e671df0db_927e3370-3d80-442e-926f-f0e88e94b255.webp?v=1714910356","width":2000},{"alt":null,"id":23893168062563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e14c8914da38313788ae44d0399bd9007d48091f_8f67060c-bb58-4b52-a655-b354802e84f8.webp?v=1714910359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e14c8914da38313788ae44d0399bd9007d48091f_8f67060c-bb58-4b52-a655-b354802e84f8.webp?v=1714910359","width":2000},{"alt":null,"id":23893169078371,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8288d6cc3b74374a3299cd260504446b79897eb6_01377db1-76ea-4688-a67b-6d86ae865912.webp?v=1714910361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8288d6cc3b74374a3299cd260504446b79897eb6_01377db1-76ea-4688-a67b-6d86ae865912.webp?v=1714910361","width":2000},{"alt":null,"id":23893169471587,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11d0662f134b8b84beeae35da0e7d3d9e9b3a8_e6b25211-6869-4773-b0b5-c0fd09d50376.webp?v=1714910363"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f11d0662f134b8b84beeae35da0e7d3d9e9b3a8_e6b25211-6869-4773-b0b5-c0fd09d50376.webp?v=1714910363","width":2000},{"alt":null,"id":23893170192483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818f361b44a2e0e6b283d658a8bed77d28d89a72_cb4ad490-57c3-41c3-be34-308690a3a9ba.webp?v=1714910366"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818f361b44a2e0e6b283d658a8bed77d28d89a72_cb4ad490-57c3-41c3-be34-308690a3a9ba.webp?v=1714910366","width":2000},{"alt":null,"id":23893170487395,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04aacf13eef43d86e5d998bb6696cae480766ceb_0167692a-2934-464b-afc3-0a04ca7d5b56.webp?v=1714910368"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04aacf13eef43d86e5d998bb6696cae480766ceb_0167692a-2934-464b-afc3-0a04ca7d5b56.webp?v=1714910368","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910531784803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31487826165859,"product_id":7414975463523,"position":10,"created_at":"2024-05-05T19:59:26+08:00","updated_at":"2024-05-05T19:59:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818f361b44a2e0e6b283d658a8bed77d28d89a72_cb4ad490-57c3-41c3-be34-308690a3a9ba.webp?v=1714910366","variant_ids":[41910531784803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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":"MPB0118424-PB26","featured_media":{"alt":null,"id":23893170192483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818f361b44a2e0e6b283d658a8bed77d28d89a72_cb4ad490-57c3-41c3-be34-308690a3a9ba.webp?v=1714910366"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910531784803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31487826165859,"product_id":7414975463523,"position":10,"created_at":"2024-05-05T19:59:26+08:00","updated_at":"2024-05-05T19:59:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818f361b44a2e0e6b283d658a8bed77d28d89a72_cb4ad490-57c3-41c3-be34-308690a3a9ba.webp?v=1714910366","variant_ids":[41910531784803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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":"MPB0118424-PB26","featured_media":{"alt":null,"id":23893170192483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818f361b44a2e0e6b283d658a8bed77d28d89a72_cb4ad490-57c3-41c3-be34-308690a3a9ba.webp?v=1714910366"}},"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: "停產" }