$product = {"id":7763559252067,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - WHON STUDIO 緩緩 - 小淘氣","handle":"iphone-13-mini-mod-nx-magsafe-printable-who01","description":null,"published_at":"2025-04-07T09:18:33+08:00","created_at":"2025-04-01T11:39:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區WHON STUDIO 緩緩","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-whonstudio","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","reseller-modnx-magsafe-whonstudio","reseller-whonstudio","Top50","type-Mod NX 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":43280046391395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-WHO01","requires_shipping":true,"taxable":true,"featured_image":{"id":33654736388195,"product_id":7763559252067,"position":10,"created_at":"2025-04-01T11:40:05+08:00","updated_at":"2025-04-01T11:40:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0965592e21e6cb72a2183e6603d6fab4f6c10104.webp?v=1743478806","variant_ids":[43280046391395]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - WHON STUDIO 緩緩 - 小淘氣 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-WHO01","featured_media":{"alt":null,"id":25453305626723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0965592e21e6cb72a2183e6603d6fab4f6c10104.webp?v=1743478806"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43280055926883,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-WHO01","requires_shipping":true,"taxable":true,"featured_image":{"id":33654735798371,"product_id":7763559252067,"position":8,"created_at":"2025-04-01T11:40:01+08:00","updated_at":"2025-04-01T11:40:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47d169f8d5b904672b71cf784604f24053880e4.webp?v=1743478803","variant_ids":[43280055926883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - WHON STUDIO 緩緩 - 小淘氣 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-WHO01","featured_media":{"alt":null,"id":25453305331811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47d169f8d5b904672b71cf784604f24053880e4.webp?v=1743478803"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43280056057955,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-WHO01","requires_shipping":true,"taxable":true,"featured_image":{"id":33654733144163,"product_id":7763559252067,"position":2,"created_at":"2025-04-01T11:39:45+08:00","updated_at":"2025-04-01T11:39:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97718ad0a60ea17cc3537f6ad823cfc717722526.webp?v=1743478787","variant_ids":[43280056057955]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - WHON STUDIO 緩緩 - 小淘氣 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-WHO01","featured_media":{"alt":null,"id":25453303726179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97718ad0a60ea17cc3537f6ad823cfc717722526.webp?v=1743478787"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cc28f62121735b8bc248b305e727433867d0b8e.webp?v=1743478784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97718ad0a60ea17cc3537f6ad823cfc717722526.webp?v=1743478787","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de13e7fc95dffaa5b8a6e62ca911958bd2616ad.webp?v=1743478789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abb2e277a520f31026100cf14739e5b27f3cf2c.webp?v=1743478793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/323a194ed945c36b086bf84312703dd3c790f436.webp?v=1743478796","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e2b026ec9132ff330ff2261bfdd543ad8aad6c.webp?v=1743478798","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc3e3a948cccde3f26af78e4551323d8135a2d8b.webp?v=1743478802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47d169f8d5b904672b71cf784604f24053880e4.webp?v=1743478803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e617e421095c9a6b8c601918a68fad44e058b2cc.webp?v=1743478805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0965592e21e6cb72a2183e6603d6fab4f6c10104.webp?v=1743478806"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cc28f62121735b8bc248b305e727433867d0b8e.webp?v=1743478784","options":["color"],"media":[{"alt":null,"id":25453303595107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cc28f62121735b8bc248b305e727433867d0b8e.webp?v=1743478784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cc28f62121735b8bc248b305e727433867d0b8e.webp?v=1743478784","width":2000},{"alt":null,"id":25453303726179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97718ad0a60ea17cc3537f6ad823cfc717722526.webp?v=1743478787"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97718ad0a60ea17cc3537f6ad823cfc717722526.webp?v=1743478787","width":2000},{"alt":null,"id":25453303890019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de13e7fc95dffaa5b8a6e62ca911958bd2616ad.webp?v=1743478789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de13e7fc95dffaa5b8a6e62ca911958bd2616ad.webp?v=1743478789","width":2000},{"alt":null,"id":25453304250467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abb2e277a520f31026100cf14739e5b27f3cf2c.webp?v=1743478793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abb2e277a520f31026100cf14739e5b27f3cf2c.webp?v=1743478793","width":2000},{"alt":null,"id":25453304479843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/323a194ed945c36b086bf84312703dd3c790f436.webp?v=1743478796"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/323a194ed945c36b086bf84312703dd3c790f436.webp?v=1743478796","width":2000},{"alt":null,"id":25453304643683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e2b026ec9132ff330ff2261bfdd543ad8aad6c.webp?v=1743478798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13e2b026ec9132ff330ff2261bfdd543ad8aad6c.webp?v=1743478798","width":2000},{"alt":null,"id":25453305167971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc3e3a948cccde3f26af78e4551323d8135a2d8b.webp?v=1743478802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc3e3a948cccde3f26af78e4551323d8135a2d8b.webp?v=1743478802","width":2000},{"alt":null,"id":25453305331811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47d169f8d5b904672b71cf784604f24053880e4.webp?v=1743478803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47d169f8d5b904672b71cf784604f24053880e4.webp?v=1743478803","width":2000},{"alt":null,"id":25453305495651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e617e421095c9a6b8c601918a68fad44e058b2cc.webp?v=1743478805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e617e421095c9a6b8c601918a68fad44e058b2cc.webp?v=1743478805","width":2000},{"alt":null,"id":25453305626723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0965592e21e6cb72a2183e6603d6fab4f6c10104.webp?v=1743478806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0965592e21e6cb72a2183e6603d6fab4f6c10104.webp?v=1743478806","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43280046391395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-WHO01","requires_shipping":true,"taxable":true,"featured_image":{"id":33654736388195,"product_id":7763559252067,"position":10,"created_at":"2025-04-01T11:40:05+08:00","updated_at":"2025-04-01T11:40:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0965592e21e6cb72a2183e6603d6fab4f6c10104.webp?v=1743478806","variant_ids":[43280046391395]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - WHON STUDIO 緩緩 - 小淘氣 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-WHO01","featured_media":{"alt":null,"id":25453305626723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0965592e21e6cb72a2183e6603d6fab4f6c10104.webp?v=1743478806"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43280055926883,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-WHO01","requires_shipping":true,"taxable":true,"featured_image":{"id":33654735798371,"product_id":7763559252067,"position":8,"created_at":"2025-04-01T11:40:01+08:00","updated_at":"2025-04-01T11:40:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47d169f8d5b904672b71cf784604f24053880e4.webp?v=1743478803","variant_ids":[43280055926883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - WHON STUDIO 緩緩 - 小淘氣 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-WHO01","featured_media":{"alt":null,"id":25453305331811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47d169f8d5b904672b71cf784604f24053880e4.webp?v=1743478803"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43280056057955,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-WHO01","requires_shipping":true,"taxable":true,"featured_image":{"id":33654733144163,"product_id":7763559252067,"position":2,"created_at":"2025-04-01T11:39:45+08:00","updated_at":"2025-04-01T11:39:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97718ad0a60ea17cc3537f6ad823cfc717722526.webp?v=1743478787","variant_ids":[43280056057955]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - WHON STUDIO 緩緩 - 小淘氣 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-WHO01","featured_media":{"alt":null,"id":25453303726179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97718ad0a60ea17cc3537f6ad823cfc717722526.webp?v=1743478787"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43280046391395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-WHO01","requires_shipping":true,"taxable":true,"featured_image":{"id":33654736388195,"product_id":7763559252067,"position":10,"created_at":"2025-04-01T11:40:05+08:00","updated_at":"2025-04-01T11:40:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0965592e21e6cb72a2183e6603d6fab4f6c10104.webp?v=1743478806","variant_ids":[43280046391395]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - WHON STUDIO 緩緩 - 小淘氣 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-WHO01","featured_media":{"alt":null,"id":25453305626723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0965592e21e6cb72a2183e6603d6fab4f6c10104.webp?v=1743478806"}},"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: "停產"
}