$product = {"id":7411129188451,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb72","description":null,"published_at":"2024-06-11T17:37:04+08:00","created_at":"2024-05-04T22:48:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41895261503587,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31479596384355,"product_id":7411129188451,"position":10,"created_at":"2024-05-04T22:49:09+08:00","updated_at":"2024-05-04T22:49:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1ade108162fd80ba2d1fd9e026eaf59cf6c721_b514f0d1-78e9-4754-a04a-ab02b4d59783.webp?v=1714834149","variant_ids":[41895261503587]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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-PB72","featured_media":{"alt":null,"id":23884844138595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1ade108162fd80ba2d1fd9e026eaf59cf6c721_b514f0d1-78e9-4754-a04a-ab02b4d59783.webp?v=1714834149"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895261634659,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31479593271395,"product_id":7411129188451,"position":4,"created_at":"2024-05-04T22:48:55+08:00","updated_at":"2024-05-04T22:48:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8a67034ea239f861f3d8d0bbc4cfe9daaaa227_9db33737-d7b1-4223-9793-e24bd3563dab.webp?v=1714834135","variant_ids":[41895261634659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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-PB72","featured_media":{"alt":null,"id":23884841025635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8a67034ea239f861f3d8d0bbc4cfe9daaaa227_9db33737-d7b1-4223-9793-e24bd3563dab.webp?v=1714834135"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfc255fa8caba2836022cd3eacbaa569e0df98b4_8e079083-4e79-4968-accb-2c50cf67fd5e.webp?v=1714834128","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93d2bd8201eeaee6004a760a289ef57e79747ae1_19715a6f-6133-44d6-a18a-e9a6397f51fc.webp?v=1714834130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f72624007165441ac106f62fc5a443736e2284e_f5296d57-3cdb-4f87-8f36-7de542025399.webp?v=1714834133","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8a67034ea239f861f3d8d0bbc4cfe9daaaa227_9db33737-d7b1-4223-9793-e24bd3563dab.webp?v=1714834135","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f830449f1f3245178122918c932985d76bf4178_31e4fead-8e09-47c0-a17c-276f3d355e34.webp?v=1714834137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cc2f2544a662e63e07eee672ed7e253566e4b32_27f8861c-fba4-4395-9bc6-b85969ef7599.webp?v=1714834140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/490e0d0fa81e64c59d19d5eedca3a8f3fc8e2b12_c48dfd70-a5b6-4d1f-8af6-33ae5a353f48.webp?v=1714834142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d791ea0db8103bd991203f08930ac183ad06ea33_c09350a1-0c9f-4c7f-935c-ca538a3986c3.webp?v=1714834144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c9b6ca8e0bda55441a77beadb43e5ff22c0b2da_048d8b57-26e8-4e6f-9ed9-d94d46c5e3de.webp?v=1714834147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1ade108162fd80ba2d1fd9e026eaf59cf6c721_b514f0d1-78e9-4754-a04a-ab02b4d59783.webp?v=1714834149"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfc255fa8caba2836022cd3eacbaa569e0df98b4_8e079083-4e79-4968-accb-2c50cf67fd5e.webp?v=1714834128","options":["color"],"media":[{"alt":null,"id":23884839026787,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfc255fa8caba2836022cd3eacbaa569e0df98b4_8e079083-4e79-4968-accb-2c50cf67fd5e.webp?v=1714834128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfc255fa8caba2836022cd3eacbaa569e0df98b4_8e079083-4e79-4968-accb-2c50cf67fd5e.webp?v=1714834128","width":2000},{"alt":null,"id":23884839780451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93d2bd8201eeaee6004a760a289ef57e79747ae1_19715a6f-6133-44d6-a18a-e9a6397f51fc.webp?v=1714834130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93d2bd8201eeaee6004a760a289ef57e79747ae1_19715a6f-6133-44d6-a18a-e9a6397f51fc.webp?v=1714834130","width":2000},{"alt":null,"id":23884840271971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f72624007165441ac106f62fc5a443736e2284e_f5296d57-3cdb-4f87-8f36-7de542025399.webp?v=1714834133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f72624007165441ac106f62fc5a443736e2284e_f5296d57-3cdb-4f87-8f36-7de542025399.webp?v=1714834133","width":2000},{"alt":null,"id":23884841025635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8a67034ea239f861f3d8d0bbc4cfe9daaaa227_9db33737-d7b1-4223-9793-e24bd3563dab.webp?v=1714834135"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8a67034ea239f861f3d8d0bbc4cfe9daaaa227_9db33737-d7b1-4223-9793-e24bd3563dab.webp?v=1714834135","width":2000},{"alt":null,"id":23884841386083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f830449f1f3245178122918c932985d76bf4178_31e4fead-8e09-47c0-a17c-276f3d355e34.webp?v=1714834137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f830449f1f3245178122918c932985d76bf4178_31e4fead-8e09-47c0-a17c-276f3d355e34.webp?v=1714834137","width":2000},{"alt":null,"id":23884842041443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cc2f2544a662e63e07eee672ed7e253566e4b32_27f8861c-fba4-4395-9bc6-b85969ef7599.webp?v=1714834140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cc2f2544a662e63e07eee672ed7e253566e4b32_27f8861c-fba4-4395-9bc6-b85969ef7599.webp?v=1714834140","width":2000},{"alt":null,"id":23884842401891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/490e0d0fa81e64c59d19d5eedca3a8f3fc8e2b12_c48dfd70-a5b6-4d1f-8af6-33ae5a353f48.webp?v=1714834142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/490e0d0fa81e64c59d19d5eedca3a8f3fc8e2b12_c48dfd70-a5b6-4d1f-8af6-33ae5a353f48.webp?v=1714834142","width":2000},{"alt":null,"id":23884843188323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d791ea0db8103bd991203f08930ac183ad06ea33_c09350a1-0c9f-4c7f-935c-ca538a3986c3.webp?v=1714834144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d791ea0db8103bd991203f08930ac183ad06ea33_c09350a1-0c9f-4c7f-935c-ca538a3986c3.webp?v=1714834144","width":2000},{"alt":null,"id":23884843647075,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c9b6ca8e0bda55441a77beadb43e5ff22c0b2da_048d8b57-26e8-4e6f-9ed9-d94d46c5e3de.webp?v=1714834147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c9b6ca8e0bda55441a77beadb43e5ff22c0b2da_048d8b57-26e8-4e6f-9ed9-d94d46c5e3de.webp?v=1714834147","width":2000},{"alt":null,"id":23884844138595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1ade108162fd80ba2d1fd9e026eaf59cf6c721_b514f0d1-78e9-4754-a04a-ab02b4d59783.webp?v=1714834149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1ade108162fd80ba2d1fd9e026eaf59cf6c721_b514f0d1-78e9-4754-a04a-ab02b4d59783.webp?v=1714834149","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41895261503587,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31479596384355,"product_id":7411129188451,"position":10,"created_at":"2024-05-04T22:49:09+08:00","updated_at":"2024-05-04T22:49:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1ade108162fd80ba2d1fd9e026eaf59cf6c721_b514f0d1-78e9-4754-a04a-ab02b4d59783.webp?v=1714834149","variant_ids":[41895261503587]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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-PB72","featured_media":{"alt":null,"id":23884844138595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1ade108162fd80ba2d1fd9e026eaf59cf6c721_b514f0d1-78e9-4754-a04a-ab02b4d59783.webp?v=1714834149"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895261634659,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31479593271395,"product_id":7411129188451,"position":4,"created_at":"2024-05-04T22:48:55+08:00","updated_at":"2024-05-04T22:48:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8a67034ea239f861f3d8d0bbc4cfe9daaaa227_9db33737-d7b1-4223-9793-e24bd3563dab.webp?v=1714834135","variant_ids":[41895261634659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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-PB72","featured_media":{"alt":null,"id":23884841025635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8a67034ea239f861f3d8d0bbc4cfe9daaaa227_9db33737-d7b1-4223-9793-e24bd3563dab.webp?v=1714834135"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41895261503587,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31479596384355,"product_id":7411129188451,"position":10,"created_at":"2024-05-04T22:49:09+08:00","updated_at":"2024-05-04T22:49:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1ade108162fd80ba2d1fd9e026eaf59cf6c721_b514f0d1-78e9-4754-a04a-ab02b4d59783.webp?v=1714834149","variant_ids":[41895261503587]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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-PB72","featured_media":{"alt":null,"id":23884844138595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b1ade108162fd80ba2d1fd9e026eaf59cf6c721_b514f0d1-78e9-4754-a04a-ab02b4d59783.webp?v=1714834149"}},"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: "停產"
}