$product = {"id":7411057786979,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Weiweiboy - 可愛大王上甜點","handle":"iphone-15-plus-mod-nx-magsafe-printable-eo04","description":null,"published_at":"2024-06-11T17:35:11+08:00","created_at":"2024-05-04T22:34:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-weiweiboy","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":41894537330787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479401119843,"product_id":7411057786979,"position":2,"created_at":"2024-05-04T22:35:00+08:00","updated_at":"2024-05-04T22:35:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95591f9a14e94285be9679af760d3c4fe99b60ed_a4a82d0e-e823-44b2-8ba4-92d1df627033.webp?v=1714833300","variant_ids":[41894537330787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Weiweiboy - 可愛大王上甜點 - 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-EO04","featured_media":{"alt":null,"id":23884648808547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95591f9a14e94285be9679af760d3c4fe99b60ed_a4a82d0e-e823-44b2-8ba4-92d1df627033.webp?v=1714833300"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894537461859,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479405346915,"product_id":7411057786979,"position":9,"created_at":"2024-05-04T22:35:16+08:00","updated_at":"2024-05-04T22:35:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549ab12653315f8e9df39a477f61e00603c7f4c8_e2d4386a-fe57-4e0f-8401-876ed0cdf170.webp?v=1714833316","variant_ids":[41894537461859]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Weiweiboy - 可愛大王上甜點 - 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-EO04","featured_media":{"alt":null,"id":23884652904547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549ab12653315f8e9df39a477f61e00603c7f4c8_e2d4386a-fe57-4e0f-8401-876ed0cdf170.webp?v=1714833316"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/993654aad19ef4567fac1c67dda8c964d51a39e4_78eaff51-50de-4ac7-b81e-707ec2cd797a.webp?v=1714833297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95591f9a14e94285be9679af760d3c4fe99b60ed_a4a82d0e-e823-44b2-8ba4-92d1df627033.webp?v=1714833300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e9e1814b55b9b98349d6cbe61f11e169e7be6b_8be455f6-4203-478b-946e-3b61f6957bb1.webp?v=1714833302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9340aeb092bc12eaa0c1197a6c48c4059205c7c_ab2a0253-eae0-4755-b072-63d513ab8e0c.webp?v=1714833304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071f98c0194b5dd686062098ef68d08bc992d80b_47aa2d82-e491-4cb4-936e-06a702c7efda.webp?v=1714833307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38dae4d21ca9bf052eea73fba38afd76f4b00bea_f6c62091-e385-48a8-bfcd-5388c114d67a.webp?v=1714833309","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286918c2d2d5dc7ad183d3fc656c0b0c6548e12a_4a899288-884a-4a65-a03d-ae5b6cfa75cf.webp?v=1714833311","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a3e74c352a9d6ba42951edc428ad561869279e_c022e517-5c6c-4faf-8cf8-49e71eeb021c.webp?v=1714833314","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549ab12653315f8e9df39a477f61e00603c7f4c8_e2d4386a-fe57-4e0f-8401-876ed0cdf170.webp?v=1714833316","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8845f98bbc02810ea733b917703c901072b0ab31_a3c4e31f-af29-4b30-a983-9408a4026bbe.webp?v=1714833319"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/993654aad19ef4567fac1c67dda8c964d51a39e4_78eaff51-50de-4ac7-b81e-707ec2cd797a.webp?v=1714833297","options":["color"],"media":[{"alt":null,"id":23884648218723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/993654aad19ef4567fac1c67dda8c964d51a39e4_78eaff51-50de-4ac7-b81e-707ec2cd797a.webp?v=1714833297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/993654aad19ef4567fac1c67dda8c964d51a39e4_78eaff51-50de-4ac7-b81e-707ec2cd797a.webp?v=1714833297","width":2000},{"alt":null,"id":23884648808547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95591f9a14e94285be9679af760d3c4fe99b60ed_a4a82d0e-e823-44b2-8ba4-92d1df627033.webp?v=1714833300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95591f9a14e94285be9679af760d3c4fe99b60ed_a4a82d0e-e823-44b2-8ba4-92d1df627033.webp?v=1714833300","width":2000},{"alt":null,"id":23884649463907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e9e1814b55b9b98349d6cbe61f11e169e7be6b_8be455f6-4203-478b-946e-3b61f6957bb1.webp?v=1714833302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e9e1814b55b9b98349d6cbe61f11e169e7be6b_8be455f6-4203-478b-946e-3b61f6957bb1.webp?v=1714833302","width":2000},{"alt":null,"id":23884649988195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9340aeb092bc12eaa0c1197a6c48c4059205c7c_ab2a0253-eae0-4755-b072-63d513ab8e0c.webp?v=1714833304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9340aeb092bc12eaa0c1197a6c48c4059205c7c_ab2a0253-eae0-4755-b072-63d513ab8e0c.webp?v=1714833304","width":2000},{"alt":null,"id":23884650512483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071f98c0194b5dd686062098ef68d08bc992d80b_47aa2d82-e491-4cb4-936e-06a702c7efda.webp?v=1714833307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071f98c0194b5dd686062098ef68d08bc992d80b_47aa2d82-e491-4cb4-936e-06a702c7efda.webp?v=1714833307","width":2000},{"alt":null,"id":23884651233379,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38dae4d21ca9bf052eea73fba38afd76f4b00bea_f6c62091-e385-48a8-bfcd-5388c114d67a.webp?v=1714833309"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38dae4d21ca9bf052eea73fba38afd76f4b00bea_f6c62091-e385-48a8-bfcd-5388c114d67a.webp?v=1714833309","width":2000},{"alt":null,"id":23884651757667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286918c2d2d5dc7ad183d3fc656c0b0c6548e12a_4a899288-884a-4a65-a03d-ae5b6cfa75cf.webp?v=1714833311"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286918c2d2d5dc7ad183d3fc656c0b0c6548e12a_4a899288-884a-4a65-a03d-ae5b6cfa75cf.webp?v=1714833311","width":2000},{"alt":null,"id":23884652380259,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a3e74c352a9d6ba42951edc428ad561869279e_c022e517-5c6c-4faf-8cf8-49e71eeb021c.webp?v=1714833314"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a3e74c352a9d6ba42951edc428ad561869279e_c022e517-5c6c-4faf-8cf8-49e71eeb021c.webp?v=1714833314","width":2000},{"alt":null,"id":23884652904547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549ab12653315f8e9df39a477f61e00603c7f4c8_e2d4386a-fe57-4e0f-8401-876ed0cdf170.webp?v=1714833316"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549ab12653315f8e9df39a477f61e00603c7f4c8_e2d4386a-fe57-4e0f-8401-876ed0cdf170.webp?v=1714833316","width":2000},{"alt":null,"id":23884653428835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8845f98bbc02810ea733b917703c901072b0ab31_a3c4e31f-af29-4b30-a983-9408a4026bbe.webp?v=1714833319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8845f98bbc02810ea733b917703c901072b0ab31_a3c4e31f-af29-4b30-a983-9408a4026bbe.webp?v=1714833319","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894537330787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479401119843,"product_id":7411057786979,"position":2,"created_at":"2024-05-04T22:35:00+08:00","updated_at":"2024-05-04T22:35:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95591f9a14e94285be9679af760d3c4fe99b60ed_a4a82d0e-e823-44b2-8ba4-92d1df627033.webp?v=1714833300","variant_ids":[41894537330787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Weiweiboy - 可愛大王上甜點 - 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-EO04","featured_media":{"alt":null,"id":23884648808547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95591f9a14e94285be9679af760d3c4fe99b60ed_a4a82d0e-e823-44b2-8ba4-92d1df627033.webp?v=1714833300"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894537461859,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479405346915,"product_id":7411057786979,"position":9,"created_at":"2024-05-04T22:35:16+08:00","updated_at":"2024-05-04T22:35:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549ab12653315f8e9df39a477f61e00603c7f4c8_e2d4386a-fe57-4e0f-8401-876ed0cdf170.webp?v=1714833316","variant_ids":[41894537461859]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Weiweiboy - 可愛大王上甜點 - 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-EO04","featured_media":{"alt":null,"id":23884652904547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549ab12653315f8e9df39a477f61e00603c7f4c8_e2d4386a-fe57-4e0f-8401-876ed0cdf170.webp?v=1714833316"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894537330787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479401119843,"product_id":7411057786979,"position":2,"created_at":"2024-05-04T22:35:00+08:00","updated_at":"2024-05-04T22:35:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95591f9a14e94285be9679af760d3c4fe99b60ed_a4a82d0e-e823-44b2-8ba4-92d1df627033.webp?v=1714833300","variant_ids":[41894537330787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Weiweiboy - 可愛大王上甜點 - 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-EO04","featured_media":{"alt":null,"id":23884648808547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95591f9a14e94285be9679af760d3c4fe99b60ed_a4a82d0e-e823-44b2-8ba4-92d1df627033.webp?v=1714833300"}},"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: "停產" }