$product = {"id":7369200599139,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 溜滑梯","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pl62","description":null,"published_at":"2024-06-11T17:31:19+08:00","created_at":"2024-04-23T15:43:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-snoopy","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":41793541177443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":31387049689187,"product_id":7369200599139,"position":4,"created_at":"2024-04-23T15:43:42+08:00","updated_at":"2024-04-23T15:43:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9767ce50bd94f388cf63ad82df9f41273ddf16a1_9ba881d7-06c6-4bed-961b-b342bd7f568e.webp?v=1713858222","variant_ids":[41793541177443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 溜滑梯 - 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":"MPB0123224-PL62","featured_media":{"alt":null,"id":23789288325219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9767ce50bd94f388cf63ad82df9f41273ddf16a1_9ba881d7-06c6-4bed-961b-b342bd7f568e.webp?v=1713858222"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793541472355,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":31387053654115,"product_id":7369200599139,"position":11,"created_at":"2024-04-23T15:43:57+08:00","updated_at":"2024-04-23T15:43:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05d3a4414fb4e46284304090648e5f1963b327f3_d1b88820-88a1-41d5-893f-cf8055ee5f4d.webp?v=1713858237","variant_ids":[41793541472355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 溜滑梯 - 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":"MPB01232J5-PL62","featured_media":{"alt":null,"id":23789292290147,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05d3a4414fb4e46284304090648e5f1963b327f3_d1b88820-88a1-41d5-893f-cf8055ee5f4d.webp?v=1713858237"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae52071e994ed0ddf8a33ccb1741ecfd2c5ab28e_39d53c13-114c-42fb-bcc1-29fe788f9b2e.webp?v=1713858215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40043ca0f0f152e8015b38bf1203a716d91feb99_f08d03a9-f12e-4088-91f2-55df00623047.webp?v=1713858217","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fce44a4b9c40250b338b23d4b8d878887eaf984d_c35e5f66-a2d4-444a-896c-62bb96216892.webp?v=1713858219","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9767ce50bd94f388cf63ad82df9f41273ddf16a1_9ba881d7-06c6-4bed-961b-b342bd7f568e.webp?v=1713858222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74bdaf1a7cf6f0f1a444feb5471e46e87c3fd4fb_cc7ef91f-eb9f-40d7-b013-17113fff2030.webp?v=1713858224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43284cc3a4ee00060b0679b2158206c518069da8_acf47876-3ec2-4a9b-a02c-1dbfa96dbbed.webp?v=1713858226","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/315dcc492ce01cfde64c644990f7a3697e7d5b25_c12f622d-fcc5-44c3-9b54-72440d883147.webp?v=1713858228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46a14299ed105f955784242802f78ea6a30ed89c_604adda1-7f23-4bc8-8b63-b51d5a82f324.webp?v=1713858230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e675fd73379c2319f2976878542b90460322b72_ab53654c-2242-4c37-ac1d-979626118674.webp?v=1713858233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24b589b40b971e695effbac2c360aa2b2159f81_7e27e31b-b8db-49bc-b739-3239833a80b8.webp?v=1713858235","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05d3a4414fb4e46284304090648e5f1963b327f3_d1b88820-88a1-41d5-893f-cf8055ee5f4d.webp?v=1713858237"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae52071e994ed0ddf8a33ccb1741ecfd2c5ab28e_39d53c13-114c-42fb-bcc1-29fe788f9b2e.webp?v=1713858215","options":["color"],"media":[{"alt":null,"id":23789286293603,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae52071e994ed0ddf8a33ccb1741ecfd2c5ab28e_39d53c13-114c-42fb-bcc1-29fe788f9b2e.webp?v=1713858215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae52071e994ed0ddf8a33ccb1741ecfd2c5ab28e_39d53c13-114c-42fb-bcc1-29fe788f9b2e.webp?v=1713858215","width":2000},{"alt":null,"id":23789286850659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40043ca0f0f152e8015b38bf1203a716d91feb99_f08d03a9-f12e-4088-91f2-55df00623047.webp?v=1713858217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40043ca0f0f152e8015b38bf1203a716d91feb99_f08d03a9-f12e-4088-91f2-55df00623047.webp?v=1713858217","width":2000},{"alt":null,"id":23789287702627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fce44a4b9c40250b338b23d4b8d878887eaf984d_c35e5f66-a2d4-444a-896c-62bb96216892.webp?v=1713858219"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fce44a4b9c40250b338b23d4b8d878887eaf984d_c35e5f66-a2d4-444a-896c-62bb96216892.webp?v=1713858219","width":2000},{"alt":null,"id":23789288325219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9767ce50bd94f388cf63ad82df9f41273ddf16a1_9ba881d7-06c6-4bed-961b-b342bd7f568e.webp?v=1713858222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9767ce50bd94f388cf63ad82df9f41273ddf16a1_9ba881d7-06c6-4bed-961b-b342bd7f568e.webp?v=1713858222","width":2000},{"alt":null,"id":23789288980579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74bdaf1a7cf6f0f1a444feb5471e46e87c3fd4fb_cc7ef91f-eb9f-40d7-b013-17113fff2030.webp?v=1713858224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74bdaf1a7cf6f0f1a444feb5471e46e87c3fd4fb_cc7ef91f-eb9f-40d7-b013-17113fff2030.webp?v=1713858224","width":2000},{"alt":null,"id":23789289406563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43284cc3a4ee00060b0679b2158206c518069da8_acf47876-3ec2-4a9b-a02c-1dbfa96dbbed.webp?v=1713858226"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43284cc3a4ee00060b0679b2158206c518069da8_acf47876-3ec2-4a9b-a02c-1dbfa96dbbed.webp?v=1713858226","width":2000},{"alt":null,"id":23789290061923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/315dcc492ce01cfde64c644990f7a3697e7d5b25_c12f622d-fcc5-44c3-9b54-72440d883147.webp?v=1713858228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/315dcc492ce01cfde64c644990f7a3697e7d5b25_c12f622d-fcc5-44c3-9b54-72440d883147.webp?v=1713858228","width":2000},{"alt":null,"id":23789290520675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46a14299ed105f955784242802f78ea6a30ed89c_604adda1-7f23-4bc8-8b63-b51d5a82f324.webp?v=1713858230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46a14299ed105f955784242802f78ea6a30ed89c_604adda1-7f23-4bc8-8b63-b51d5a82f324.webp?v=1713858230","width":2000},{"alt":null,"id":23789291012195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e675fd73379c2319f2976878542b90460322b72_ab53654c-2242-4c37-ac1d-979626118674.webp?v=1713858233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e675fd73379c2319f2976878542b90460322b72_ab53654c-2242-4c37-ac1d-979626118674.webp?v=1713858233","width":2000},{"alt":null,"id":23789291700323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24b589b40b971e695effbac2c360aa2b2159f81_7e27e31b-b8db-49bc-b739-3239833a80b8.webp?v=1713858235"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24b589b40b971e695effbac2c360aa2b2159f81_7e27e31b-b8db-49bc-b739-3239833a80b8.webp?v=1713858235","width":2000},{"alt":null,"id":23789292290147,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05d3a4414fb4e46284304090648e5f1963b327f3_d1b88820-88a1-41d5-893f-cf8055ee5f4d.webp?v=1713858237"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05d3a4414fb4e46284304090648e5f1963b327f3_d1b88820-88a1-41d5-893f-cf8055ee5f4d.webp?v=1713858237","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41793541177443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":31387049689187,"product_id":7369200599139,"position":4,"created_at":"2024-04-23T15:43:42+08:00","updated_at":"2024-04-23T15:43:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9767ce50bd94f388cf63ad82df9f41273ddf16a1_9ba881d7-06c6-4bed-961b-b342bd7f568e.webp?v=1713858222","variant_ids":[41793541177443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 溜滑梯 - 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":"MPB0123224-PL62","featured_media":{"alt":null,"id":23789288325219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9767ce50bd94f388cf63ad82df9f41273ddf16a1_9ba881d7-06c6-4bed-961b-b342bd7f568e.webp?v=1713858222"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793541472355,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":31387053654115,"product_id":7369200599139,"position":11,"created_at":"2024-04-23T15:43:57+08:00","updated_at":"2024-04-23T15:43:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05d3a4414fb4e46284304090648e5f1963b327f3_d1b88820-88a1-41d5-893f-cf8055ee5f4d.webp?v=1713858237","variant_ids":[41793541472355]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 溜滑梯 - 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":"MPB01232J5-PL62","featured_media":{"alt":null,"id":23789292290147,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05d3a4414fb4e46284304090648e5f1963b327f3_d1b88820-88a1-41d5-893f-cf8055ee5f4d.webp?v=1713858237"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41793541177443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":31387049689187,"product_id":7369200599139,"position":4,"created_at":"2024-04-23T15:43:42+08:00","updated_at":"2024-04-23T15:43:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9767ce50bd94f388cf63ad82df9f41273ddf16a1_9ba881d7-06c6-4bed-961b-b342bd7f568e.webp?v=1713858222","variant_ids":[41793541177443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 溜滑梯 - 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":"MPB0123224-PL62","featured_media":{"alt":null,"id":23789288325219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9767ce50bd94f388cf63ad82df9f41273ddf16a1_9ba881d7-06c6-4bed-961b-b342bd7f568e.webp?v=1713858222"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }