$product = {"id":7414469984355,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb07","description":null,"published_at":"2024-06-11T17:51:30+08:00","created_at":"2024-05-05T14:26:55+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":41906740494435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485558128739,"product_id":7414469984355,"position":3,"created_at":"2024-05-05T14:27:02+08:00","updated_at":"2024-05-05T14:27:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb093cc1893e1321183d07a8047f7cf4c1b811de_87570220-c102-42ba-a2ca-7f7c01015aa4.webp?v=1714890422","variant_ids":[41906740494435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23890875383907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb093cc1893e1321183d07a8047f7cf4c1b811de_87570220-c102-42ba-a2ca-7f7c01015aa4.webp?v=1714890422"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906741379171,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485578477667,"product_id":7414469984355,"position":9,"created_at":"2024-05-05T14:27:16+08:00","updated_at":"2024-05-05T14:27:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16481a666ad6da117422d0ad7cb17128353c680e_1915f43f-4a2d-4dd6-8af0-6179adfedf06.webp?v=1714890436","variant_ids":[41906741379171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23890891833443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16481a666ad6da117422d0ad7cb17128353c680e_1915f43f-4a2d-4dd6-8af0-6179adfedf06.webp?v=1714890436"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7d1b37b7daede4fc7f338712206587004023e97_5d18e15a-f50e-41a6-963c-5fe0a8cb9372.webp?v=1714890417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1300fca3956bc8d6a20aa2b9846471fc946ad275_7c345c41-fb9c-43e3-815b-fe7877cf20eb.webp?v=1714890420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb093cc1893e1321183d07a8047f7cf4c1b811de_87570220-c102-42ba-a2ca-7f7c01015aa4.webp?v=1714890422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1381394f044b4d3d7751790a08bce3d050d827cd_2d06ac75-ef90-472c-99c5-f0998a28aa51.webp?v=1714890424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac5c451e31ac641df271ca482bccb7c954f1e3a8_4ac42e43-5a14-4d64-b18e-a05ed7c15672.webp?v=1714890426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bc4d78919ed516a3c8818424d4efca4dccc6f43_ff6668d1-7825-4413-bac8-04988e359ce6.webp?v=1714890428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8490937b25ed97984e193807aac2c0297bd1ded_97a1f55c-e9fd-4db1-b47a-2b1318237eb6.webp?v=1714890431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd08eb3178e3d9af79fa2aa3579e026c40b4da69_5438f987-f45c-4abf-ac69-713a1edd4a18.webp?v=1714890433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16481a666ad6da117422d0ad7cb17128353c680e_1915f43f-4a2d-4dd6-8af0-6179adfedf06.webp?v=1714890436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5f4af65ccf7df8321d42d93f3edc4f87c119baa_228fbc17-d400-4423-ae34-7665dc437e9b.webp?v=1714890438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d78513c8f0fff3d26976ab7a843bdc50ff1e067_28c0f457-3521-4283-b208-e49bd9b1b435.webp?v=1714890440"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7d1b37b7daede4fc7f338712206587004023e97_5d18e15a-f50e-41a6-963c-5fe0a8cb9372.webp?v=1714890417","options":["color"],"media":[{"alt":null,"id":23890870042723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7d1b37b7daede4fc7f338712206587004023e97_5d18e15a-f50e-41a6-963c-5fe0a8cb9372.webp?v=1714890417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7d1b37b7daede4fc7f338712206587004023e97_5d18e15a-f50e-41a6-963c-5fe0a8cb9372.webp?v=1714890417","width":2000},{"alt":null,"id":23890872926307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1300fca3956bc8d6a20aa2b9846471fc946ad275_7c345c41-fb9c-43e3-815b-fe7877cf20eb.webp?v=1714890420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1300fca3956bc8d6a20aa2b9846471fc946ad275_7c345c41-fb9c-43e3-815b-fe7877cf20eb.webp?v=1714890420","width":2000},{"alt":null,"id":23890875383907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb093cc1893e1321183d07a8047f7cf4c1b811de_87570220-c102-42ba-a2ca-7f7c01015aa4.webp?v=1714890422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb093cc1893e1321183d07a8047f7cf4c1b811de_87570220-c102-42ba-a2ca-7f7c01015aa4.webp?v=1714890422","width":2000},{"alt":null,"id":23890878169187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1381394f044b4d3d7751790a08bce3d050d827cd_2d06ac75-ef90-472c-99c5-f0998a28aa51.webp?v=1714890424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1381394f044b4d3d7751790a08bce3d050d827cd_2d06ac75-ef90-472c-99c5-f0998a28aa51.webp?v=1714890424","width":2000},{"alt":null,"id":23890880954467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac5c451e31ac641df271ca482bccb7c954f1e3a8_4ac42e43-5a14-4d64-b18e-a05ed7c15672.webp?v=1714890426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac5c451e31ac641df271ca482bccb7c954f1e3a8_4ac42e43-5a14-4d64-b18e-a05ed7c15672.webp?v=1714890426","width":2000},{"alt":null,"id":23890883641443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bc4d78919ed516a3c8818424d4efca4dccc6f43_ff6668d1-7825-4413-bac8-04988e359ce6.webp?v=1714890428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bc4d78919ed516a3c8818424d4efca4dccc6f43_ff6668d1-7825-4413-bac8-04988e359ce6.webp?v=1714890428","width":2000},{"alt":null,"id":23890886099043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8490937b25ed97984e193807aac2c0297bd1ded_97a1f55c-e9fd-4db1-b47a-2b1318237eb6.webp?v=1714890431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8490937b25ed97984e193807aac2c0297bd1ded_97a1f55c-e9fd-4db1-b47a-2b1318237eb6.webp?v=1714890431","width":2000},{"alt":null,"id":23890888949859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd08eb3178e3d9af79fa2aa3579e026c40b4da69_5438f987-f45c-4abf-ac69-713a1edd4a18.webp?v=1714890433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd08eb3178e3d9af79fa2aa3579e026c40b4da69_5438f987-f45c-4abf-ac69-713a1edd4a18.webp?v=1714890433","width":2000},{"alt":null,"id":23890891833443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16481a666ad6da117422d0ad7cb17128353c680e_1915f43f-4a2d-4dd6-8af0-6179adfedf06.webp?v=1714890436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16481a666ad6da117422d0ad7cb17128353c680e_1915f43f-4a2d-4dd6-8af0-6179adfedf06.webp?v=1714890436","width":2000},{"alt":null,"id":23890895667299,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5f4af65ccf7df8321d42d93f3edc4f87c119baa_228fbc17-d400-4423-ae34-7665dc437e9b.webp?v=1714890438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5f4af65ccf7df8321d42d93f3edc4f87c119baa_228fbc17-d400-4423-ae34-7665dc437e9b.webp?v=1714890438","width":2000},{"alt":null,"id":23890899599459,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d78513c8f0fff3d26976ab7a843bdc50ff1e067_28c0f457-3521-4283-b208-e49bd9b1b435.webp?v=1714890440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d78513c8f0fff3d26976ab7a843bdc50ff1e067_28c0f457-3521-4283-b208-e49bd9b1b435.webp?v=1714890440","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906740494435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485558128739,"product_id":7414469984355,"position":3,"created_at":"2024-05-05T14:27:02+08:00","updated_at":"2024-05-05T14:27:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb093cc1893e1321183d07a8047f7cf4c1b811de_87570220-c102-42ba-a2ca-7f7c01015aa4.webp?v=1714890422","variant_ids":[41906740494435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23890875383907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb093cc1893e1321183d07a8047f7cf4c1b811de_87570220-c102-42ba-a2ca-7f7c01015aa4.webp?v=1714890422"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906741379171,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485578477667,"product_id":7414469984355,"position":9,"created_at":"2024-05-05T14:27:16+08:00","updated_at":"2024-05-05T14:27:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16481a666ad6da117422d0ad7cb17128353c680e_1915f43f-4a2d-4dd6-8af0-6179adfedf06.webp?v=1714890436","variant_ids":[41906741379171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23890891833443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16481a666ad6da117422d0ad7cb17128353c680e_1915f43f-4a2d-4dd6-8af0-6179adfedf06.webp?v=1714890436"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906740494435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485558128739,"product_id":7414469984355,"position":3,"created_at":"2024-05-05T14:27:02+08:00","updated_at":"2024-05-05T14:27:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb093cc1893e1321183d07a8047f7cf4c1b811de_87570220-c102-42ba-a2ca-7f7c01015aa4.webp?v=1714890422","variant_ids":[41906740494435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23890875383907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb093cc1893e1321183d07a8047f7cf4c1b811de_87570220-c102-42ba-a2ca-7f7c01015aa4.webp?v=1714890422"}},"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: "停產"
}