$product = {"id":7414934536291,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-pb77","description":null,"published_at":"2024-06-11T17:53:29+08:00","created_at":"2024-05-05T19:51:43+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":41910093316195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31487722979427,"product_id":7414934536291,"position":10,"created_at":"2024-05-05T19:52:05+08:00","updated_at":"2024-05-05T19:52:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce04b10733b1bcbac22ec812f3c772db3cf9d712_aceb3776-3834-49ec-869d-981d444a7a52.webp?v=1714909925","variant_ids":[41910093316195]},"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-PB77","featured_media":{"alt":null,"id":23893066874979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce04b10733b1bcbac22ec812f3c772db3cf9d712_aceb3776-3834-49ec-869d-981d444a7a52.webp?v=1714909925"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73251e1278e46fae03732221abebc7176783e221_b183814e-abcf-4d12-97e9-e2aee000fd74.webp?v=1714909905","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b8bcdddb45c72aa6e0a4cdb566d47d3f011c95_6756cc2f-5f55-4a56-bc6d-782423a2247a.webp?v=1714909907","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7991a13cd28bfece7e685e4e39ae6f4eaa8d1720_6307b733-ab2d-45ec-b10c-d0271026dba9.webp?v=1714909909","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288582a122f4af774d247a1f115f3733696436fd_9369038d-2ea8-49f1-aefa-f84b269f217a.webp?v=1714909912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d95d3b61a3e1fdfa271a431cc8e73ed0e0aa33e_415d4a59-0bfc-476e-9b39-a0389df3631a.webp?v=1714909914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/562a128e8508b76eb029d368d1bd9e710a7f089c_97fa994e-540d-4e2a-919f-e9e25569827a.webp?v=1714909916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47c2b9901a0490eb7d554e62c937b2067610c7c9_b66d3842-89f8-4210-ab5d-37fd8e50f6cf.webp?v=1714909918","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d090e98634c8ed1b46b7cf21d15756b97b346386_dcfcb015-725c-460c-af94-8a93fce16330.webp?v=1714909920","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4aff5efed43ce86505dd4d382ab13899d9a3e260_7f706370-1ed6-44b5-83d3-78022d9ef3c8.webp?v=1714909923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce04b10733b1bcbac22ec812f3c772db3cf9d712_aceb3776-3834-49ec-869d-981d444a7a52.webp?v=1714909925"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73251e1278e46fae03732221abebc7176783e221_b183814e-abcf-4d12-97e9-e2aee000fd74.webp?v=1714909905","options":["color"],"media":[{"alt":null,"id":23893062287459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73251e1278e46fae03732221abebc7176783e221_b183814e-abcf-4d12-97e9-e2aee000fd74.webp?v=1714909905"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73251e1278e46fae03732221abebc7176783e221_b183814e-abcf-4d12-97e9-e2aee000fd74.webp?v=1714909905","width":2000},{"alt":null,"id":23893062811747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b8bcdddb45c72aa6e0a4cdb566d47d3f011c95_6756cc2f-5f55-4a56-bc6d-782423a2247a.webp?v=1714909907"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b8bcdddb45c72aa6e0a4cdb566d47d3f011c95_6756cc2f-5f55-4a56-bc6d-782423a2247a.webp?v=1714909907","width":2000},{"alt":null,"id":23893063204963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7991a13cd28bfece7e685e4e39ae6f4eaa8d1720_6307b733-ab2d-45ec-b10c-d0271026dba9.webp?v=1714909909"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7991a13cd28bfece7e685e4e39ae6f4eaa8d1720_6307b733-ab2d-45ec-b10c-d0271026dba9.webp?v=1714909909","width":2000},{"alt":null,"id":23893063663715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288582a122f4af774d247a1f115f3733696436fd_9369038d-2ea8-49f1-aefa-f84b269f217a.webp?v=1714909912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288582a122f4af774d247a1f115f3733696436fd_9369038d-2ea8-49f1-aefa-f84b269f217a.webp?v=1714909912","width":2000},{"alt":null,"id":23893064089699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d95d3b61a3e1fdfa271a431cc8e73ed0e0aa33e_415d4a59-0bfc-476e-9b39-a0389df3631a.webp?v=1714909914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d95d3b61a3e1fdfa271a431cc8e73ed0e0aa33e_415d4a59-0bfc-476e-9b39-a0389df3631a.webp?v=1714909914","width":2000},{"alt":null,"id":23893064646755,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/562a128e8508b76eb029d368d1bd9e710a7f089c_97fa994e-540d-4e2a-919f-e9e25569827a.webp?v=1714909916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/562a128e8508b76eb029d368d1bd9e710a7f089c_97fa994e-540d-4e2a-919f-e9e25569827a.webp?v=1714909916","width":2000},{"alt":null,"id":23893064974435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47c2b9901a0490eb7d554e62c937b2067610c7c9_b66d3842-89f8-4210-ab5d-37fd8e50f6cf.webp?v=1714909918"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47c2b9901a0490eb7d554e62c937b2067610c7c9_b66d3842-89f8-4210-ab5d-37fd8e50f6cf.webp?v=1714909918","width":2000},{"alt":null,"id":23893065760867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d090e98634c8ed1b46b7cf21d15756b97b346386_dcfcb015-725c-460c-af94-8a93fce16330.webp?v=1714909920"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d090e98634c8ed1b46b7cf21d15756b97b346386_dcfcb015-725c-460c-af94-8a93fce16330.webp?v=1714909920","width":2000},{"alt":null,"id":23893066186851,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4aff5efed43ce86505dd4d382ab13899d9a3e260_7f706370-1ed6-44b5-83d3-78022d9ef3c8.webp?v=1714909923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4aff5efed43ce86505dd4d382ab13899d9a3e260_7f706370-1ed6-44b5-83d3-78022d9ef3c8.webp?v=1714909923","width":2000},{"alt":null,"id":23893066874979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce04b10733b1bcbac22ec812f3c772db3cf9d712_aceb3776-3834-49ec-869d-981d444a7a52.webp?v=1714909925"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce04b10733b1bcbac22ec812f3c772db3cf9d712_aceb3776-3834-49ec-869d-981d444a7a52.webp?v=1714909925","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910093316195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31487722979427,"product_id":7414934536291,"position":10,"created_at":"2024-05-05T19:52:05+08:00","updated_at":"2024-05-05T19:52:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce04b10733b1bcbac22ec812f3c772db3cf9d712_aceb3776-3834-49ec-869d-981d444a7a52.webp?v=1714909925","variant_ids":[41910093316195]},"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-PB77","featured_media":{"alt":null,"id":23893066874979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce04b10733b1bcbac22ec812f3c772db3cf9d712_aceb3776-3834-49ec-869d-981d444a7a52.webp?v=1714909925"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910093316195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31487722979427,"product_id":7414934536291,"position":10,"created_at":"2024-05-05T19:52:05+08:00","updated_at":"2024-05-05T19:52:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce04b10733b1bcbac22ec812f3c772db3cf9d712_aceb3776-3834-49ec-869d-981d444a7a52.webp?v=1714909925","variant_ids":[41910093316195]},"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-PB77","featured_media":{"alt":null,"id":23893066874979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce04b10733b1bcbac22ec812f3c772db3cf9d712_aceb3776-3834-49ec-869d-981d444a7a52.webp?v=1714909925"}},"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: "停產" }