$product = {"id":7414205415523,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 粉紫樂園","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yb13","description":null,"published_at":"2024-06-11T17:49:52+08:00","created_at":"2024-05-05T14:15:50+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":41904842145891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484913582179,"product_id":7414205415523,"position":4,"created_at":"2024-05-05T14:16:00+08:00","updated_at":"2024-05-05T14:16:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd430ab2a54d759b868f50a1a383ffdc8bfbd2c_9f2ec6b0-c59e-4d52-a8f9-cbf7bae6f0a5.webp?v=1714889760","variant_ids":[41904842145891]},"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-YB13","featured_media":{"alt":null,"id":23890219401315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd430ab2a54d759b868f50a1a383ffdc8bfbd2c_9f2ec6b0-c59e-4d52-a8f9-cbf7bae6f0a5.webp?v=1714889760"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904842473571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484921872483,"product_id":7414205415523,"position":9,"created_at":"2024-05-05T14:16:11+08:00","updated_at":"2024-05-05T14:16:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afade852b52709d5167e21e332261504ebbbf38f_bea2d27b-cac3-45ee-b12b-2bc3fb090f32.webp?v=1714889771","variant_ids":[41904842473571]},"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-YB13","featured_media":{"alt":null,"id":23890229690467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afade852b52709d5167e21e332261504ebbbf38f_bea2d27b-cac3-45ee-b12b-2bc3fb090f32.webp?v=1714889771"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf12da3557fd341b781166d6420301baa766c23_2da87f12-b60c-4dfa-bf23-89bea098dba5.webp?v=1714889753","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f94d29a97d8531568456b035b97e1db5d59994_668b84b9-ca2a-44d8-8ddf-8106f7b5a979.webp?v=1714889755","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c389dada6e88556e41d77088bbd89de44c3883c2_005ae732-cc07-4cc4-a0d9-6c7e35d1f084.webp?v=1714889757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd430ab2a54d759b868f50a1a383ffdc8bfbd2c_9f2ec6b0-c59e-4d52-a8f9-cbf7bae6f0a5.webp?v=1714889760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/298a59ca0b866e19540d8229052d7212fcc0c2e0_13e94787-f2ba-4c3a-8fbb-dcec82d881c3.webp?v=1714889762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635cccefb43b0f4dab74455dbb1d3f89bb4e6dc5_66024e28-6a5d-478c-9aef-995b5e5fb6c9.webp?v=1714889764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54a9409ac9376cad60fb5457ea79e55e15c16d7f_ed0e0c03-6f0f-4851-93d4-b89826b25d21.webp?v=1714889767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c273545bc42ff72879f0b9f859ca8bc5c3a711a8_e78fbea2-8f4b-458f-8d32-28545c293de4.webp?v=1714889769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afade852b52709d5167e21e332261504ebbbf38f_bea2d27b-cac3-45ee-b12b-2bc3fb090f32.webp?v=1714889771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea98e155224e1c4cdaed0b0cb48bad4cb382b481_5cbadd05-b0e0-4f3d-9bd8-c456d67a0d96.webp?v=1714889774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ced87e339dc9319c91c575413a6f4cb668d842b1_70a007a5-0519-4d9c-bd5c-ac38546e8ee0.webp?v=1714889776"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf12da3557fd341b781166d6420301baa766c23_2da87f12-b60c-4dfa-bf23-89bea098dba5.webp?v=1714889753","options":["color"],"media":[{"alt":null,"id":23890212749411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf12da3557fd341b781166d6420301baa766c23_2da87f12-b60c-4dfa-bf23-89bea098dba5.webp?v=1714889753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf12da3557fd341b781166d6420301baa766c23_2da87f12-b60c-4dfa-bf23-89bea098dba5.webp?v=1714889753","width":2000},{"alt":null,"id":23890214584419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f94d29a97d8531568456b035b97e1db5d59994_668b84b9-ca2a-44d8-8ddf-8106f7b5a979.webp?v=1714889755"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f94d29a97d8531568456b035b97e1db5d59994_668b84b9-ca2a-44d8-8ddf-8106f7b5a979.webp?v=1714889755","width":2000},{"alt":null,"id":23890217140323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c389dada6e88556e41d77088bbd89de44c3883c2_005ae732-cc07-4cc4-a0d9-6c7e35d1f084.webp?v=1714889757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c389dada6e88556e41d77088bbd89de44c3883c2_005ae732-cc07-4cc4-a0d9-6c7e35d1f084.webp?v=1714889757","width":2000},{"alt":null,"id":23890219401315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd430ab2a54d759b868f50a1a383ffdc8bfbd2c_9f2ec6b0-c59e-4d52-a8f9-cbf7bae6f0a5.webp?v=1714889760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd430ab2a54d759b868f50a1a383ffdc8bfbd2c_9f2ec6b0-c59e-4d52-a8f9-cbf7bae6f0a5.webp?v=1714889760","width":2000},{"alt":null,"id":23890221400163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/298a59ca0b866e19540d8229052d7212fcc0c2e0_13e94787-f2ba-4c3a-8fbb-dcec82d881c3.webp?v=1714889762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/298a59ca0b866e19540d8229052d7212fcc0c2e0_13e94787-f2ba-4c3a-8fbb-dcec82d881c3.webp?v=1714889762","width":2000},{"alt":null,"id":23890223595619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635cccefb43b0f4dab74455dbb1d3f89bb4e6dc5_66024e28-6a5d-478c-9aef-995b5e5fb6c9.webp?v=1714889764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/635cccefb43b0f4dab74455dbb1d3f89bb4e6dc5_66024e28-6a5d-478c-9aef-995b5e5fb6c9.webp?v=1714889764","width":2000},{"alt":null,"id":23890225594467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54a9409ac9376cad60fb5457ea79e55e15c16d7f_ed0e0c03-6f0f-4851-93d4-b89826b25d21.webp?v=1714889767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54a9409ac9376cad60fb5457ea79e55e15c16d7f_ed0e0c03-6f0f-4851-93d4-b89826b25d21.webp?v=1714889767","width":2000},{"alt":null,"id":23890227593315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c273545bc42ff72879f0b9f859ca8bc5c3a711a8_e78fbea2-8f4b-458f-8d32-28545c293de4.webp?v=1714889769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c273545bc42ff72879f0b9f859ca8bc5c3a711a8_e78fbea2-8f4b-458f-8d32-28545c293de4.webp?v=1714889769","width":2000},{"alt":null,"id":23890229690467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afade852b52709d5167e21e332261504ebbbf38f_bea2d27b-cac3-45ee-b12b-2bc3fb090f32.webp?v=1714889771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afade852b52709d5167e21e332261504ebbbf38f_bea2d27b-cac3-45ee-b12b-2bc3fb090f32.webp?v=1714889771","width":2000},{"alt":null,"id":23890231427171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea98e155224e1c4cdaed0b0cb48bad4cb382b481_5cbadd05-b0e0-4f3d-9bd8-c456d67a0d96.webp?v=1714889774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea98e155224e1c4cdaed0b0cb48bad4cb382b481_5cbadd05-b0e0-4f3d-9bd8-c456d67a0d96.webp?v=1714889774","width":2000},{"alt":null,"id":23890233720931,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ced87e339dc9319c91c575413a6f4cb668d842b1_70a007a5-0519-4d9c-bd5c-ac38546e8ee0.webp?v=1714889776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ced87e339dc9319c91c575413a6f4cb668d842b1_70a007a5-0519-4d9c-bd5c-ac38546e8ee0.webp?v=1714889776","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904842145891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484913582179,"product_id":7414205415523,"position":4,"created_at":"2024-05-05T14:16:00+08:00","updated_at":"2024-05-05T14:16:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd430ab2a54d759b868f50a1a383ffdc8bfbd2c_9f2ec6b0-c59e-4d52-a8f9-cbf7bae6f0a5.webp?v=1714889760","variant_ids":[41904842145891]},"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-YB13","featured_media":{"alt":null,"id":23890219401315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd430ab2a54d759b868f50a1a383ffdc8bfbd2c_9f2ec6b0-c59e-4d52-a8f9-cbf7bae6f0a5.webp?v=1714889760"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904842473571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484921872483,"product_id":7414205415523,"position":9,"created_at":"2024-05-05T14:16:11+08:00","updated_at":"2024-05-05T14:16:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afade852b52709d5167e21e332261504ebbbf38f_bea2d27b-cac3-45ee-b12b-2bc3fb090f32.webp?v=1714889771","variant_ids":[41904842473571]},"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-YB13","featured_media":{"alt":null,"id":23890229690467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afade852b52709d5167e21e332261504ebbbf38f_bea2d27b-cac3-45ee-b12b-2bc3fb090f32.webp?v=1714889771"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904842145891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484913582179,"product_id":7414205415523,"position":4,"created_at":"2024-05-05T14:16:00+08:00","updated_at":"2024-05-05T14:16:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd430ab2a54d759b868f50a1a383ffdc8bfbd2c_9f2ec6b0-c59e-4d52-a8f9-cbf7bae6f0a5.webp?v=1714889760","variant_ids":[41904842145891]},"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-YB13","featured_media":{"alt":null,"id":23890219401315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd430ab2a54d759b868f50a1a383ffdc8bfbd2c_9f2ec6b0-c59e-4d52-a8f9-cbf7bae6f0a5.webp?v=1714889760"}},"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: "停產"
}