$product = {"id":7411048448099,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - The Powerpuff Girls - 花花","handle":"iphone-15-plus-mod-nx-magsafe-printable-sr05","description":null,"published_at":"2024-06-11T17:34:56+08:00","created_at":"2024-05-04T22:33:13+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":41894454952035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479381885027,"product_id":7411048448099,"position":8,"created_at":"2024-05-04T22:33:35+08:00","updated_at":"2024-05-04T22:33:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463057a8bade69e6c3cfedb58a8b6c2918b5a8d1_1246cca5-d395-4497-a8d9-64b8b95ae331.webp?v=1714833215","variant_ids":[41894454952035]},"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-SR05","featured_media":{"alt":null,"id":23884629475427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463057a8bade69e6c3cfedb58a8b6c2918b5a8d1_1246cca5-d395-4497-a8d9-64b8b95ae331.webp?v=1714833215"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894455181411,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479377887331,"product_id":7411048448099,"position":2,"created_at":"2024-05-04T22:33:18+08:00","updated_at":"2024-05-04T22:33:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/488f3891c230dfbec72e1833ba58a451b9dd71b2_be8906e0-0e3c-4f57-917c-2dbb62897c57.webp?v=1714833198","variant_ids":[41894455181411]},"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-SR05","featured_media":{"alt":null,"id":23884625412195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/488f3891c230dfbec72e1833ba58a451b9dd71b2_be8906e0-0e3c-4f57-917c-2dbb62897c57.webp?v=1714833198"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f35ebf5da044e0a6256493a93fadd9ba3ab1d913_11b611f6-1a49-4301-b48b-5ff96b075e6a.webp?v=1714833196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/488f3891c230dfbec72e1833ba58a451b9dd71b2_be8906e0-0e3c-4f57-917c-2dbb62897c57.webp?v=1714833198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49d9f4a7d4119e99c69cf67d06e020f0dc363fc_3dbbf2d4-308d-4241-82ab-8f1f626ebefc.webp?v=1714833201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbe07b24f19715a1dab932bfe4cd1382a57647fb_eee5bcb2-2219-4252-a08f-7a6c3e81e509.webp?v=1714833203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9c35baf6c085b29524ae4267338a0dd358a13a3_23a26f48-14a5-4645-a078-13be985ad079.webp?v=1714833206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0abf686f01a9100ceba9eb625474cbe822ce9845_ab69fce1-992e-4acf-9aea-72b16ae062da.webp?v=1714833211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7dc22c2d0e760f05db394d05c804fbfbf0cf6bb_824a5b63-de36-42c9-9589-7be508e40e18.webp?v=1714833213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463057a8bade69e6c3cfedb58a8b6c2918b5a8d1_1246cca5-d395-4497-a8d9-64b8b95ae331.webp?v=1714833215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc95c0d7b9e8d6246672ff3300c3aed66fc8c1a_83475695-4ba6-4adc-b2d7-49f3df1db3d4.webp?v=1714833218"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f35ebf5da044e0a6256493a93fadd9ba3ab1d913_11b611f6-1a49-4301-b48b-5ff96b075e6a.webp?v=1714833196","options":["color"],"media":[{"alt":null,"id":23884624920675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f35ebf5da044e0a6256493a93fadd9ba3ab1d913_11b611f6-1a49-4301-b48b-5ff96b075e6a.webp?v=1714833196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f35ebf5da044e0a6256493a93fadd9ba3ab1d913_11b611f6-1a49-4301-b48b-5ff96b075e6a.webp?v=1714833196","width":2000},{"alt":null,"id":23884625412195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/488f3891c230dfbec72e1833ba58a451b9dd71b2_be8906e0-0e3c-4f57-917c-2dbb62897c57.webp?v=1714833198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/488f3891c230dfbec72e1833ba58a451b9dd71b2_be8906e0-0e3c-4f57-917c-2dbb62897c57.webp?v=1714833198","width":2000},{"alt":null,"id":23884626133091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49d9f4a7d4119e99c69cf67d06e020f0dc363fc_3dbbf2d4-308d-4241-82ab-8f1f626ebefc.webp?v=1714833201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49d9f4a7d4119e99c69cf67d06e020f0dc363fc_3dbbf2d4-308d-4241-82ab-8f1f626ebefc.webp?v=1714833201","width":2000},{"alt":null,"id":23884626657379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbe07b24f19715a1dab932bfe4cd1382a57647fb_eee5bcb2-2219-4252-a08f-7a6c3e81e509.webp?v=1714833203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbe07b24f19715a1dab932bfe4cd1382a57647fb_eee5bcb2-2219-4252-a08f-7a6c3e81e509.webp?v=1714833203","width":2000},{"alt":null,"id":23884627214435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9c35baf6c085b29524ae4267338a0dd358a13a3_23a26f48-14a5-4645-a078-13be985ad079.webp?v=1714833206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9c35baf6c085b29524ae4267338a0dd358a13a3_23a26f48-14a5-4645-a078-13be985ad079.webp?v=1714833206","width":2000},{"alt":null,"id":23884628263011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0abf686f01a9100ceba9eb625474cbe822ce9845_ab69fce1-992e-4acf-9aea-72b16ae062da.webp?v=1714833211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0abf686f01a9100ceba9eb625474cbe822ce9845_ab69fce1-992e-4acf-9aea-72b16ae062da.webp?v=1714833211","width":2000},{"alt":null,"id":23884628983907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7dc22c2d0e760f05db394d05c804fbfbf0cf6bb_824a5b63-de36-42c9-9589-7be508e40e18.webp?v=1714833213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7dc22c2d0e760f05db394d05c804fbfbf0cf6bb_824a5b63-de36-42c9-9589-7be508e40e18.webp?v=1714833213","width":2000},{"alt":null,"id":23884629475427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463057a8bade69e6c3cfedb58a8b6c2918b5a8d1_1246cca5-d395-4497-a8d9-64b8b95ae331.webp?v=1714833215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463057a8bade69e6c3cfedb58a8b6c2918b5a8d1_1246cca5-d395-4497-a8d9-64b8b95ae331.webp?v=1714833215","width":2000},{"alt":null,"id":23884630032483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc95c0d7b9e8d6246672ff3300c3aed66fc8c1a_83475695-4ba6-4adc-b2d7-49f3df1db3d4.webp?v=1714833218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecc95c0d7b9e8d6246672ff3300c3aed66fc8c1a_83475695-4ba6-4adc-b2d7-49f3df1db3d4.webp?v=1714833218","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41894454952035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479381885027,"product_id":7411048448099,"position":8,"created_at":"2024-05-04T22:33:35+08:00","updated_at":"2024-05-04T22:33:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463057a8bade69e6c3cfedb58a8b6c2918b5a8d1_1246cca5-d395-4497-a8d9-64b8b95ae331.webp?v=1714833215","variant_ids":[41894454952035]},"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-SR05","featured_media":{"alt":null,"id":23884629475427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463057a8bade69e6c3cfedb58a8b6c2918b5a8d1_1246cca5-d395-4497-a8d9-64b8b95ae331.webp?v=1714833215"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894455181411,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479377887331,"product_id":7411048448099,"position":2,"created_at":"2024-05-04T22:33:18+08:00","updated_at":"2024-05-04T22:33:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/488f3891c230dfbec72e1833ba58a451b9dd71b2_be8906e0-0e3c-4f57-917c-2dbb62897c57.webp?v=1714833198","variant_ids":[41894455181411]},"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-SR05","featured_media":{"alt":null,"id":23884625412195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/488f3891c230dfbec72e1833ba58a451b9dd71b2_be8906e0-0e3c-4f57-917c-2dbb62897c57.webp?v=1714833198"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41894454952035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479381885027,"product_id":7411048448099,"position":8,"created_at":"2024-05-04T22:33:35+08:00","updated_at":"2024-05-04T22:33:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463057a8bade69e6c3cfedb58a8b6c2918b5a8d1_1246cca5-d395-4497-a8d9-64b8b95ae331.webp?v=1714833215","variant_ids":[41894454952035]},"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-SR05","featured_media":{"alt":null,"id":23884629475427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463057a8bade69e6c3cfedb58a8b6c2918b5a8d1_1246cca5-d395-4497-a8d9-64b8b95ae331.webp?v=1714833215"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}