$product = {"id":7415102767203,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb72","description":null,"published_at":"2024-06-11T17:58:02+08:00","created_at":"2024-05-05T20:23:15+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":41911892148323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31488169508963,"product_id":7415102767203,"position":8,"created_at":"2024-05-05T20:23:35+08:00","updated_at":"2024-05-05T20:23:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a6c6d45c6d0fa487bacf6007969b1d41e190b7d_5c839257-3cf6-4d96-b044-58496305e01a.webp?v=1714911815","variant_ids":[41911892148323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB72","featured_media":{"alt":null,"id":23893514125411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a6c6d45c6d0fa487bacf6007969b1d41e190b7d_5c839257-3cf6-4d96-b044-58496305e01a.webp?v=1714911815"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1597e53c13c4ee0db8c470c8cace8874a7a88c75_c9c1b06a-ba2b-4117-ba58-357f8f5aa8d0.webp?v=1714911798","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08e7e81e6c904aec7cfdfdce399c796970ffe6ab_6dafa474-28b0-4414-b3ba-41b929c68122.webp?v=1714911800","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7419b021830f6894ef67a15edf82a8668170de2_2d053fd5-3983-4070-b9d2-1dea673bf55b.webp?v=1714911803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36134d99eae61801c9b6865e74ab890b8744eb27_95767001-bd66-47db-81b9-b8b41d76a4d9.webp?v=1714911806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98e5d1597c27e4d3f592b569e8b6b302e3fd36b2_85cd4e77-991b-4e86-974d-3858d518a0ce.webp?v=1714911808","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e5bec596a20fc69943a150d0f502b348e43457_448ac610-6068-4da6-b97e-9aafb9319c25.webp?v=1714911810","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b7b290292da4502679a824be6c24d7b51087c1_15ff7796-aa5b-4faa-af48-6ef036efea2a.webp?v=1714911812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a6c6d45c6d0fa487bacf6007969b1d41e190b7d_5c839257-3cf6-4d96-b044-58496305e01a.webp?v=1714911815","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bd6f6ca23b4e71effd218131eff90c4c28eac7_a6a12a83-3130-4580-bed2-afb8623c7e29.webp?v=1714911818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f2a1215d17dce9dfb60dea37fff91077e1ddae_e4a003ee-4896-4d0a-ba03-96fd1306148d.webp?v=1714911820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbdc0ce39c019fead159d115ee043ec875c2304a_c64db34b-079a-45a7-a96d-f979f4e84182.webp?v=1714911823"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1597e53c13c4ee0db8c470c8cace8874a7a88c75_c9c1b06a-ba2b-4117-ba58-357f8f5aa8d0.webp?v=1714911798","options":["color"],"media":[{"alt":null,"id":23893509537891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1597e53c13c4ee0db8c470c8cace8874a7a88c75_c9c1b06a-ba2b-4117-ba58-357f8f5aa8d0.webp?v=1714911798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1597e53c13c4ee0db8c470c8cace8874a7a88c75_c9c1b06a-ba2b-4117-ba58-357f8f5aa8d0.webp?v=1714911798","width":2000},{"alt":null,"id":23893510160483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08e7e81e6c904aec7cfdfdce399c796970ffe6ab_6dafa474-28b0-4414-b3ba-41b929c68122.webp?v=1714911800"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08e7e81e6c904aec7cfdfdce399c796970ffe6ab_6dafa474-28b0-4414-b3ba-41b929c68122.webp?v=1714911800","width":2000},{"alt":null,"id":23893510717539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7419b021830f6894ef67a15edf82a8668170de2_2d053fd5-3983-4070-b9d2-1dea673bf55b.webp?v=1714911803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7419b021830f6894ef67a15edf82a8668170de2_2d053fd5-3983-4070-b9d2-1dea673bf55b.webp?v=1714911803","width":2000},{"alt":null,"id":23893511831651,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36134d99eae61801c9b6865e74ab890b8744eb27_95767001-bd66-47db-81b9-b8b41d76a4d9.webp?v=1714911806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36134d99eae61801c9b6865e74ab890b8744eb27_95767001-bd66-47db-81b9-b8b41d76a4d9.webp?v=1714911806","width":2000},{"alt":null,"id":23893512552547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98e5d1597c27e4d3f592b569e8b6b302e3fd36b2_85cd4e77-991b-4e86-974d-3858d518a0ce.webp?v=1714911808"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98e5d1597c27e4d3f592b569e8b6b302e3fd36b2_85cd4e77-991b-4e86-974d-3858d518a0ce.webp?v=1714911808","width":2000},{"alt":null,"id":23893513076835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e5bec596a20fc69943a150d0f502b348e43457_448ac610-6068-4da6-b97e-9aafb9319c25.webp?v=1714911810"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9e5bec596a20fc69943a150d0f502b348e43457_448ac610-6068-4da6-b97e-9aafb9319c25.webp?v=1714911810","width":2000},{"alt":null,"id":23893513896035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b7b290292da4502679a824be6c24d7b51087c1_15ff7796-aa5b-4faa-af48-6ef036efea2a.webp?v=1714911812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b7b290292da4502679a824be6c24d7b51087c1_15ff7796-aa5b-4faa-af48-6ef036efea2a.webp?v=1714911812","width":2000},{"alt":null,"id":23893514125411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a6c6d45c6d0fa487bacf6007969b1d41e190b7d_5c839257-3cf6-4d96-b044-58496305e01a.webp?v=1714911815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a6c6d45c6d0fa487bacf6007969b1d41e190b7d_5c839257-3cf6-4d96-b044-58496305e01a.webp?v=1714911815","width":2000},{"alt":null,"id":23893514453091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bd6f6ca23b4e71effd218131eff90c4c28eac7_a6a12a83-3130-4580-bed2-afb8623c7e29.webp?v=1714911818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bd6f6ca23b4e71effd218131eff90c4c28eac7_a6a12a83-3130-4580-bed2-afb8623c7e29.webp?v=1714911818","width":2000},{"alt":null,"id":23893514715235,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f2a1215d17dce9dfb60dea37fff91077e1ddae_e4a003ee-4896-4d0a-ba03-96fd1306148d.webp?v=1714911820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f2a1215d17dce9dfb60dea37fff91077e1ddae_e4a003ee-4896-4d0a-ba03-96fd1306148d.webp?v=1714911820","width":2000},{"alt":null,"id":23893515305059,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbdc0ce39c019fead159d115ee043ec875c2304a_c64db34b-079a-45a7-a96d-f979f4e84182.webp?v=1714911823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbdc0ce39c019fead159d115ee043ec875c2304a_c64db34b-079a-45a7-a96d-f979f4e84182.webp?v=1714911823","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911892148323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31488169508963,"product_id":7415102767203,"position":8,"created_at":"2024-05-05T20:23:35+08:00","updated_at":"2024-05-05T20:23:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a6c6d45c6d0fa487bacf6007969b1d41e190b7d_5c839257-3cf6-4d96-b044-58496305e01a.webp?v=1714911815","variant_ids":[41911892148323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB72","featured_media":{"alt":null,"id":23893514125411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a6c6d45c6d0fa487bacf6007969b1d41e190b7d_5c839257-3cf6-4d96-b044-58496305e01a.webp?v=1714911815"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911892148323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31488169508963,"product_id":7415102767203,"position":8,"created_at":"2024-05-05T20:23:35+08:00","updated_at":"2024-05-05T20:23:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a6c6d45c6d0fa487bacf6007969b1d41e190b7d_5c839257-3cf6-4d96-b044-58496305e01a.webp?v=1714911815","variant_ids":[41911892148323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB72","featured_media":{"alt":null,"id":23893514125411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a6c6d45c6d0fa487bacf6007969b1d41e190b7d_5c839257-3cf6-4d96-b044-58496305e01a.webp?v=1714911815"}},"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: "停產" }