$product = {"id":7415070654563,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - The Powerpuff Girls - 花花","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-sr05","description":null,"published_at":"2024-06-11T17:57:11+08:00","created_at":"2024-05-05T20:17:08+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 12 pro max","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":41911554834531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31488077398115,"product_id":7415070654563,"position":2,"created_at":"2024-05-05T20:17:14+08:00","updated_at":"2024-05-05T20:17:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e515d07d305c407e67a3e696197fc8e326e243_dfcb3c58-c585-425a-8c25-78cc07c29ec9.webp?v=1714911434","variant_ids":[41911554834531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 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":"MPB0118724-SR05","featured_media":{"alt":null,"id":23893421850723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e515d07d305c407e67a3e696197fc8e326e243_dfcb3c58-c585-425a-8c25-78cc07c29ec9.webp?v=1714911434"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5dad8e60ed2d9c81932218b8b893ebf8aee4bc_f96447a7-c8e5-4451-aff8-76991156d486.webp?v=1714911431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e515d07d305c407e67a3e696197fc8e326e243_dfcb3c58-c585-425a-8c25-78cc07c29ec9.webp?v=1714911434","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b401de1224450ae2c9babbc13a6644b8f744fe5_04475134-6388-4d7d-9866-ed5ebc888db8.webp?v=1714911436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f4df7d555715d8ce40be8f9565aaa65aa46c0c_fe6696fe-753a-4a9f-8d35-1da71dc230e8.webp?v=1714911438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee8be43960791da5b8be6b77180d3e7e8e16068_8d7b67e8-1cc7-459d-92d4-0d00e2f2d3df.webp?v=1714911441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91303891a4962fd8f8bb4407da335917eff10c82_7dcfd23d-696e-4d18-a4c7-b09e034f51ca.webp?v=1714911443","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef18db17eae86a4124aac9bbb3e7943bdaa2da95_4ce53f5a-d719-461c-9f66-ea200bd7f876.webp?v=1714911446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083e0b0ee1b98e9e58735421eb4b9649ccbaa551_2107ba00-ce1c-4517-96b1-74fe3e4d59b6.webp?v=1714911448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53ad36871367afadd7f4a09113003fa6b87b4fc5_ac88d5b5-f571-4bc4-b078-1112c1f2b651.webp?v=1714911451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ee6380fb29178e19fbe733dc72262068f470362_450ed83e-39cd-4de3-a7d2-4c9776577daf.webp?v=1714911453"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5dad8e60ed2d9c81932218b8b893ebf8aee4bc_f96447a7-c8e5-4451-aff8-76991156d486.webp?v=1714911431","options":["color"],"media":[{"alt":null,"id":23893421391971,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5dad8e60ed2d9c81932218b8b893ebf8aee4bc_f96447a7-c8e5-4451-aff8-76991156d486.webp?v=1714911431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5dad8e60ed2d9c81932218b8b893ebf8aee4bc_f96447a7-c8e5-4451-aff8-76991156d486.webp?v=1714911431","width":2000},{"alt":null,"id":23893421850723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e515d07d305c407e67a3e696197fc8e326e243_dfcb3c58-c585-425a-8c25-78cc07c29ec9.webp?v=1714911434"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e515d07d305c407e67a3e696197fc8e326e243_dfcb3c58-c585-425a-8c25-78cc07c29ec9.webp?v=1714911434","width":2000},{"alt":null,"id":23893422473315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b401de1224450ae2c9babbc13a6644b8f744fe5_04475134-6388-4d7d-9866-ed5ebc888db8.webp?v=1714911436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b401de1224450ae2c9babbc13a6644b8f744fe5_04475134-6388-4d7d-9866-ed5ebc888db8.webp?v=1714911436","width":2000},{"alt":null,"id":23893422997603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f4df7d555715d8ce40be8f9565aaa65aa46c0c_fe6696fe-753a-4a9f-8d35-1da71dc230e8.webp?v=1714911438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55f4df7d555715d8ce40be8f9565aaa65aa46c0c_fe6696fe-753a-4a9f-8d35-1da71dc230e8.webp?v=1714911438","width":2000},{"alt":null,"id":23893423587427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee8be43960791da5b8be6b77180d3e7e8e16068_8d7b67e8-1cc7-459d-92d4-0d00e2f2d3df.webp?v=1714911441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fee8be43960791da5b8be6b77180d3e7e8e16068_8d7b67e8-1cc7-459d-92d4-0d00e2f2d3df.webp?v=1714911441","width":2000},{"alt":null,"id":23893423947875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91303891a4962fd8f8bb4407da335917eff10c82_7dcfd23d-696e-4d18-a4c7-b09e034f51ca.webp?v=1714911443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91303891a4962fd8f8bb4407da335917eff10c82_7dcfd23d-696e-4d18-a4c7-b09e034f51ca.webp?v=1714911443","width":2000},{"alt":null,"id":23893425029219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef18db17eae86a4124aac9bbb3e7943bdaa2da95_4ce53f5a-d719-461c-9f66-ea200bd7f876.webp?v=1714911446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef18db17eae86a4124aac9bbb3e7943bdaa2da95_4ce53f5a-d719-461c-9f66-ea200bd7f876.webp?v=1714911446","width":2000},{"alt":null,"id":23893425455203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083e0b0ee1b98e9e58735421eb4b9649ccbaa551_2107ba00-ce1c-4517-96b1-74fe3e4d59b6.webp?v=1714911448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083e0b0ee1b98e9e58735421eb4b9649ccbaa551_2107ba00-ce1c-4517-96b1-74fe3e4d59b6.webp?v=1714911448","width":2000},{"alt":null,"id":23893426143331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53ad36871367afadd7f4a09113003fa6b87b4fc5_ac88d5b5-f571-4bc4-b078-1112c1f2b651.webp?v=1714911451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53ad36871367afadd7f4a09113003fa6b87b4fc5_ac88d5b5-f571-4bc4-b078-1112c1f2b651.webp?v=1714911451","width":2000},{"alt":null,"id":23893426438243,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ee6380fb29178e19fbe733dc72262068f470362_450ed83e-39cd-4de3-a7d2-4c9776577daf.webp?v=1714911453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ee6380fb29178e19fbe733dc72262068f470362_450ed83e-39cd-4de3-a7d2-4c9776577daf.webp?v=1714911453","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41911554834531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31488077398115,"product_id":7415070654563,"position":2,"created_at":"2024-05-05T20:17:14+08:00","updated_at":"2024-05-05T20:17:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e515d07d305c407e67a3e696197fc8e326e243_dfcb3c58-c585-425a-8c25-78cc07c29ec9.webp?v=1714911434","variant_ids":[41911554834531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 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":"MPB0118724-SR05","featured_media":{"alt":null,"id":23893421850723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e515d07d305c407e67a3e696197fc8e326e243_dfcb3c58-c585-425a-8c25-78cc07c29ec9.webp?v=1714911434"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41911554834531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SR05","requires_shipping":true,"taxable":true,"featured_image":{"id":31488077398115,"product_id":7415070654563,"position":2,"created_at":"2024-05-05T20:17:14+08:00","updated_at":"2024-05-05T20:17:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e515d07d305c407e67a3e696197fc8e326e243_dfcb3c58-c585-425a-8c25-78cc07c29ec9.webp?v=1714911434","variant_ids":[41911554834531]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 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":"MPB0118724-SR05","featured_media":{"alt":null,"id":23893421850723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e515d07d305c407e67a3e696197fc8e326e243_dfcb3c58-c585-425a-8c25-78cc07c29ec9.webp?v=1714911434"}},"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: "停產"
}