$product = {"id":7369207480419,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Snoopy 史努比 - 夏日活動","handle":"iphone-15-plus-mod-nx-magsafe-printable-pl61","description":null,"published_at":"2024-05-27T12:15:18+08:00","created_at":"2024-04-23T15:44:45+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 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-ella","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":41793610580067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PL61","requires_shipping":true,"taxable":true,"featured_image":{"id":31387070562403,"product_id":7369207480419,"position":7,"created_at":"2024-04-23T15:45:02+08:00","updated_at":"2024-04-23T15:45:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178fb2b76e5f8ffb4c61c8e04b987d7c764de830_97cc8e30-d074-4107-969e-97e36e0ada73.webp?v=1713858302","variant_ids":[41793610580067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129624-PL61","featured_media":{"alt":null,"id":23789309263971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178fb2b76e5f8ffb4c61c8e04b987d7c764de830_97cc8e30-d074-4107-969e-97e36e0ada73.webp?v=1713858302"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793610711139,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PL61","requires_shipping":true,"taxable":true,"featured_image":{"id":31387066499171,"product_id":7369207480419,"position":1,"created_at":"2024-04-23T15:44:47+08:00","updated_at":"2024-04-23T15:44:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3035f9f541ad048280ed68536b9cc48f30d6291_33d8ca07-287f-4974-bf4b-9e2ce59ca98d.webp?v=1713858287","variant_ids":[41793610711139]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129657-PL61","featured_media":{"alt":null,"id":23789305200739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3035f9f541ad048280ed68536b9cc48f30d6291_33d8ca07-287f-4974-bf4b-9e2ce59ca98d.webp?v=1713858287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3035f9f541ad048280ed68536b9cc48f30d6291_33d8ca07-287f-4974-bf4b-9e2ce59ca98d.webp?v=1713858287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e70e57c58f332f492c7bdf32e8df3a2b63f7dfd_7ffc9fed-dc1b-41e4-a0d7-657cdf66e532.webp?v=1713858290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5bfadba37d279be67335a38428926c141ca4188_51769df5-3680-4e06-a998-ef0ca88511bc.webp?v=1713858292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe7a9861474bf0e2dc488d7a6ff2cf6683ce230_cb318311-dc02-4242-b114-a95114aa9cca.webp?v=1713858295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ea7f05decfc91b0cb8578b77595f7ee8274c3d_3cc99728-1896-4e55-93e9-49c555ab5dc3.webp?v=1713858297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dba3237c959100f7b0d4849f69cd046c357dfd3_7dfb88ac-a2ca-4ed4-ad4e-67ac97665d5d.webp?v=1713858300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178fb2b76e5f8ffb4c61c8e04b987d7c764de830_97cc8e30-d074-4107-969e-97e36e0ada73.webp?v=1713858302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5206b976578dd8e1a735d13d0e6c014f87e49c49_7c1e16ed-2430-4950-9a63-13d7ae6541f2.webp?v=1713858304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63525d3b55c56bef59d143cc404f65b4a5f476f_d5313aea-89d9-437b-a6eb-fd32a1f1f257.webp?v=1713858307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b728c75d1bea4e9a4cbecfccb8550c87f9bd50f2_77b25331-d341-4e0c-bad1-e027e9d39958.webp?v=1713858310"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3035f9f541ad048280ed68536b9cc48f30d6291_33d8ca07-287f-4974-bf4b-9e2ce59ca98d.webp?v=1713858287","options":["color"],"media":[{"alt":null,"id":23789305200739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3035f9f541ad048280ed68536b9cc48f30d6291_33d8ca07-287f-4974-bf4b-9e2ce59ca98d.webp?v=1713858287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3035f9f541ad048280ed68536b9cc48f30d6291_33d8ca07-287f-4974-bf4b-9e2ce59ca98d.webp?v=1713858287","width":2000},{"alt":null,"id":23789305888867,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e70e57c58f332f492c7bdf32e8df3a2b63f7dfd_7ffc9fed-dc1b-41e4-a0d7-657cdf66e532.webp?v=1713858290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e70e57c58f332f492c7bdf32e8df3a2b63f7dfd_7ffc9fed-dc1b-41e4-a0d7-657cdf66e532.webp?v=1713858290","width":2000},{"alt":null,"id":23789306642531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5bfadba37d279be67335a38428926c141ca4188_51769df5-3680-4e06-a998-ef0ca88511bc.webp?v=1713858292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5bfadba37d279be67335a38428926c141ca4188_51769df5-3680-4e06-a998-ef0ca88511bc.webp?v=1713858292","width":2000},{"alt":null,"id":23789307166819,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe7a9861474bf0e2dc488d7a6ff2cf6683ce230_cb318311-dc02-4242-b114-a95114aa9cca.webp?v=1713858295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfe7a9861474bf0e2dc488d7a6ff2cf6683ce230_cb318311-dc02-4242-b114-a95114aa9cca.webp?v=1713858295","width":2000},{"alt":null,"id":23789307920483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ea7f05decfc91b0cb8578b77595f7ee8274c3d_3cc99728-1896-4e55-93e9-49c555ab5dc3.webp?v=1713858297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ea7f05decfc91b0cb8578b77595f7ee8274c3d_3cc99728-1896-4e55-93e9-49c555ab5dc3.webp?v=1713858297","width":2000},{"alt":null,"id":23789308444771,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dba3237c959100f7b0d4849f69cd046c357dfd3_7dfb88ac-a2ca-4ed4-ad4e-67ac97665d5d.webp?v=1713858300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dba3237c959100f7b0d4849f69cd046c357dfd3_7dfb88ac-a2ca-4ed4-ad4e-67ac97665d5d.webp?v=1713858300","width":2000},{"alt":null,"id":23789309263971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178fb2b76e5f8ffb4c61c8e04b987d7c764de830_97cc8e30-d074-4107-969e-97e36e0ada73.webp?v=1713858302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178fb2b76e5f8ffb4c61c8e04b987d7c764de830_97cc8e30-d074-4107-969e-97e36e0ada73.webp?v=1713858302","width":2000},{"alt":null,"id":23789309755491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5206b976578dd8e1a735d13d0e6c014f87e49c49_7c1e16ed-2430-4950-9a63-13d7ae6541f2.webp?v=1713858304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5206b976578dd8e1a735d13d0e6c014f87e49c49_7c1e16ed-2430-4950-9a63-13d7ae6541f2.webp?v=1713858304","width":2000},{"alt":null,"id":23789310541923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63525d3b55c56bef59d143cc404f65b4a5f476f_d5313aea-89d9-437b-a6eb-fd32a1f1f257.webp?v=1713858307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b63525d3b55c56bef59d143cc404f65b4a5f476f_d5313aea-89d9-437b-a6eb-fd32a1f1f257.webp?v=1713858307","width":2000},{"alt":null,"id":23789311000675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b728c75d1bea4e9a4cbecfccb8550c87f9bd50f2_77b25331-d341-4e0c-bad1-e027e9d39958.webp?v=1713858310"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b728c75d1bea4e9a4cbecfccb8550c87f9bd50f2_77b25331-d341-4e0c-bad1-e027e9d39958.webp?v=1713858310","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41793610580067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PL61","requires_shipping":true,"taxable":true,"featured_image":{"id":31387070562403,"product_id":7369207480419,"position":7,"created_at":"2024-04-23T15:45:02+08:00","updated_at":"2024-04-23T15:45:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178fb2b76e5f8ffb4c61c8e04b987d7c764de830_97cc8e30-d074-4107-969e-97e36e0ada73.webp?v=1713858302","variant_ids":[41793610580067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129624-PL61","featured_media":{"alt":null,"id":23789309263971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178fb2b76e5f8ffb4c61c8e04b987d7c764de830_97cc8e30-d074-4107-969e-97e36e0ada73.webp?v=1713858302"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41793610711139,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PL61","requires_shipping":true,"taxable":true,"featured_image":{"id":31387066499171,"product_id":7369207480419,"position":1,"created_at":"2024-04-23T15:44:47+08:00","updated_at":"2024-04-23T15:44:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3035f9f541ad048280ed68536b9cc48f30d6291_33d8ca07-287f-4974-bf4b-9e2ce59ca98d.webp?v=1713858287","variant_ids":[41793610711139]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129657-PL61","featured_media":{"alt":null,"id":23789305200739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3035f9f541ad048280ed68536b9cc48f30d6291_33d8ca07-287f-4974-bf4b-9e2ce59ca98d.webp?v=1713858287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41793610580067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PL61","requires_shipping":true,"taxable":true,"featured_image":{"id":31387070562403,"product_id":7369207480419,"position":7,"created_at":"2024-04-23T15:45:02+08:00","updated_at":"2024-04-23T15:45:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178fb2b76e5f8ffb4c61c8e04b987d7c764de830_97cc8e30-d074-4107-969e-97e36e0ada73.webp?v=1713858302","variant_ids":[41793610580067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129624-PL61","featured_media":{"alt":null,"id":23789309263971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178fb2b76e5f8ffb4c61c8e04b987d7c764de830_97cc8e30-d074-4107-969e-97e36e0ada73.webp?v=1713858302"}},"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: "停產" }