$product = {"id":7408526262371,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - The Powerpuff Girls - 泡泡","handle":"iphone-12-pro-max-mod-nx-printable-sr06","description":null,"published_at":"2024-06-11T16:39:43+08:00","created_at":"2024-05-03T15:43:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-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-printable","new-modnx-sku","reseller-modnx-the-power-puff-girls","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41886493507683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SR06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472506044515,"product_id":7408526262371,"position":8,"created_at":"2024-05-03T15:44:18+08:00","updated_at":"2024-05-03T15:44:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a80a08a3bc55d74b5ff4f67147312ec2106cf_04393dd7-ea43-4df1-b2f6-1592c6b6d033.webp?v=1714722258","variant_ids":[41886493507683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - The Powerpuff Girls - 泡泡 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-SR06","featured_media":{"alt":null,"id":23877423300707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a80a08a3bc55d74b5ff4f67147312ec2106cf_04393dd7-ea43-4df1-b2f6-1592c6b6d033.webp?v=1714722258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62cd9aa1a3a5a0657cef2adfbefb7b7acdf0a8a9_d8280390-f3f3-4dde-888c-9d2a6732bf17.webp?v=1714722241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af750af96da09a6e6ad2cf1eed296835a3662bb3_2f14026e-5a6b-4fca-86b6-b658dc767b41.webp?v=1714722244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b78f2de24d96dead8462e5de8452ed2e7038e9_47ef2a80-24ad-4d59-9280-d6d7bb1c4168.webp?v=1714722246","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d6126a54738ff125e5ce316123cffeb8eb2e13f_1e0d81ef-8854-4ae4-af13-cac6f16904ed.webp?v=1714722248","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf71a29a9ae6c3e502fcc0a1c74e028865642a5_4b228b7b-191a-4c3b-af4f-366a5fcd7425.webp?v=1714722251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae166e36ae5c530c21b5de24a7fd9ebd672578ee_6f38a610-96ac-420b-9bda-a513a31afb7d.webp?v=1714722253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/469282d9753f4e5a119965613903a52156e07b65_89840e70-32ad-4a52-9ef6-232634455108.webp?v=1714722256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a80a08a3bc55d74b5ff4f67147312ec2106cf_04393dd7-ea43-4df1-b2f6-1592c6b6d033.webp?v=1714722258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60bdefae11d353792fe47fb329360a10d28ed70_b2afb58b-04bc-4eec-88ad-20dd812ff291.webp?v=1714722260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61709206c10517c70f979866ecade63b022a7f0d_b87c61cd-597c-4a9a-8d2f-747fa2b50b89.webp?v=1714722263"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62cd9aa1a3a5a0657cef2adfbefb7b7acdf0a8a9_d8280390-f3f3-4dde-888c-9d2a6732bf17.webp?v=1714722241","options":["color"],"media":[{"alt":null,"id":23877420154979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62cd9aa1a3a5a0657cef2adfbefb7b7acdf0a8a9_d8280390-f3f3-4dde-888c-9d2a6732bf17.webp?v=1714722241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62cd9aa1a3a5a0657cef2adfbefb7b7acdf0a8a9_d8280390-f3f3-4dde-888c-9d2a6732bf17.webp?v=1714722241","width":2000},{"alt":null,"id":23877420580963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af750af96da09a6e6ad2cf1eed296835a3662bb3_2f14026e-5a6b-4fca-86b6-b658dc767b41.webp?v=1714722244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af750af96da09a6e6ad2cf1eed296835a3662bb3_2f14026e-5a6b-4fca-86b6-b658dc767b41.webp?v=1714722244","width":2000},{"alt":null,"id":23877421170787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b78f2de24d96dead8462e5de8452ed2e7038e9_47ef2a80-24ad-4d59-9280-d6d7bb1c4168.webp?v=1714722246"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b78f2de24d96dead8462e5de8452ed2e7038e9_47ef2a80-24ad-4d59-9280-d6d7bb1c4168.webp?v=1714722246","width":2000},{"alt":null,"id":23877421498467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d6126a54738ff125e5ce316123cffeb8eb2e13f_1e0d81ef-8854-4ae4-af13-cac6f16904ed.webp?v=1714722248"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d6126a54738ff125e5ce316123cffeb8eb2e13f_1e0d81ef-8854-4ae4-af13-cac6f16904ed.webp?v=1714722248","width":2000},{"alt":null,"id":23877422219363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf71a29a9ae6c3e502fcc0a1c74e028865642a5_4b228b7b-191a-4c3b-af4f-366a5fcd7425.webp?v=1714722251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf71a29a9ae6c3e502fcc0a1c74e028865642a5_4b228b7b-191a-4c3b-af4f-366a5fcd7425.webp?v=1714722251","width":2000},{"alt":null,"id":23877422448739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae166e36ae5c530c21b5de24a7fd9ebd672578ee_6f38a610-96ac-420b-9bda-a513a31afb7d.webp?v=1714722253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae166e36ae5c530c21b5de24a7fd9ebd672578ee_6f38a610-96ac-420b-9bda-a513a31afb7d.webp?v=1714722253","width":2000},{"alt":null,"id":23877423071331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/469282d9753f4e5a119965613903a52156e07b65_89840e70-32ad-4a52-9ef6-232634455108.webp?v=1714722256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/469282d9753f4e5a119965613903a52156e07b65_89840e70-32ad-4a52-9ef6-232634455108.webp?v=1714722256","width":2000},{"alt":null,"id":23877423300707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a80a08a3bc55d74b5ff4f67147312ec2106cf_04393dd7-ea43-4df1-b2f6-1592c6b6d033.webp?v=1714722258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a80a08a3bc55d74b5ff4f67147312ec2106cf_04393dd7-ea43-4df1-b2f6-1592c6b6d033.webp?v=1714722258","width":2000},{"alt":null,"id":23877423923299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60bdefae11d353792fe47fb329360a10d28ed70_b2afb58b-04bc-4eec-88ad-20dd812ff291.webp?v=1714722260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60bdefae11d353792fe47fb329360a10d28ed70_b2afb58b-04bc-4eec-88ad-20dd812ff291.webp?v=1714722260","width":2000},{"alt":null,"id":23877424119907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61709206c10517c70f979866ecade63b022a7f0d_b87c61cd-597c-4a9a-8d2f-747fa2b50b89.webp?v=1714722263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61709206c10517c70f979866ecade63b022a7f0d_b87c61cd-597c-4a9a-8d2f-747fa2b50b89.webp?v=1714722263","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886493507683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SR06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472506044515,"product_id":7408526262371,"position":8,"created_at":"2024-05-03T15:44:18+08:00","updated_at":"2024-05-03T15:44:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a80a08a3bc55d74b5ff4f67147312ec2106cf_04393dd7-ea43-4df1-b2f6-1592c6b6d033.webp?v=1714722258","variant_ids":[41886493507683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - The Powerpuff Girls - 泡泡 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-SR06","featured_media":{"alt":null,"id":23877423300707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a80a08a3bc55d74b5ff4f67147312ec2106cf_04393dd7-ea43-4df1-b2f6-1592c6b6d033.webp?v=1714722258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886493507683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SR06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472506044515,"product_id":7408526262371,"position":8,"created_at":"2024-05-03T15:44:18+08:00","updated_at":"2024-05-03T15:44:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a80a08a3bc55d74b5ff4f67147312ec2106cf_04393dd7-ea43-4df1-b2f6-1592c6b6d033.webp?v=1714722258","variant_ids":[41886493507683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - The Powerpuff Girls - 泡泡 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-SR06","featured_media":{"alt":null,"id":23877423300707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c77a80a08a3bc55d74b5ff4f67147312ec2106cf_04393dd7-ea43-4df1-b2f6-1592c6b6d033.webp?v=1714722258"}},"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: "停產"
}