$product = {"id":7408120594531,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋","handle":"iphone-13-pro-max-mod-nx-printable-pb20","description":null,"published_at":"2024-06-11T16:31:56+08:00","created_at":"2024-05-03T12:03:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41882910785635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31471246049379,"product_id":7408120594531,"position":9,"created_at":"2024-05-03T12:04:18+08:00","updated_at":"2024-05-03T12:04:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395552098bc9e19f785c57f3f7c76d7cb6f2df69_a9083e1a-60e1-46fb-b951-a0a030bd82aa.webp?v=1714709058","variant_ids":[41882910785635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋 - 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":"NPB0123224-PB20","featured_media":{"alt":null,"id":23876151509091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395552098bc9e19f785c57f3f7c76d7cb6f2df69_a9083e1a-60e1-46fb-b951-a0a030bd82aa.webp?v=1714709058"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882911080547,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31471245295715,"product_id":7408120594531,"position":8,"created_at":"2024-05-03T12:04:15+08:00","updated_at":"2024-05-03T12:04:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be216b3704f0f86fe640c4339d8d86fddefcf3c6_406f5b4b-a57e-4f35-9a57-4f72bc9c684f.webp?v=1714709055","variant_ids":[41882911080547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋 - 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":"NPB01232J5-PB20","featured_media":{"alt":null,"id":23876150853731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be216b3704f0f86fe640c4339d8d86fddefcf3c6_406f5b4b-a57e-4f35-9a57-4f72bc9c684f.webp?v=1714709055"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a382582bbe2610ef3d433e87fb9357702da3c0e9_32b643e6-cdb1-480a-bc71-c9d4f21691f3.webp?v=1714709039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fd16b4ab23c085591bbc5f922275419c29b395d_220f9eed-483b-4ad9-bac3-2497e1145022.webp?v=1714709041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdb9074e8992c19eb877416f1f8e957db25f693_5a379eb2-c53d-44ca-ab75-bfd50efcea1a.webp?v=1714709043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf7b194c0bfd0428d49cabb556d448ca8221626_f567b639-c4aa-46cf-9ec8-70284ae3f6fa.webp?v=1714709046","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cead935c2596625c2f7464e341012137f55f2104_0d847e93-2c17-4e08-a9c3-174dc38d1167.webp?v=1714709048","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f2e88119d56fd14db3e1244e7d4ea15b610f431_8e3386e0-ee8a-42bb-9192-1c825284e875.webp?v=1714709050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aec85b9f95d929084c8db8b07c4b85d120a2182_67267109-28ed-4ffb-aa69-8e731ba9f065.webp?v=1714709053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be216b3704f0f86fe640c4339d8d86fddefcf3c6_406f5b4b-a57e-4f35-9a57-4f72bc9c684f.webp?v=1714709055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395552098bc9e19f785c57f3f7c76d7cb6f2df69_a9083e1a-60e1-46fb-b951-a0a030bd82aa.webp?v=1714709058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/592db7a0b551b9c2d3881f609f2b02da2a89f61e_e1e20de6-d6be-4fcd-bf18-f18dcee06ef8.webp?v=1714709060"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a382582bbe2610ef3d433e87fb9357702da3c0e9_32b643e6-cdb1-480a-bc71-c9d4f21691f3.webp?v=1714709039","options":["color"],"media":[{"alt":null,"id":23876147249251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a382582bbe2610ef3d433e87fb9357702da3c0e9_32b643e6-cdb1-480a-bc71-c9d4f21691f3.webp?v=1714709039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a382582bbe2610ef3d433e87fb9357702da3c0e9_32b643e6-cdb1-480a-bc71-c9d4f21691f3.webp?v=1714709039","width":2000},{"alt":null,"id":23876147970147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fd16b4ab23c085591bbc5f922275419c29b395d_220f9eed-483b-4ad9-bac3-2497e1145022.webp?v=1714709041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fd16b4ab23c085591bbc5f922275419c29b395d_220f9eed-483b-4ad9-bac3-2497e1145022.webp?v=1714709041","width":2000},{"alt":null,"id":23876148330595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdb9074e8992c19eb877416f1f8e957db25f693_5a379eb2-c53d-44ca-ab75-bfd50efcea1a.webp?v=1714709043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdb9074e8992c19eb877416f1f8e957db25f693_5a379eb2-c53d-44ca-ab75-bfd50efcea1a.webp?v=1714709043","width":2000},{"alt":null,"id":23876148887651,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf7b194c0bfd0428d49cabb556d448ca8221626_f567b639-c4aa-46cf-9ec8-70284ae3f6fa.webp?v=1714709046"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf7b194c0bfd0428d49cabb556d448ca8221626_f567b639-c4aa-46cf-9ec8-70284ae3f6fa.webp?v=1714709046","width":2000},{"alt":null,"id":23876149379171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cead935c2596625c2f7464e341012137f55f2104_0d847e93-2c17-4e08-a9c3-174dc38d1167.webp?v=1714709048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cead935c2596625c2f7464e341012137f55f2104_0d847e93-2c17-4e08-a9c3-174dc38d1167.webp?v=1714709048","width":2000},{"alt":null,"id":23876149903459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f2e88119d56fd14db3e1244e7d4ea15b610f431_8e3386e0-ee8a-42bb-9192-1c825284e875.webp?v=1714709050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f2e88119d56fd14db3e1244e7d4ea15b610f431_8e3386e0-ee8a-42bb-9192-1c825284e875.webp?v=1714709050","width":2000},{"alt":null,"id":23876150362211,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aec85b9f95d929084c8db8b07c4b85d120a2182_67267109-28ed-4ffb-aa69-8e731ba9f065.webp?v=1714709053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aec85b9f95d929084c8db8b07c4b85d120a2182_67267109-28ed-4ffb-aa69-8e731ba9f065.webp?v=1714709053","width":2000},{"alt":null,"id":23876150853731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be216b3704f0f86fe640c4339d8d86fddefcf3c6_406f5b4b-a57e-4f35-9a57-4f72bc9c684f.webp?v=1714709055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be216b3704f0f86fe640c4339d8d86fddefcf3c6_406f5b4b-a57e-4f35-9a57-4f72bc9c684f.webp?v=1714709055","width":2000},{"alt":null,"id":23876151509091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395552098bc9e19f785c57f3f7c76d7cb6f2df69_a9083e1a-60e1-46fb-b951-a0a030bd82aa.webp?v=1714709058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395552098bc9e19f785c57f3f7c76d7cb6f2df69_a9083e1a-60e1-46fb-b951-a0a030bd82aa.webp?v=1714709058","width":2000},{"alt":null,"id":23876152164451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/592db7a0b551b9c2d3881f609f2b02da2a89f61e_e1e20de6-d6be-4fcd-bf18-f18dcee06ef8.webp?v=1714709060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/592db7a0b551b9c2d3881f609f2b02da2a89f61e_e1e20de6-d6be-4fcd-bf18-f18dcee06ef8.webp?v=1714709060","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882910785635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31471246049379,"product_id":7408120594531,"position":9,"created_at":"2024-05-03T12:04:18+08:00","updated_at":"2024-05-03T12:04:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395552098bc9e19f785c57f3f7c76d7cb6f2df69_a9083e1a-60e1-46fb-b951-a0a030bd82aa.webp?v=1714709058","variant_ids":[41882910785635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋 - 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":"NPB0123224-PB20","featured_media":{"alt":null,"id":23876151509091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395552098bc9e19f785c57f3f7c76d7cb6f2df69_a9083e1a-60e1-46fb-b951-a0a030bd82aa.webp?v=1714709058"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882911080547,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31471245295715,"product_id":7408120594531,"position":8,"created_at":"2024-05-03T12:04:15+08:00","updated_at":"2024-05-03T12:04:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be216b3704f0f86fe640c4339d8d86fddefcf3c6_406f5b4b-a57e-4f35-9a57-4f72bc9c684f.webp?v=1714709055","variant_ids":[41882911080547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋 - 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":"NPB01232J5-PB20","featured_media":{"alt":null,"id":23876150853731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be216b3704f0f86fe640c4339d8d86fddefcf3c6_406f5b4b-a57e-4f35-9a57-4f72bc9c684f.webp?v=1714709055"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882910785635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31471246049379,"product_id":7408120594531,"position":9,"created_at":"2024-05-03T12:04:18+08:00","updated_at":"2024-05-03T12:04:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395552098bc9e19f785c57f3f7c76d7cb6f2df69_a9083e1a-60e1-46fb-b951-a0a030bd82aa.webp?v=1714709058","variant_ids":[41882910785635]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋 - 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":"NPB0123224-PB20","featured_media":{"alt":null,"id":23876151509091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/395552098bc9e19f785c57f3f7c76d7cb6f2df69_a9083e1a-60e1-46fb-b951-a0a030bd82aa.webp?v=1714709058"}},"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: "停產"
}