$product = {"id":7414689661027,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb77","description":null,"published_at":"2024-06-11T17:53:09+08:00","created_at":"2024-05-05T14:38:17+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 13 Pro Max","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":41908305231971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31486040506467,"product_id":7414689661027,"position":6,"created_at":"2024-05-05T14:38:31+08:00","updated_at":"2024-05-05T14:38:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf5df29164ecdcfd170b8e42fdd2b330a5d6cecd_704e08b9-450b-41de-9e70-c284fcd55428.webp?v=1714891111","variant_ids":[41908305231971]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB77","featured_media":{"alt":null,"id":23891375947875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf5df29164ecdcfd170b8e42fdd2b330a5d6cecd_704e08b9-450b-41de-9e70-c284fcd55428.webp?v=1714891111"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908305559651,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31486044569699,"product_id":7414689661027,"position":9,"created_at":"2024-05-05T14:38:38+08:00","updated_at":"2024-05-05T14:38:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caef6db1c687186187e747bed2d1a6755d8a89f_206e0fe0-33b7-49f4-94f0-f90b89e28c13.webp?v=1714891118","variant_ids":[41908305559651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB01232J5-PB77","featured_media":{"alt":null,"id":23891379978339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caef6db1c687186187e747bed2d1a6755d8a89f_206e0fe0-33b7-49f4-94f0-f90b89e28c13.webp?v=1714891118"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ac023e383be67e6a08b4541681742211376ae15_bb55f2c2-511a-4fe5-87ed-f956eb01b6da.webp?v=1714891100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef3a7ca27967df12dcd7b55423d96a3985dbfa4b_e5de2e59-d30b-4c5c-b89a-08e02b13ce34.webp?v=1714891102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0143d4c43c56b03044d31ee8886846d72f0b39d2_3719f41f-f95d-4ea8-8c53-cbd30fc264d3.webp?v=1714891104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f6e7cd80f3666568a9cfc38f1555c3ce3a0c7f_23454951-3b4a-46e0-9317-8203b169c0f2.webp?v=1714891107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f50cb909fd08693c9ff63bd1ff3570ccf4131e5_608447f9-f476-4343-b1ab-74bf1e30ba7b.webp?v=1714891109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf5df29164ecdcfd170b8e42fdd2b330a5d6cecd_704e08b9-450b-41de-9e70-c284fcd55428.webp?v=1714891111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e01ad7854fe6e37ca964b524f7d69402e12f180d_5b250986-519e-414b-a37a-4aa927703d27.webp?v=1714891113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b8799680fc51df10c1b12ad80bfc087bdf25ea_109c9c15-4f6f-4800-ac43-f8991937e3fb.webp?v=1714891116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caef6db1c687186187e747bed2d1a6755d8a89f_206e0fe0-33b7-49f4-94f0-f90b89e28c13.webp?v=1714891118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345cc144779f7d378b3dc287bafc75d420e58da5_3d097c67-2114-45c8-bc94-d5f8b823db93.webp?v=1714891120","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39d978211d7488471c078c0cef9df02e66c31bf_604de53a-2d4b-4c4b-b261-76da3ba89957.webp?v=1714891122"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ac023e383be67e6a08b4541681742211376ae15_bb55f2c2-511a-4fe5-87ed-f956eb01b6da.webp?v=1714891100","options":["color"],"media":[{"alt":null,"id":23891369394275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ac023e383be67e6a08b4541681742211376ae15_bb55f2c2-511a-4fe5-87ed-f956eb01b6da.webp?v=1714891100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ac023e383be67e6a08b4541681742211376ae15_bb55f2c2-511a-4fe5-87ed-f956eb01b6da.webp?v=1714891100","width":2000},{"alt":null,"id":23891370606691,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef3a7ca27967df12dcd7b55423d96a3985dbfa4b_e5de2e59-d30b-4c5c-b89a-08e02b13ce34.webp?v=1714891102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef3a7ca27967df12dcd7b55423d96a3985dbfa4b_e5de2e59-d30b-4c5c-b89a-08e02b13ce34.webp?v=1714891102","width":2000},{"alt":null,"id":23891372114019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0143d4c43c56b03044d31ee8886846d72f0b39d2_3719f41f-f95d-4ea8-8c53-cbd30fc264d3.webp?v=1714891104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0143d4c43c56b03044d31ee8886846d72f0b39d2_3719f41f-f95d-4ea8-8c53-cbd30fc264d3.webp?v=1714891104","width":2000},{"alt":null,"id":23891373424739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f6e7cd80f3666568a9cfc38f1555c3ce3a0c7f_23454951-3b4a-46e0-9317-8203b169c0f2.webp?v=1714891107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f6e7cd80f3666568a9cfc38f1555c3ce3a0c7f_23454951-3b4a-46e0-9317-8203b169c0f2.webp?v=1714891107","width":2000},{"alt":null,"id":23891374800995,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f50cb909fd08693c9ff63bd1ff3570ccf4131e5_608447f9-f476-4343-b1ab-74bf1e30ba7b.webp?v=1714891109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f50cb909fd08693c9ff63bd1ff3570ccf4131e5_608447f9-f476-4343-b1ab-74bf1e30ba7b.webp?v=1714891109","width":2000},{"alt":null,"id":23891375947875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf5df29164ecdcfd170b8e42fdd2b330a5d6cecd_704e08b9-450b-41de-9e70-c284fcd55428.webp?v=1714891111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf5df29164ecdcfd170b8e42fdd2b330a5d6cecd_704e08b9-450b-41de-9e70-c284fcd55428.webp?v=1714891111","width":2000},{"alt":null,"id":23891377291363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e01ad7854fe6e37ca964b524f7d69402e12f180d_5b250986-519e-414b-a37a-4aa927703d27.webp?v=1714891113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e01ad7854fe6e37ca964b524f7d69402e12f180d_5b250986-519e-414b-a37a-4aa927703d27.webp?v=1714891113","width":2000},{"alt":null,"id":23891378831459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b8799680fc51df10c1b12ad80bfc087bdf25ea_109c9c15-4f6f-4800-ac43-f8991937e3fb.webp?v=1714891116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25b8799680fc51df10c1b12ad80bfc087bdf25ea_109c9c15-4f6f-4800-ac43-f8991937e3fb.webp?v=1714891116","width":2000},{"alt":null,"id":23891379978339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caef6db1c687186187e747bed2d1a6755d8a89f_206e0fe0-33b7-49f4-94f0-f90b89e28c13.webp?v=1714891118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caef6db1c687186187e747bed2d1a6755d8a89f_206e0fe0-33b7-49f4-94f0-f90b89e28c13.webp?v=1714891118","width":2000},{"alt":null,"id":23891381059683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345cc144779f7d378b3dc287bafc75d420e58da5_3d097c67-2114-45c8-bc94-d5f8b823db93.webp?v=1714891120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345cc144779f7d378b3dc287bafc75d420e58da5_3d097c67-2114-45c8-bc94-d5f8b823db93.webp?v=1714891120","width":2000},{"alt":null,"id":23891382108259,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39d978211d7488471c078c0cef9df02e66c31bf_604de53a-2d4b-4c4b-b261-76da3ba89957.webp?v=1714891122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39d978211d7488471c078c0cef9df02e66c31bf_604de53a-2d4b-4c4b-b261-76da3ba89957.webp?v=1714891122","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41908305231971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31486040506467,"product_id":7414689661027,"position":6,"created_at":"2024-05-05T14:38:31+08:00","updated_at":"2024-05-05T14:38:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf5df29164ecdcfd170b8e42fdd2b330a5d6cecd_704e08b9-450b-41de-9e70-c284fcd55428.webp?v=1714891111","variant_ids":[41908305231971]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB77","featured_media":{"alt":null,"id":23891375947875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf5df29164ecdcfd170b8e42fdd2b330a5d6cecd_704e08b9-450b-41de-9e70-c284fcd55428.webp?v=1714891111"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908305559651,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31486044569699,"product_id":7414689661027,"position":9,"created_at":"2024-05-05T14:38:38+08:00","updated_at":"2024-05-05T14:38:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caef6db1c687186187e747bed2d1a6755d8a89f_206e0fe0-33b7-49f4-94f0-f90b89e28c13.webp?v=1714891118","variant_ids":[41908305559651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB01232J5-PB77","featured_media":{"alt":null,"id":23891379978339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caef6db1c687186187e747bed2d1a6755d8a89f_206e0fe0-33b7-49f4-94f0-f90b89e28c13.webp?v=1714891118"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41908305231971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31486040506467,"product_id":7414689661027,"position":6,"created_at":"2024-05-05T14:38:31+08:00","updated_at":"2024-05-05T14:38:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf5df29164ecdcfd170b8e42fdd2b330a5d6cecd_704e08b9-450b-41de-9e70-c284fcd55428.webp?v=1714891111","variant_ids":[41908305231971]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB77","featured_media":{"alt":null,"id":23891375947875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf5df29164ecdcfd170b8e42fdd2b330a5d6cecd_704e08b9-450b-41de-9e70-c284fcd55428.webp?v=1714891111"}},"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: "停產"
}