$product = {"id":7414578479203,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 雲朵綿綿","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yb10","description":null,"published_at":"2024-06-11T17:52:14+08:00","created_at":"2024-05-05T14:31:47+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","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":41907492257891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485802381411,"product_id":7414578479203,"position":3,"created_at":"2024-05-05T14:31:53+08:00","updated_at":"2024-05-05T14:31:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b55b7f1fc97691aa3edfc92c5249605f7646ee1_ad66024c-7d2b-4705-9061-5e90eebd49bd.webp?v=1714890714","variant_ids":[41907492257891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 雲朵綿綿 - 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":"MPB0123224-YB10","featured_media":{"alt":null,"id":23891134775395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b55b7f1fc97691aa3edfc92c5249605f7646ee1_ad66024c-7d2b-4705-9061-5e90eebd49bd.webp?v=1714890714"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907493011555,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485805723747,"product_id":7414578479203,"position":8,"created_at":"2024-05-05T14:32:05+08:00","updated_at":"2024-05-05T14:32:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ddee986bac75b8ffbd23b490ee41f069f06f503_849fca3c-a5d2-4fda-ae30-363ce752f9f5.webp?v=1714890725","variant_ids":[41907493011555]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 雲朵綿綿 - 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":"MPB01232J5-YB10","featured_media":{"alt":null,"id":23891138216035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ddee986bac75b8ffbd23b490ee41f069f06f503_849fca3c-a5d2-4fda-ae30-363ce752f9f5.webp?v=1714890725"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a6a401863e4a1327018a3b86a00e2984dec30ac_3cd39971-b239-439b-9f00-f05188e1c751.webp?v=1714890709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d0d44eb72d83e4a8c2ab9771290bbc729b0bdc_31df66a3-8501-4aea-8a64-fb7ad909ca91.webp?v=1714890711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b55b7f1fc97691aa3edfc92c5249605f7646ee1_ad66024c-7d2b-4705-9061-5e90eebd49bd.webp?v=1714890714","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf340814a0d5345e2b2849b939474d5e22e2939_c8acc5de-66b3-447a-9371-22b2110c8ab8.webp?v=1714890716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d753ba8adb8f58a982cfbe61fa53669b7b7a88_0fe420fb-512b-408b-a1af-ffdba2e3b265.webp?v=1714890718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b2d7725a8b3fd8e184f4a815eb4a27301b793af_9361f074-c09a-4026-b2c3-01256e74b676.webp?v=1714890721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95bc4492578f0977fb34889c3924a33a39a503ae_51ad5b00-2bba-43ec-b861-43fe898a41df.webp?v=1714890723","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ddee986bac75b8ffbd23b490ee41f069f06f503_849fca3c-a5d2-4fda-ae30-363ce752f9f5.webp?v=1714890725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47658a39e204470c2fd1221f920b3c6a82e52f3e_662a7c65-5e0d-47d1-a7b0-e8ddd9a8c7ba.webp?v=1714890728","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e55f579be02aa9c1a70dcf69eef2c8eeed6cc6b_92de0358-8671-480c-9e93-9a4b06041e24.webp?v=1714890730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402d8a7c9148eba00a8ecd2ec50b7bdde947d3c7_fabdb1d0-029a-4797-9a34-c264ac94481c.webp?v=1714890732"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a6a401863e4a1327018a3b86a00e2984dec30ac_3cd39971-b239-439b-9f00-f05188e1c751.webp?v=1714890709","options":["color"],"media":[{"alt":null,"id":23891133202531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a6a401863e4a1327018a3b86a00e2984dec30ac_3cd39971-b239-439b-9f00-f05188e1c751.webp?v=1714890709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a6a401863e4a1327018a3b86a00e2984dec30ac_3cd39971-b239-439b-9f00-f05188e1c751.webp?v=1714890709","width":2000},{"alt":null,"id":23891134120035,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d0d44eb72d83e4a8c2ab9771290bbc729b0bdc_31df66a3-8501-4aea-8a64-fb7ad909ca91.webp?v=1714890711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d0d44eb72d83e4a8c2ab9771290bbc729b0bdc_31df66a3-8501-4aea-8a64-fb7ad909ca91.webp?v=1714890711","width":2000},{"alt":null,"id":23891134775395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b55b7f1fc97691aa3edfc92c5249605f7646ee1_ad66024c-7d2b-4705-9061-5e90eebd49bd.webp?v=1714890714"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b55b7f1fc97691aa3edfc92c5249605f7646ee1_ad66024c-7d2b-4705-9061-5e90eebd49bd.webp?v=1714890714","width":2000},{"alt":null,"id":23891135234147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf340814a0d5345e2b2849b939474d5e22e2939_c8acc5de-66b3-447a-9371-22b2110c8ab8.webp?v=1714890716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcf340814a0d5345e2b2849b939474d5e22e2939_c8acc5de-66b3-447a-9371-22b2110c8ab8.webp?v=1714890716","width":2000},{"alt":null,"id":23891135758435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d753ba8adb8f58a982cfbe61fa53669b7b7a88_0fe420fb-512b-408b-a1af-ffdba2e3b265.webp?v=1714890718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d753ba8adb8f58a982cfbe61fa53669b7b7a88_0fe420fb-512b-408b-a1af-ffdba2e3b265.webp?v=1714890718","width":2000},{"alt":null,"id":23891136577635,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b2d7725a8b3fd8e184f4a815eb4a27301b793af_9361f074-c09a-4026-b2c3-01256e74b676.webp?v=1714890721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b2d7725a8b3fd8e184f4a815eb4a27301b793af_9361f074-c09a-4026-b2c3-01256e74b676.webp?v=1714890721","width":2000},{"alt":null,"id":23891137396835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95bc4492578f0977fb34889c3924a33a39a503ae_51ad5b00-2bba-43ec-b861-43fe898a41df.webp?v=1714890723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95bc4492578f0977fb34889c3924a33a39a503ae_51ad5b00-2bba-43ec-b861-43fe898a41df.webp?v=1714890723","width":2000},{"alt":null,"id":23891138216035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ddee986bac75b8ffbd23b490ee41f069f06f503_849fca3c-a5d2-4fda-ae30-363ce752f9f5.webp?v=1714890725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ddee986bac75b8ffbd23b490ee41f069f06f503_849fca3c-a5d2-4fda-ae30-363ce752f9f5.webp?v=1714890725","width":2000},{"alt":null,"id":23891139166307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47658a39e204470c2fd1221f920b3c6a82e52f3e_662a7c65-5e0d-47d1-a7b0-e8ddd9a8c7ba.webp?v=1714890728"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47658a39e204470c2fd1221f920b3c6a82e52f3e_662a7c65-5e0d-47d1-a7b0-e8ddd9a8c7ba.webp?v=1714890728","width":2000},{"alt":null,"id":23891139723363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e55f579be02aa9c1a70dcf69eef2c8eeed6cc6b_92de0358-8671-480c-9e93-9a4b06041e24.webp?v=1714890730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e55f579be02aa9c1a70dcf69eef2c8eeed6cc6b_92de0358-8671-480c-9e93-9a4b06041e24.webp?v=1714890730","width":2000},{"alt":null,"id":23891140477027,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402d8a7c9148eba00a8ecd2ec50b7bdde947d3c7_fabdb1d0-029a-4797-9a34-c264ac94481c.webp?v=1714890732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402d8a7c9148eba00a8ecd2ec50b7bdde947d3c7_fabdb1d0-029a-4797-9a34-c264ac94481c.webp?v=1714890732","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907492257891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485802381411,"product_id":7414578479203,"position":3,"created_at":"2024-05-05T14:31:53+08:00","updated_at":"2024-05-05T14:31:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b55b7f1fc97691aa3edfc92c5249605f7646ee1_ad66024c-7d2b-4705-9061-5e90eebd49bd.webp?v=1714890714","variant_ids":[41907492257891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 雲朵綿綿 - 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":"MPB0123224-YB10","featured_media":{"alt":null,"id":23891134775395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b55b7f1fc97691aa3edfc92c5249605f7646ee1_ad66024c-7d2b-4705-9061-5e90eebd49bd.webp?v=1714890714"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907493011555,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485805723747,"product_id":7414578479203,"position":8,"created_at":"2024-05-05T14:32:05+08:00","updated_at":"2024-05-05T14:32:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ddee986bac75b8ffbd23b490ee41f069f06f503_849fca3c-a5d2-4fda-ae30-363ce752f9f5.webp?v=1714890725","variant_ids":[41907493011555]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 雲朵綿綿 - 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":"MPB01232J5-YB10","featured_media":{"alt":null,"id":23891138216035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ddee986bac75b8ffbd23b490ee41f069f06f503_849fca3c-a5d2-4fda-ae30-363ce752f9f5.webp?v=1714890725"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907492257891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485802381411,"product_id":7414578479203,"position":3,"created_at":"2024-05-05T14:31:53+08:00","updated_at":"2024-05-05T14:31:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b55b7f1fc97691aa3edfc92c5249605f7646ee1_ad66024c-7d2b-4705-9061-5e90eebd49bd.webp?v=1714890714","variant_ids":[41907492257891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 雲朵綿綿 - 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":"MPB0123224-YB10","featured_media":{"alt":null,"id":23891134775395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b55b7f1fc97691aa3edfc92c5249605f7646ee1_ad66024c-7d2b-4705-9061-5e90eebd49bd.webp?v=1714890714"}},"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: "停產"
}