$product = {"id":7369210298467,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Snoopy 史努比 - 夏日活動","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pl61","description":null,"published_at":"2024-06-11T17:31:30+08:00","created_at":"2024-04-23T15:45:14+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":41793644167267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL61","requires_shipping":true,"taxable":true,"featured_image":{"id":31387075936355,"product_id":7369210298467,"position":4,"created_at":"2024-04-23T15:45:25+08:00","updated_at":"2024-04-23T15:45:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614bba99cf082c7962a1512b92f00b84f60bf895_b8cd85ce-2fa5-43ac-aea3-e94f18dac1e6.webp?v=1713858325","variant_ids":[41793644167267]},"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-PL61","featured_media":{"alt":null,"id":23789314637923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614bba99cf082c7962a1512b92f00b84f60bf895_b8cd85ce-2fa5-43ac-aea3-e94f18dac1e6.webp?v=1713858325"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793644462179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PL61","requires_shipping":true,"taxable":true,"featured_image":{"id":31387074658403,"product_id":7369210298467,"position":2,"created_at":"2024-04-23T15:45:19+08:00","updated_at":"2024-04-23T15:45:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ca24986858780e740c6775baa21d009b4b9e80_dd706c7e-8254-462f-a2c9-2e77fffd7e5e.webp?v=1713858319","variant_ids":[41793644462179]},"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-PL61","featured_media":{"alt":null,"id":23789313327203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ca24986858780e740c6775baa21d009b4b9e80_dd706c7e-8254-462f-a2c9-2e77fffd7e5e.webp?v=1713858319"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc745a832c4c759d7efe40fa3a3febe3579ba58b_8004aee3-248c-4d40-a8b4-b7c8cc2a22a6.webp?v=1713858316","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ca24986858780e740c6775baa21d009b4b9e80_dd706c7e-8254-462f-a2c9-2e77fffd7e5e.webp?v=1713858319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d67656d883b8732cd6699a5a653a01e3435fa21c_3ae319e5-2bf0-449b-bfa2-7138963d7c1c.webp?v=1713858322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614bba99cf082c7962a1512b92f00b84f60bf895_b8cd85ce-2fa5-43ac-aea3-e94f18dac1e6.webp?v=1713858325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295f45b6a652f562f82c31494733bd55c635e6fd_289b31a3-1e34-4172-aa05-192a90b6bfa4.webp?v=1713858328","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1117b3859fe36723a9ebb353043ae385b3fab3bf_4a262ba0-64c1-4d26-80b1-f092049c88d9.webp?v=1713858331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc7d7d268fbec6ae7ae798b2ca2196c0abfe28db_c6ffbcda-7b18-45c4-b622-14c356a46437.webp?v=1713858333","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b338495ed2eeafb1a8f19e66c4e3b55c5c89d513_0a3cd235-4148-4ab1-acfa-648f42227baf.webp?v=1713858336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c407511384a84719509c3d20707e0ee138f1e823_c0af3578-7988-439e-939a-406943a18586.webp?v=1713858338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5d1f8db680e4fa76b887b8e254caa0fd7c3300_1ca62852-ed70-4d68-beb1-d080811eab76.webp?v=1713858341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55289afe82c2a437616aab7c0057739633174817_cc39451c-d6fd-452c-9965-9f94730c4174.webp?v=1713858344"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc745a832c4c759d7efe40fa3a3febe3579ba58b_8004aee3-248c-4d40-a8b4-b7c8cc2a22a6.webp?v=1713858316","options":["color"],"media":[{"alt":null,"id":23789312671843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc745a832c4c759d7efe40fa3a3febe3579ba58b_8004aee3-248c-4d40-a8b4-b7c8cc2a22a6.webp?v=1713858316"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc745a832c4c759d7efe40fa3a3febe3579ba58b_8004aee3-248c-4d40-a8b4-b7c8cc2a22a6.webp?v=1713858316","width":2000},{"alt":null,"id":23789313327203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ca24986858780e740c6775baa21d009b4b9e80_dd706c7e-8254-462f-a2c9-2e77fffd7e5e.webp?v=1713858319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ca24986858780e740c6775baa21d009b4b9e80_dd706c7e-8254-462f-a2c9-2e77fffd7e5e.webp?v=1713858319","width":2000},{"alt":null,"id":23789313917027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d67656d883b8732cd6699a5a653a01e3435fa21c_3ae319e5-2bf0-449b-bfa2-7138963d7c1c.webp?v=1713858322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d67656d883b8732cd6699a5a653a01e3435fa21c_3ae319e5-2bf0-449b-bfa2-7138963d7c1c.webp?v=1713858322","width":2000},{"alt":null,"id":23789314637923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614bba99cf082c7962a1512b92f00b84f60bf895_b8cd85ce-2fa5-43ac-aea3-e94f18dac1e6.webp?v=1713858325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614bba99cf082c7962a1512b92f00b84f60bf895_b8cd85ce-2fa5-43ac-aea3-e94f18dac1e6.webp?v=1713858325","width":2000},{"alt":null,"id":23789315260515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295f45b6a652f562f82c31494733bd55c635e6fd_289b31a3-1e34-4172-aa05-192a90b6bfa4.webp?v=1713858328"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/295f45b6a652f562f82c31494733bd55c635e6fd_289b31a3-1e34-4172-aa05-192a90b6bfa4.webp?v=1713858328","width":2000},{"alt":null,"id":23789315981411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1117b3859fe36723a9ebb353043ae385b3fab3bf_4a262ba0-64c1-4d26-80b1-f092049c88d9.webp?v=1713858331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1117b3859fe36723a9ebb353043ae385b3fab3bf_4a262ba0-64c1-4d26-80b1-f092049c88d9.webp?v=1713858331","width":2000},{"alt":null,"id":23789316669539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc7d7d268fbec6ae7ae798b2ca2196c0abfe28db_c6ffbcda-7b18-45c4-b622-14c356a46437.webp?v=1713858333"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc7d7d268fbec6ae7ae798b2ca2196c0abfe28db_c6ffbcda-7b18-45c4-b622-14c356a46437.webp?v=1713858333","width":2000},{"alt":null,"id":23789317357667,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b338495ed2eeafb1a8f19e66c4e3b55c5c89d513_0a3cd235-4148-4ab1-acfa-648f42227baf.webp?v=1713858336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b338495ed2eeafb1a8f19e66c4e3b55c5c89d513_0a3cd235-4148-4ab1-acfa-648f42227baf.webp?v=1713858336","width":2000},{"alt":null,"id":23789317783651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c407511384a84719509c3d20707e0ee138f1e823_c0af3578-7988-439e-939a-406943a18586.webp?v=1713858338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c407511384a84719509c3d20707e0ee138f1e823_c0af3578-7988-439e-939a-406943a18586.webp?v=1713858338","width":2000},{"alt":null,"id":23789318471779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5d1f8db680e4fa76b887b8e254caa0fd7c3300_1ca62852-ed70-4d68-beb1-d080811eab76.webp?v=1713858341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e5d1f8db680e4fa76b887b8e254caa0fd7c3300_1ca62852-ed70-4d68-beb1-d080811eab76.webp?v=1713858341","width":2000},{"alt":null,"id":23789319028835,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55289afe82c2a437616aab7c0057739633174817_cc39451c-d6fd-452c-9965-9f94730c4174.webp?v=1713858344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55289afe82c2a437616aab7c0057739633174817_cc39451c-d6fd-452c-9965-9f94730c4174.webp?v=1713858344","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41793644167267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL61","requires_shipping":true,"taxable":true,"featured_image":{"id":31387075936355,"product_id":7369210298467,"position":4,"created_at":"2024-04-23T15:45:25+08:00","updated_at":"2024-04-23T15:45:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614bba99cf082c7962a1512b92f00b84f60bf895_b8cd85ce-2fa5-43ac-aea3-e94f18dac1e6.webp?v=1713858325","variant_ids":[41793644167267]},"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-PL61","featured_media":{"alt":null,"id":23789314637923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614bba99cf082c7962a1512b92f00b84f60bf895_b8cd85ce-2fa5-43ac-aea3-e94f18dac1e6.webp?v=1713858325"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793644462179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PL61","requires_shipping":true,"taxable":true,"featured_image":{"id":31387074658403,"product_id":7369210298467,"position":2,"created_at":"2024-04-23T15:45:19+08:00","updated_at":"2024-04-23T15:45:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ca24986858780e740c6775baa21d009b4b9e80_dd706c7e-8254-462f-a2c9-2e77fffd7e5e.webp?v=1713858319","variant_ids":[41793644462179]},"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-PL61","featured_media":{"alt":null,"id":23789313327203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48ca24986858780e740c6775baa21d009b4b9e80_dd706c7e-8254-462f-a2c9-2e77fffd7e5e.webp?v=1713858319"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41793644167267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PL61","requires_shipping":true,"taxable":true,"featured_image":{"id":31387075936355,"product_id":7369210298467,"position":4,"created_at":"2024-04-23T15:45:25+08:00","updated_at":"2024-04-23T15:45:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614bba99cf082c7962a1512b92f00b84f60bf895_b8cd85ce-2fa5-43ac-aea3-e94f18dac1e6.webp?v=1713858325","variant_ids":[41793644167267]},"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-PL61","featured_media":{"alt":null,"id":23789314637923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/614bba99cf082c7962a1512b92f00b84f60bf895_b8cd85ce-2fa5-43ac-aea3-e94f18dac1e6.webp?v=1713858325"}},"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: "停產" }