$product = {"id":7411098779747,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 人在做 大堡礁在看","handle":"iphone-15-plus-mod-nx-magsafe-printable-af07","description":null,"published_at":"2024-06-11T17:36:16+08:00","created_at":"2024-05-04T22:42:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41894955974755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479507026019,"product_id":7411098779747,"position":1,"created_at":"2024-05-04T22:42:39+08:00","updated_at":"2024-05-04T22:42:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a86f5479e943be4530c3d0a4c154b72bc8f0e_312effa2-03eb-4398-abb4-6071143979ca.webp?v=1714833759","variant_ids":[41894955974755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 人在做 大堡礁在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-AF07","featured_media":{"alt":null,"id":23884754780259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a86f5479e943be4530c3d0a4c154b72bc8f0e_312effa2-03eb-4398-abb4-6071143979ca.webp?v=1714833759"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894956105827,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479511220323,"product_id":7411098779747,"position":9,"created_at":"2024-05-04T22:43:00+08:00","updated_at":"2024-05-04T22:43:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e318c6179a5b759cb7fc65fbadd479e4d13b2b_c6f5107f-7cea-4a59-92f1-900d542aae34.webp?v=1714833780","variant_ids":[41894956105827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 人在做 大堡礁在看 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-AF07","featured_media":{"alt":null,"id":23884758974563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e318c6179a5b759cb7fc65fbadd479e4d13b2b_c6f5107f-7cea-4a59-92f1-900d542aae34.webp?v=1714833780"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a86f5479e943be4530c3d0a4c154b72bc8f0e_312effa2-03eb-4398-abb4-6071143979ca.webp?v=1714833759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e21a5ef34b9285b4c0a0d05e0588e05bb10a64_114bc180-1e29-4a95-b84c-c711220c0f54.webp?v=1714833761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770f2330eb675b1128496505914f75170fc1477d_a1ddaefd-554f-46fb-8295-d404cf346ba5.webp?v=1714833764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e247c3b8fbeb9814b03666424da109682c7a17_6f225215-6986-49fd-8a8c-d42290496202.webp?v=1714833766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93ca2a8ac8d9a757cc61a3a24609dff40457ab66_e6bfbe7d-186c-4e79-b42f-df4237d46836.webp?v=1714833769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf7ae4e124d4931177ce7d29055d6d00930b850_e179cf26-5b0c-4996-aa43-787d53492df8.webp?v=1714833773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73c31426595d687ca450a0bc0637c5255c9add63_ef1d65a4-ab61-43c8-864f-b28f7272488c.webp?v=1714833775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c23d2b8b4043d1b083a2e72ced456d586084eb_f4cbd570-c938-4542-99dc-5e415ee68b5a.webp?v=1714833778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e318c6179a5b759cb7fc65fbadd479e4d13b2b_c6f5107f-7cea-4a59-92f1-900d542aae34.webp?v=1714833780"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a86f5479e943be4530c3d0a4c154b72bc8f0e_312effa2-03eb-4398-abb4-6071143979ca.webp?v=1714833759","options":["color"],"media":[{"alt":null,"id":23884754780259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a86f5479e943be4530c3d0a4c154b72bc8f0e_312effa2-03eb-4398-abb4-6071143979ca.webp?v=1714833759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a86f5479e943be4530c3d0a4c154b72bc8f0e_312effa2-03eb-4398-abb4-6071143979ca.webp?v=1714833759","width":2000},{"alt":null,"id":23884755140707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e21a5ef34b9285b4c0a0d05e0588e05bb10a64_114bc180-1e29-4a95-b84c-c711220c0f54.webp?v=1714833761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e21a5ef34b9285b4c0a0d05e0588e05bb10a64_114bc180-1e29-4a95-b84c-c711220c0f54.webp?v=1714833761","width":2000},{"alt":null,"id":23884755894371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770f2330eb675b1128496505914f75170fc1477d_a1ddaefd-554f-46fb-8295-d404cf346ba5.webp?v=1714833764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/770f2330eb675b1128496505914f75170fc1477d_a1ddaefd-554f-46fb-8295-d404cf346ba5.webp?v=1714833764","width":2000},{"alt":null,"id":23884756287587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e247c3b8fbeb9814b03666424da109682c7a17_6f225215-6986-49fd-8a8c-d42290496202.webp?v=1714833766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3e247c3b8fbeb9814b03666424da109682c7a17_6f225215-6986-49fd-8a8c-d42290496202.webp?v=1714833766","width":2000},{"alt":null,"id":23884756877411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93ca2a8ac8d9a757cc61a3a24609dff40457ab66_e6bfbe7d-186c-4e79-b42f-df4237d46836.webp?v=1714833769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93ca2a8ac8d9a757cc61a3a24609dff40457ab66_e6bfbe7d-186c-4e79-b42f-df4237d46836.webp?v=1714833769","width":2000},{"alt":null,"id":23884757696611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf7ae4e124d4931177ce7d29055d6d00930b850_e179cf26-5b0c-4996-aa43-787d53492df8.webp?v=1714833773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf7ae4e124d4931177ce7d29055d6d00930b850_e179cf26-5b0c-4996-aa43-787d53492df8.webp?v=1714833773","width":2000},{"alt":null,"id":23884758057059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73c31426595d687ca450a0bc0637c5255c9add63_ef1d65a4-ab61-43c8-864f-b28f7272488c.webp?v=1714833775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73c31426595d687ca450a0bc0637c5255c9add63_ef1d65a4-ab61-43c8-864f-b28f7272488c.webp?v=1714833775","width":2000},{"alt":null,"id":23884758286435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c23d2b8b4043d1b083a2e72ced456d586084eb_f4cbd570-c938-4542-99dc-5e415ee68b5a.webp?v=1714833778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c23d2b8b4043d1b083a2e72ced456d586084eb_f4cbd570-c938-4542-99dc-5e415ee68b5a.webp?v=1714833778","width":2000},{"alt":null,"id":23884758974563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e318c6179a5b759cb7fc65fbadd479e4d13b2b_c6f5107f-7cea-4a59-92f1-900d542aae34.webp?v=1714833780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e318c6179a5b759cb7fc65fbadd479e4d13b2b_c6f5107f-7cea-4a59-92f1-900d542aae34.webp?v=1714833780","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894955974755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479507026019,"product_id":7411098779747,"position":1,"created_at":"2024-05-04T22:42:39+08:00","updated_at":"2024-05-04T22:42:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a86f5479e943be4530c3d0a4c154b72bc8f0e_312effa2-03eb-4398-abb4-6071143979ca.webp?v=1714833759","variant_ids":[41894955974755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 人在做 大堡礁在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-AF07","featured_media":{"alt":null,"id":23884754780259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a86f5479e943be4530c3d0a4c154b72bc8f0e_312effa2-03eb-4398-abb4-6071143979ca.webp?v=1714833759"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894956105827,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479511220323,"product_id":7411098779747,"position":9,"created_at":"2024-05-04T22:43:00+08:00","updated_at":"2024-05-04T22:43:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e318c6179a5b759cb7fc65fbadd479e4d13b2b_c6f5107f-7cea-4a59-92f1-900d542aae34.webp?v=1714833780","variant_ids":[41894956105827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 人在做 大堡礁在看 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-AF07","featured_media":{"alt":null,"id":23884758974563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e318c6179a5b759cb7fc65fbadd479e4d13b2b_c6f5107f-7cea-4a59-92f1-900d542aae34.webp?v=1714833780"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894955974755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479507026019,"product_id":7411098779747,"position":1,"created_at":"2024-05-04T22:42:39+08:00","updated_at":"2024-05-04T22:42:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a86f5479e943be4530c3d0a4c154b72bc8f0e_312effa2-03eb-4398-abb4-6071143979ca.webp?v=1714833759","variant_ids":[41894955974755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 人在做 大堡礁在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-AF07","featured_media":{"alt":null,"id":23884754780259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a86f5479e943be4530c3d0a4c154b72bc8f0e_312effa2-03eb-4398-abb4-6071143979ca.webp?v=1714833759"}},"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: "停產" }