$product = {"id":7411126730851,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Care Bears - 雨愛灌溉","handle":"iphone-15-plus-mod-nx-magsafe-printable-yb08","description":null,"published_at":"2024-06-11T17:37:00+08:00","created_at":"2024-05-04T22:48:19+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 15 Plus","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":41895237746787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479590060131,"product_id":7411126730851,"position":9,"created_at":"2024-05-04T22:48:41+08:00","updated_at":"2024-05-04T22:48:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ceaac6170c82e9ffc8ceeaf9d5e69a8d4352a8_2187472b-e151-4218-adb8-a75b6159e8a9.webp?v=1714834121","variant_ids":[41895237746787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129624-YB08","featured_media":{"alt":null,"id":23884837748835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ceaac6170c82e9ffc8ceeaf9d5e69a8d4352a8_2187472b-e151-4218-adb8-a75b6159e8a9.webp?v=1714834121"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895237910627,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479590649955,"product_id":7411126730851,"position":10,"created_at":"2024-05-04T22:48:44+08:00","updated_at":"2024-05-04T22:48:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d995bec20d3a14216fd1f9deb2a2e02a4ec3055d_4a2ce73a-a5cf-4010-9742-27a81be17489.webp?v=1714834124","variant_ids":[41895237910627]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129657-YB08","featured_media":{"alt":null,"id":23884838338659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d995bec20d3a14216fd1f9deb2a2e02a4ec3055d_4a2ce73a-a5cf-4010-9742-27a81be17489.webp?v=1714834124"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b571af9e61b0ac26403cdb0d68855f0a64213de_f516b844-f65e-4dbe-8af1-6f9cf0292f36.webp?v=1714834102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8662775892415a4a930f04f61d88629cf5a5bcf6_b19efeef-ff28-4110-8a8e-d08d03aea88f.webp?v=1714834104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54966a0065de8874cbfa3879a5e346b3d0715944_955a0d46-ae2c-4c1e-9bb5-4c21356353d0.webp?v=1714834106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24d7d9634f4a4d98b902dd7a813538cb026ceeb_e8d82594-e865-4072-90f0-cc9cf846fdb4.webp?v=1714834109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee5b7e3aede337992351c3f8f333edaabe1ebd46_c93c07cc-7d67-4e5a-a62d-2dfdae000ee4.webp?v=1714834111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814b2fc056ddb4249c715b746d971a4ccc0b18fe_5ce82071-fd2c-4c11-9569-d8df7f167078.webp?v=1714834114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb32e4f81f74be43f847bee69e85eaefce335dc_1fd5e180-1428-4046-aa5f-c0d43ac94a47.webp?v=1714834116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a36f9ad83f9e8efb9d3eb9220055a95e67575c4f_a1fb57f9-cef3-4a69-b153-25e733fdf31f.webp?v=1714834118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ceaac6170c82e9ffc8ceeaf9d5e69a8d4352a8_2187472b-e151-4218-adb8-a75b6159e8a9.webp?v=1714834121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d995bec20d3a14216fd1f9deb2a2e02a4ec3055d_4a2ce73a-a5cf-4010-9742-27a81be17489.webp?v=1714834124"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b571af9e61b0ac26403cdb0d68855f0a64213de_f516b844-f65e-4dbe-8af1-6f9cf0292f36.webp?v=1714834102","options":["color"],"media":[{"alt":null,"id":23884833226851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b571af9e61b0ac26403cdb0d68855f0a64213de_f516b844-f65e-4dbe-8af1-6f9cf0292f36.webp?v=1714834102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b571af9e61b0ac26403cdb0d68855f0a64213de_f516b844-f65e-4dbe-8af1-6f9cf0292f36.webp?v=1714834102","width":2000},{"alt":null,"id":23884833783907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8662775892415a4a930f04f61d88629cf5a5bcf6_b19efeef-ff28-4110-8a8e-d08d03aea88f.webp?v=1714834104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8662775892415a4a930f04f61d88629cf5a5bcf6_b19efeef-ff28-4110-8a8e-d08d03aea88f.webp?v=1714834104","width":2000},{"alt":null,"id":23884834340963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54966a0065de8874cbfa3879a5e346b3d0715944_955a0d46-ae2c-4c1e-9bb5-4c21356353d0.webp?v=1714834106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54966a0065de8874cbfa3879a5e346b3d0715944_955a0d46-ae2c-4c1e-9bb5-4c21356353d0.webp?v=1714834106","width":2000},{"alt":null,"id":23884834701411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24d7d9634f4a4d98b902dd7a813538cb026ceeb_e8d82594-e865-4072-90f0-cc9cf846fdb4.webp?v=1714834109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24d7d9634f4a4d98b902dd7a813538cb026ceeb_e8d82594-e865-4072-90f0-cc9cf846fdb4.webp?v=1714834109","width":2000},{"alt":null,"id":23884835291235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee5b7e3aede337992351c3f8f333edaabe1ebd46_c93c07cc-7d67-4e5a-a62d-2dfdae000ee4.webp?v=1714834111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee5b7e3aede337992351c3f8f333edaabe1ebd46_c93c07cc-7d67-4e5a-a62d-2dfdae000ee4.webp?v=1714834111","width":2000},{"alt":null,"id":23884835881059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814b2fc056ddb4249c715b746d971a4ccc0b18fe_5ce82071-fd2c-4c11-9569-d8df7f167078.webp?v=1714834114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814b2fc056ddb4249c715b746d971a4ccc0b18fe_5ce82071-fd2c-4c11-9569-d8df7f167078.webp?v=1714834114","width":2000},{"alt":null,"id":23884836438115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb32e4f81f74be43f847bee69e85eaefce335dc_1fd5e180-1428-4046-aa5f-c0d43ac94a47.webp?v=1714834116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eb32e4f81f74be43f847bee69e85eaefce335dc_1fd5e180-1428-4046-aa5f-c0d43ac94a47.webp?v=1714834116","width":2000},{"alt":null,"id":23884837093475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a36f9ad83f9e8efb9d3eb9220055a95e67575c4f_a1fb57f9-cef3-4a69-b153-25e733fdf31f.webp?v=1714834118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a36f9ad83f9e8efb9d3eb9220055a95e67575c4f_a1fb57f9-cef3-4a69-b153-25e733fdf31f.webp?v=1714834118","width":2000},{"alt":null,"id":23884837748835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ceaac6170c82e9ffc8ceeaf9d5e69a8d4352a8_2187472b-e151-4218-adb8-a75b6159e8a9.webp?v=1714834121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ceaac6170c82e9ffc8ceeaf9d5e69a8d4352a8_2187472b-e151-4218-adb8-a75b6159e8a9.webp?v=1714834121","width":2000},{"alt":null,"id":23884838338659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d995bec20d3a14216fd1f9deb2a2e02a4ec3055d_4a2ce73a-a5cf-4010-9742-27a81be17489.webp?v=1714834124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d995bec20d3a14216fd1f9deb2a2e02a4ec3055d_4a2ce73a-a5cf-4010-9742-27a81be17489.webp?v=1714834124","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41895237746787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479590060131,"product_id":7411126730851,"position":9,"created_at":"2024-05-04T22:48:41+08:00","updated_at":"2024-05-04T22:48:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ceaac6170c82e9ffc8ceeaf9d5e69a8d4352a8_2187472b-e151-4218-adb8-a75b6159e8a9.webp?v=1714834121","variant_ids":[41895237746787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129624-YB08","featured_media":{"alt":null,"id":23884837748835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ceaac6170c82e9ffc8ceeaf9d5e69a8d4352a8_2187472b-e151-4218-adb8-a75b6159e8a9.webp?v=1714834121"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895237910627,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479590649955,"product_id":7411126730851,"position":10,"created_at":"2024-05-04T22:48:44+08:00","updated_at":"2024-05-04T22:48:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d995bec20d3a14216fd1f9deb2a2e02a4ec3055d_4a2ce73a-a5cf-4010-9742-27a81be17489.webp?v=1714834124","variant_ids":[41895237910627]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129657-YB08","featured_media":{"alt":null,"id":23884838338659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d995bec20d3a14216fd1f9deb2a2e02a4ec3055d_4a2ce73a-a5cf-4010-9742-27a81be17489.webp?v=1714834124"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41895237746787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31479590060131,"product_id":7411126730851,"position":9,"created_at":"2024-05-04T22:48:41+08:00","updated_at":"2024-05-04T22:48:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ceaac6170c82e9ffc8ceeaf9d5e69a8d4352a8_2187472b-e151-4218-adb8-a75b6159e8a9.webp?v=1714834121","variant_ids":[41895237746787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129624-YB08","featured_media":{"alt":null,"id":23884837748835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ceaac6170c82e9ffc8ceeaf9d5e69a8d4352a8_2187472b-e151-4218-adb8-a75b6159e8a9.webp?v=1714834121"}},"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: "停產"
}