$product = {"id":7408453091427,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 熊滿星空","handle":"iphone-12-pro-max-mod-nx-printable-yb09","description":null,"published_at":"2024-06-11T16:37:38+08:00","created_at":"2024-05-03T15:29:23+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-carebears","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":41885640654947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31472314646627,"product_id":7408453091427,"position":1,"created_at":"2024-05-03T15:29:25+08:00","updated_at":"2024-05-03T15:29:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e801410260cb6a34b28ec5b2bf24f7d70f0b4b2_2cbe913d-2dc3-4e3c-a319-d76090af1828.webp?v=1714721365","variant_ids":[41885640654947]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 熊滿星空 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YB09","featured_media":{"alt":null,"id":23877231050851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e801410260cb6a34b28ec5b2bf24f7d70f0b4b2_2cbe913d-2dc3-4e3c-a319-d76090af1828.webp?v=1714721365"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e801410260cb6a34b28ec5b2bf24f7d70f0b4b2_2cbe913d-2dc3-4e3c-a319-d76090af1828.webp?v=1714721365","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64157f0ccd4e034774607319164e881d46e1c026_5e1c83c9-d0e3-4a55-b526-509e52bd7c47.webp?v=1714721368","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ee4a5884653a46f0f93805bad65f48e90477e44_f2c7d110-8d75-41fa-ac66-c7be12a36462.webp?v=1714721370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33ebebdc08e16ddfb3c958fba82eb688ad0e8595_35b9d91e-95bf-4ec8-b3d4-418ebececeb7.webp?v=1714721373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82cbcd577442e6b7a90109fd27b1fad31c239ea9_41501754-c61f-4245-b86e-7f70dd698ac7.webp?v=1714721375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0c5fa65a5939be6a6a73d15d89fd5368eb49475_3c1f856f-8229-48d6-9cde-b8d0ad35818b.webp?v=1714721378","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/068a27fb7eeb97d1c5a9425ae3488dea3a5fe195_8ef7e7a5-c3c4-45f1-9537-58a5c6983b17.webp?v=1714721380","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c765d33189f8e8cea0ce8885715843b05913b5_cc3827b0-ec05-476f-9e2c-3255fc6cd49c.webp?v=1714721382","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a4d4d34e1c751aefd19944054709aa0c9b230ac_91a2bdc9-6cdc-4e73-b17b-61923088d4c2.webp?v=1714721384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34cf84f4acba6a3aabb5b818fac49ef340f082a7_bb5b21e0-6bd7-4851-b04d-cd12eb4ba9ea.webp?v=1714721387"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e801410260cb6a34b28ec5b2bf24f7d70f0b4b2_2cbe913d-2dc3-4e3c-a319-d76090af1828.webp?v=1714721365","options":["color"],"media":[{"alt":null,"id":23877231050851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e801410260cb6a34b28ec5b2bf24f7d70f0b4b2_2cbe913d-2dc3-4e3c-a319-d76090af1828.webp?v=1714721365"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e801410260cb6a34b28ec5b2bf24f7d70f0b4b2_2cbe913d-2dc3-4e3c-a319-d76090af1828.webp?v=1714721365","width":2000},{"alt":null,"id":23877231542371,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64157f0ccd4e034774607319164e881d46e1c026_5e1c83c9-d0e3-4a55-b526-509e52bd7c47.webp?v=1714721368"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64157f0ccd4e034774607319164e881d46e1c026_5e1c83c9-d0e3-4a55-b526-509e52bd7c47.webp?v=1714721368","width":2000},{"alt":null,"id":23877232001123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ee4a5884653a46f0f93805bad65f48e90477e44_f2c7d110-8d75-41fa-ac66-c7be12a36462.webp?v=1714721370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ee4a5884653a46f0f93805bad65f48e90477e44_f2c7d110-8d75-41fa-ac66-c7be12a36462.webp?v=1714721370","width":2000},{"alt":null,"id":23877232623715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33ebebdc08e16ddfb3c958fba82eb688ad0e8595_35b9d91e-95bf-4ec8-b3d4-418ebececeb7.webp?v=1714721373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33ebebdc08e16ddfb3c958fba82eb688ad0e8595_35b9d91e-95bf-4ec8-b3d4-418ebececeb7.webp?v=1714721373","width":2000},{"alt":null,"id":23877233049699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82cbcd577442e6b7a90109fd27b1fad31c239ea9_41501754-c61f-4245-b86e-7f70dd698ac7.webp?v=1714721375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82cbcd577442e6b7a90109fd27b1fad31c239ea9_41501754-c61f-4245-b86e-7f70dd698ac7.webp?v=1714721375","width":2000},{"alt":null,"id":23877233606755,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0c5fa65a5939be6a6a73d15d89fd5368eb49475_3c1f856f-8229-48d6-9cde-b8d0ad35818b.webp?v=1714721378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0c5fa65a5939be6a6a73d15d89fd5368eb49475_3c1f856f-8229-48d6-9cde-b8d0ad35818b.webp?v=1714721378","width":2000},{"alt":null,"id":23877234163811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/068a27fb7eeb97d1c5a9425ae3488dea3a5fe195_8ef7e7a5-c3c4-45f1-9537-58a5c6983b17.webp?v=1714721380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/068a27fb7eeb97d1c5a9425ae3488dea3a5fe195_8ef7e7a5-c3c4-45f1-9537-58a5c6983b17.webp?v=1714721380","width":2000},{"alt":null,"id":23877234720867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c765d33189f8e8cea0ce8885715843b05913b5_cc3827b0-ec05-476f-9e2c-3255fc6cd49c.webp?v=1714721382"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5c765d33189f8e8cea0ce8885715843b05913b5_cc3827b0-ec05-476f-9e2c-3255fc6cd49c.webp?v=1714721382","width":2000},{"alt":null,"id":23877235376227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a4d4d34e1c751aefd19944054709aa0c9b230ac_91a2bdc9-6cdc-4e73-b17b-61923088d4c2.webp?v=1714721384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a4d4d34e1c751aefd19944054709aa0c9b230ac_91a2bdc9-6cdc-4e73-b17b-61923088d4c2.webp?v=1714721384","width":2000},{"alt":null,"id":23877235834979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34cf84f4acba6a3aabb5b818fac49ef340f082a7_bb5b21e0-6bd7-4851-b04d-cd12eb4ba9ea.webp?v=1714721387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34cf84f4acba6a3aabb5b818fac49ef340f082a7_bb5b21e0-6bd7-4851-b04d-cd12eb4ba9ea.webp?v=1714721387","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41885640654947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31472314646627,"product_id":7408453091427,"position":1,"created_at":"2024-05-03T15:29:25+08:00","updated_at":"2024-05-03T15:29:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e801410260cb6a34b28ec5b2bf24f7d70f0b4b2_2cbe913d-2dc3-4e3c-a319-d76090af1828.webp?v=1714721365","variant_ids":[41885640654947]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 熊滿星空 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YB09","featured_media":{"alt":null,"id":23877231050851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e801410260cb6a34b28ec5b2bf24f7d70f0b4b2_2cbe913d-2dc3-4e3c-a319-d76090af1828.webp?v=1714721365"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41885640654947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31472314646627,"product_id":7408453091427,"position":1,"created_at":"2024-05-03T15:29:25+08:00","updated_at":"2024-05-03T15:29:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e801410260cb6a34b28ec5b2bf24f7d70f0b4b2_2cbe913d-2dc3-4e3c-a319-d76090af1828.webp?v=1714721365","variant_ids":[41885640654947]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 熊滿星空 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YB09","featured_media":{"alt":null,"id":23877231050851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e801410260cb6a34b28ec5b2bf24f7d70f0b4b2_2cbe913d-2dc3-4e3c-a319-d76090af1828.webp?v=1714721365"}},"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: "停產"
}