$product = {"id":7410959679587,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - The Powerpuff Girls - 愛心徽章","handle":"iphone-15-plus-mod-nx-magsafe-printable-sr02","description":null,"published_at":"2024-06-11T17:32:35+08:00","created_at":"2024-05-04T22:16:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區The Powerpuff Girls","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-the-power-puff-girls","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-the-power-puff-girls","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":41893585223779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-SR02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479151034467,"product_id":7410959679587,"position":2,"created_at":"2024-05-04T22:16:57+08:00","updated_at":"2024-05-04T22:16:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419e04eee5512d0f5b636bcc75db1750931bcc05_65827421-c5a0-4065-bc93-043dd1480d1d.webp?v=1714832218","variant_ids":[41893585223779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - The Powerpuff Girls - 愛心徽章 - 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-SR02","featured_media":{"alt":null,"id":23884398166115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419e04eee5512d0f5b636bcc75db1750931bcc05_65827421-c5a0-4065-bc93-043dd1480d1d.webp?v=1714832218"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893585354851,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-SR02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479151493219,"product_id":7410959679587,"position":3,"created_at":"2024-05-04T22:17:00+08:00","updated_at":"2024-05-04T22:17:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21efead8ca1707ae7cbb58ad281ab2b8e580a221_d9c6914a-28ec-4ef6-8009-382b25ef3f8f.webp?v=1714832220","variant_ids":[41893585354851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - The Powerpuff Girls - 愛心徽章 - 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-SR02","featured_media":{"alt":null,"id":23884398493795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21efead8ca1707ae7cbb58ad281ab2b8e580a221_d9c6914a-28ec-4ef6-8009-382b25ef3f8f.webp?v=1714832220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1f42ab676cc3e0b4ea9b580f00af4dc92630d1_dff337b2-85c5-4993-ace8-b1cf00e6c227.webp?v=1714832215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419e04eee5512d0f5b636bcc75db1750931bcc05_65827421-c5a0-4065-bc93-043dd1480d1d.webp?v=1714832218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21efead8ca1707ae7cbb58ad281ab2b8e580a221_d9c6914a-28ec-4ef6-8009-382b25ef3f8f.webp?v=1714832220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d75ccdb351132c69c92cbae90aad1a7fcb0504a_e3dd6af7-c58a-4200-8a17-a4eac37daa20.webp?v=1714832222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e651d427ae995e7a2b6e82341a515905140b7c_04dedc95-1505-4907-a8a7-b5b57e4641c4.webp?v=1714832224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72773f229955993e9e662168dd8bcce7eb6da8f5_5bc48619-6352-4d08-bae3-e0b20cc8f651.webp?v=1714832229","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c1892d15f5f3ae482871351016a02577fe497e_cf182f64-37de-4062-a006-d6f9dc4e524b.webp?v=1714832231","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238909e0fd0dbd2dcbc590ff44c799154c7347be_ddf4e0f0-8c3a-4935-986b-cfc7a4bfbf01.webp?v=1714832233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c88fa2f1fbc941b700de204fcfc8318238b6311_b5518082-3f81-46f4-bfc6-7b9b91ef83a8.webp?v=1714832236"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1f42ab676cc3e0b4ea9b580f00af4dc92630d1_dff337b2-85c5-4993-ace8-b1cf00e6c227.webp?v=1714832215","options":["color"],"media":[{"alt":null,"id":23884397346915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1f42ab676cc3e0b4ea9b580f00af4dc92630d1_dff337b2-85c5-4993-ace8-b1cf00e6c227.webp?v=1714832215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1f42ab676cc3e0b4ea9b580f00af4dc92630d1_dff337b2-85c5-4993-ace8-b1cf00e6c227.webp?v=1714832215","width":2000},{"alt":null,"id":23884398166115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419e04eee5512d0f5b636bcc75db1750931bcc05_65827421-c5a0-4065-bc93-043dd1480d1d.webp?v=1714832218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419e04eee5512d0f5b636bcc75db1750931bcc05_65827421-c5a0-4065-bc93-043dd1480d1d.webp?v=1714832218","width":2000},{"alt":null,"id":23884398493795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21efead8ca1707ae7cbb58ad281ab2b8e580a221_d9c6914a-28ec-4ef6-8009-382b25ef3f8f.webp?v=1714832220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21efead8ca1707ae7cbb58ad281ab2b8e580a221_d9c6914a-28ec-4ef6-8009-382b25ef3f8f.webp?v=1714832220","width":2000},{"alt":null,"id":23884399050851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d75ccdb351132c69c92cbae90aad1a7fcb0504a_e3dd6af7-c58a-4200-8a17-a4eac37daa20.webp?v=1714832222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d75ccdb351132c69c92cbae90aad1a7fcb0504a_e3dd6af7-c58a-4200-8a17-a4eac37daa20.webp?v=1714832222","width":2000},{"alt":null,"id":23884399509603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e651d427ae995e7a2b6e82341a515905140b7c_04dedc95-1505-4907-a8a7-b5b57e4641c4.webp?v=1714832224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e651d427ae995e7a2b6e82341a515905140b7c_04dedc95-1505-4907-a8a7-b5b57e4641c4.webp?v=1714832224","width":2000},{"alt":null,"id":23884400525411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72773f229955993e9e662168dd8bcce7eb6da8f5_5bc48619-6352-4d08-bae3-e0b20cc8f651.webp?v=1714832229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72773f229955993e9e662168dd8bcce7eb6da8f5_5bc48619-6352-4d08-bae3-e0b20cc8f651.webp?v=1714832229","width":2000},{"alt":null,"id":23884401148003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c1892d15f5f3ae482871351016a02577fe497e_cf182f64-37de-4062-a006-d6f9dc4e524b.webp?v=1714832231"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c1892d15f5f3ae482871351016a02577fe497e_cf182f64-37de-4062-a006-d6f9dc4e524b.webp?v=1714832231","width":2000},{"alt":null,"id":23884401705059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238909e0fd0dbd2dcbc590ff44c799154c7347be_ddf4e0f0-8c3a-4935-986b-cfc7a4bfbf01.webp?v=1714832233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/238909e0fd0dbd2dcbc590ff44c799154c7347be_ddf4e0f0-8c3a-4935-986b-cfc7a4bfbf01.webp?v=1714832233","width":2000},{"alt":null,"id":23884402229347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c88fa2f1fbc941b700de204fcfc8318238b6311_b5518082-3f81-46f4-bfc6-7b9b91ef83a8.webp?v=1714832236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c88fa2f1fbc941b700de204fcfc8318238b6311_b5518082-3f81-46f4-bfc6-7b9b91ef83a8.webp?v=1714832236","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41893585223779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-SR02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479151034467,"product_id":7410959679587,"position":2,"created_at":"2024-05-04T22:16:57+08:00","updated_at":"2024-05-04T22:16:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419e04eee5512d0f5b636bcc75db1750931bcc05_65827421-c5a0-4065-bc93-043dd1480d1d.webp?v=1714832218","variant_ids":[41893585223779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - The Powerpuff Girls - 愛心徽章 - 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-SR02","featured_media":{"alt":null,"id":23884398166115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419e04eee5512d0f5b636bcc75db1750931bcc05_65827421-c5a0-4065-bc93-043dd1480d1d.webp?v=1714832218"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893585354851,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-SR02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479151493219,"product_id":7410959679587,"position":3,"created_at":"2024-05-04T22:17:00+08:00","updated_at":"2024-05-04T22:17:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21efead8ca1707ae7cbb58ad281ab2b8e580a221_d9c6914a-28ec-4ef6-8009-382b25ef3f8f.webp?v=1714832220","variant_ids":[41893585354851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - The Powerpuff Girls - 愛心徽章 - 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-SR02","featured_media":{"alt":null,"id":23884398493795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21efead8ca1707ae7cbb58ad281ab2b8e580a221_d9c6914a-28ec-4ef6-8009-382b25ef3f8f.webp?v=1714832220"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41893585223779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-SR02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479151034467,"product_id":7410959679587,"position":2,"created_at":"2024-05-04T22:16:57+08:00","updated_at":"2024-05-04T22:16:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419e04eee5512d0f5b636bcc75db1750931bcc05_65827421-c5a0-4065-bc93-043dd1480d1d.webp?v=1714832218","variant_ids":[41893585223779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - The Powerpuff Girls - 愛心徽章 - 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-SR02","featured_media":{"alt":null,"id":23884398166115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419e04eee5512d0f5b636bcc75db1750931bcc05_65827421-c5a0-4065-bc93-043dd1480d1d.webp?v=1714832218"}},"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: "停產"
}