$product = {"id":7413987082339,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 小圖款-凱羅忍","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pc06","description":null,"published_at":"2024-06-11T17:46:58+08:00","created_at":"2024-05-05T13:55:59+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":41903026765923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484398927971,"product_id":7413987082339,"position":9,"created_at":"2024-05-05T13:56:20+08:00","updated_at":"2024-05-05T13:56:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da1614233cd140a2440458dee54820fcb5cb20be_7540ccf8-3e6f-427d-ac55-fe5a8a6ba6cc.webp?v=1714888580","variant_ids":[41903026765923]},"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-PC06","featured_media":{"alt":null,"id":23889692852323,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da1614233cd140a2440458dee54820fcb5cb20be_7540ccf8-3e6f-427d-ac55-fe5a8a6ba6cc.webp?v=1714888580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903027355747,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484396994659,"product_id":7413987082339,"position":5,"created_at":"2024-05-05T13:56:11+08:00","updated_at":"2024-05-05T13:56:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0702a186c4e16a58cf244f838ed6b78b2c46d9e4_11624b63-5f4b-42af-a7ac-40c7749cf7dc.webp?v=1714888571","variant_ids":[41903027355747]},"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-PC06","featured_media":{"alt":null,"id":23889690951779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0702a186c4e16a58cf244f838ed6b78b2c46d9e4_11624b63-5f4b-42af-a7ac-40c7749cf7dc.webp?v=1714888571"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/987d8326398796f2a258e3c6305529ccf262bd52_a6e57747-2bf5-4094-8e18-e936c6094a96.webp?v=1714888561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75dc0e76dfd50681f539561f11b7cf359e5737ec_338fb240-5093-4234-aa5e-4b3077fc62b2.webp?v=1714888564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7968e1233fa53a11a67fee43f8cb36c7c4e08b7e_d2313ed2-bb01-4929-8b88-736086660d64.webp?v=1714888566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1aba4e931c9aa8117cbd29549cd12e7970a216ce_552818be-8a8c-43a0-88fb-debc2739f9d5.webp?v=1714888569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0702a186c4e16a58cf244f838ed6b78b2c46d9e4_11624b63-5f4b-42af-a7ac-40c7749cf7dc.webp?v=1714888571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb774c1ce763c360076816dd65fa5a5a8b4c0fe2_2f36e9e6-27ae-4757-a375-5d72704d7fd1.webp?v=1714888573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f17201fdae7e9b34e2da7164d256551737a3e6e5_28c57bb9-72d9-48df-817a-c12cc35ecde5.webp?v=1714888575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b62f2d919539071d1a02e240662ae6e02f1a35e5_7c7c1e77-70cb-440d-b058-24e19be454ee.webp?v=1714888577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da1614233cd140a2440458dee54820fcb5cb20be_7540ccf8-3e6f-427d-ac55-fe5a8a6ba6cc.webp?v=1714888580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8cb6b9043c63ecf441f3ae345dd20d27d6c9e1_e65c3c77-f9c8-4b5f-b38a-dca667f77c92.webp?v=1714888582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e918f4951a3a34875ec11cb434799eb90e339d3c_a9878fee-f0e4-4c40-acdc-0b1d8c84f5c1.webp?v=1714888584"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/987d8326398796f2a258e3c6305529ccf262bd52_a6e57747-2bf5-4094-8e18-e936c6094a96.webp?v=1714888561","options":["color"],"media":[{"alt":null,"id":23889688854627,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/987d8326398796f2a258e3c6305529ccf262bd52_a6e57747-2bf5-4094-8e18-e936c6094a96.webp?v=1714888561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/987d8326398796f2a258e3c6305529ccf262bd52_a6e57747-2bf5-4094-8e18-e936c6094a96.webp?v=1714888561","width":2000},{"alt":null,"id":23889689477219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75dc0e76dfd50681f539561f11b7cf359e5737ec_338fb240-5093-4234-aa5e-4b3077fc62b2.webp?v=1714888564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75dc0e76dfd50681f539561f11b7cf359e5737ec_338fb240-5093-4234-aa5e-4b3077fc62b2.webp?v=1714888564","width":2000},{"alt":null,"id":23889689935971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7968e1233fa53a11a67fee43f8cb36c7c4e08b7e_d2313ed2-bb01-4929-8b88-736086660d64.webp?v=1714888566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7968e1233fa53a11a67fee43f8cb36c7c4e08b7e_d2313ed2-bb01-4929-8b88-736086660d64.webp?v=1714888566","width":2000},{"alt":null,"id":23889690493027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1aba4e931c9aa8117cbd29549cd12e7970a216ce_552818be-8a8c-43a0-88fb-debc2739f9d5.webp?v=1714888569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1aba4e931c9aa8117cbd29549cd12e7970a216ce_552818be-8a8c-43a0-88fb-debc2739f9d5.webp?v=1714888569","width":2000},{"alt":null,"id":23889690951779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0702a186c4e16a58cf244f838ed6b78b2c46d9e4_11624b63-5f4b-42af-a7ac-40c7749cf7dc.webp?v=1714888571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0702a186c4e16a58cf244f838ed6b78b2c46d9e4_11624b63-5f4b-42af-a7ac-40c7749cf7dc.webp?v=1714888571","width":2000},{"alt":null,"id":23889691344995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb774c1ce763c360076816dd65fa5a5a8b4c0fe2_2f36e9e6-27ae-4757-a375-5d72704d7fd1.webp?v=1714888573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb774c1ce763c360076816dd65fa5a5a8b4c0fe2_2f36e9e6-27ae-4757-a375-5d72704d7fd1.webp?v=1714888573","width":2000},{"alt":null,"id":23889691869283,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f17201fdae7e9b34e2da7164d256551737a3e6e5_28c57bb9-72d9-48df-817a-c12cc35ecde5.webp?v=1714888575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f17201fdae7e9b34e2da7164d256551737a3e6e5_28c57bb9-72d9-48df-817a-c12cc35ecde5.webp?v=1714888575","width":2000},{"alt":null,"id":23889692328035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b62f2d919539071d1a02e240662ae6e02f1a35e5_7c7c1e77-70cb-440d-b058-24e19be454ee.webp?v=1714888577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b62f2d919539071d1a02e240662ae6e02f1a35e5_7c7c1e77-70cb-440d-b058-24e19be454ee.webp?v=1714888577","width":2000},{"alt":null,"id":23889692852323,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da1614233cd140a2440458dee54820fcb5cb20be_7540ccf8-3e6f-427d-ac55-fe5a8a6ba6cc.webp?v=1714888580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da1614233cd140a2440458dee54820fcb5cb20be_7540ccf8-3e6f-427d-ac55-fe5a8a6ba6cc.webp?v=1714888580","width":2000},{"alt":null,"id":23889693278307,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8cb6b9043c63ecf441f3ae345dd20d27d6c9e1_e65c3c77-f9c8-4b5f-b38a-dca667f77c92.webp?v=1714888582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d8cb6b9043c63ecf441f3ae345dd20d27d6c9e1_e65c3c77-f9c8-4b5f-b38a-dca667f77c92.webp?v=1714888582","width":2000},{"alt":null,"id":23889693802595,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e918f4951a3a34875ec11cb434799eb90e339d3c_a9878fee-f0e4-4c40-acdc-0b1d8c84f5c1.webp?v=1714888584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e918f4951a3a34875ec11cb434799eb90e339d3c_a9878fee-f0e4-4c40-acdc-0b1d8c84f5c1.webp?v=1714888584","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903026765923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484398927971,"product_id":7413987082339,"position":9,"created_at":"2024-05-05T13:56:20+08:00","updated_at":"2024-05-05T13:56:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da1614233cd140a2440458dee54820fcb5cb20be_7540ccf8-3e6f-427d-ac55-fe5a8a6ba6cc.webp?v=1714888580","variant_ids":[41903026765923]},"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-PC06","featured_media":{"alt":null,"id":23889692852323,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da1614233cd140a2440458dee54820fcb5cb20be_7540ccf8-3e6f-427d-ac55-fe5a8a6ba6cc.webp?v=1714888580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903027355747,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484396994659,"product_id":7413987082339,"position":5,"created_at":"2024-05-05T13:56:11+08:00","updated_at":"2024-05-05T13:56:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0702a186c4e16a58cf244f838ed6b78b2c46d9e4_11624b63-5f4b-42af-a7ac-40c7749cf7dc.webp?v=1714888571","variant_ids":[41903027355747]},"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-PC06","featured_media":{"alt":null,"id":23889690951779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0702a186c4e16a58cf244f838ed6b78b2c46d9e4_11624b63-5f4b-42af-a7ac-40c7749cf7dc.webp?v=1714888571"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903026765923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484398927971,"product_id":7413987082339,"position":9,"created_at":"2024-05-05T13:56:20+08:00","updated_at":"2024-05-05T13:56:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da1614233cd140a2440458dee54820fcb5cb20be_7540ccf8-3e6f-427d-ac55-fe5a8a6ba6cc.webp?v=1714888580","variant_ids":[41903026765923]},"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-PC06","featured_media":{"alt":null,"id":23889692852323,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da1614233cd140a2440458dee54820fcb5cb20be_7540ccf8-3e6f-427d-ac55-fe5a8a6ba6cc.webp?v=1714888580"}},"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: "停產"
}