$product = {"id":7407478046819,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵","handle":"iphone-15-plus-mod-nx-printable-pc02","description":null,"published_at":"2024-06-11T16:16:57+08:00","created_at":"2024-05-03T09:55:26+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 15 Plus","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":41875501154403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31469677510755,"product_id":7407478046819,"position":5,"created_at":"2024-05-03T09:55:38+08:00","updated_at":"2024-05-03T09:55:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d24cee3e4c967301d66e83981098ba6d73345a6_3d46bf59-2f17-4cfa-84b9-efd06727a133.webp?v=1714701338","variant_ids":[41875501154403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PC02","featured_media":{"alt":null,"id":23874578710627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d24cee3e4c967301d66e83981098ba6d73345a6_3d46bf59-2f17-4cfa-84b9-efd06727a133.webp?v=1714701338"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875501285475,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31469678461027,"product_id":7407478046819,"position":6,"created_at":"2024-05-03T09:55:43+08:00","updated_at":"2024-05-03T09:55:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce2a21376fbff1e440aa40495f6f0b62cfa47adc_917f2559-082a-40b1-be81-26e2ca1aab32.webp?v=1714701343","variant_ids":[41875501285475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PC02","featured_media":{"alt":null,"id":23874579660899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce2a21376fbff1e440aa40495f6f0b62cfa47adc_917f2559-082a-40b1-be81-26e2ca1aab32.webp?v=1714701343"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c151ae534f1de82aec964689c57552b67188736_d2210ccd-3c56-4c20-9908-c0bf840af199.webp?v=1714701329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8041933785a5debcd0f7d499762a507733d8fe_db759cac-cdbb-4fbe-8d46-ea339bd589a2.webp?v=1714701331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d63f4150d209fd4851de7aff8555db011fb6737e_6a08ba2e-7263-4291-b9be-5c2935380697.webp?v=1714701333","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f1503aed3cdeff101f23e67f575748728e0fde_4287b273-9e5b-468b-be18-992d43b9a589.webp?v=1714701336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d24cee3e4c967301d66e83981098ba6d73345a6_3d46bf59-2f17-4cfa-84b9-efd06727a133.webp?v=1714701338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce2a21376fbff1e440aa40495f6f0b62cfa47adc_917f2559-082a-40b1-be81-26e2ca1aab32.webp?v=1714701343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/742dd8b519de4ee560cb86f8a3168268df371933_0b4e7305-a4c4-496f-86b1-f8c26dc18977.webp?v=1714701345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32ae6257a00462160ff2d72ae2cc26a90ed2355a_7edf3de3-2626-42dc-9e6b-b530d5610767.webp?v=1714701347","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e629b508bcfad1c452ed5553adfc6a9fc8274b4f_e5f975f4-b7bb-48db-9988-2040e862b25c.webp?v=1714701350"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c151ae534f1de82aec964689c57552b67188736_d2210ccd-3c56-4c20-9908-c0bf840af199.webp?v=1714701329","options":["color"],"media":[{"alt":null,"id":23874576089187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c151ae534f1de82aec964689c57552b67188736_d2210ccd-3c56-4c20-9908-c0bf840af199.webp?v=1714701329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c151ae534f1de82aec964689c57552b67188736_d2210ccd-3c56-4c20-9908-c0bf840af199.webp?v=1714701329","width":2000},{"alt":null,"id":23874576580707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8041933785a5debcd0f7d499762a507733d8fe_db759cac-cdbb-4fbe-8d46-ea339bd589a2.webp?v=1714701331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8041933785a5debcd0f7d499762a507733d8fe_db759cac-cdbb-4fbe-8d46-ea339bd589a2.webp?v=1714701331","width":2000},{"alt":null,"id":23874577694819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d63f4150d209fd4851de7aff8555db011fb6737e_6a08ba2e-7263-4291-b9be-5c2935380697.webp?v=1714701333"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d63f4150d209fd4851de7aff8555db011fb6737e_6a08ba2e-7263-4291-b9be-5c2935380697.webp?v=1714701333","width":2000},{"alt":null,"id":23874578251875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f1503aed3cdeff101f23e67f575748728e0fde_4287b273-9e5b-468b-be18-992d43b9a589.webp?v=1714701336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34f1503aed3cdeff101f23e67f575748728e0fde_4287b273-9e5b-468b-be18-992d43b9a589.webp?v=1714701336","width":2000},{"alt":null,"id":23874578710627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d24cee3e4c967301d66e83981098ba6d73345a6_3d46bf59-2f17-4cfa-84b9-efd06727a133.webp?v=1714701338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d24cee3e4c967301d66e83981098ba6d73345a6_3d46bf59-2f17-4cfa-84b9-efd06727a133.webp?v=1714701338","width":2000},{"alt":null,"id":23874579660899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce2a21376fbff1e440aa40495f6f0b62cfa47adc_917f2559-082a-40b1-be81-26e2ca1aab32.webp?v=1714701343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce2a21376fbff1e440aa40495f6f0b62cfa47adc_917f2559-082a-40b1-be81-26e2ca1aab32.webp?v=1714701343","width":2000},{"alt":null,"id":23874580545635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/742dd8b519de4ee560cb86f8a3168268df371933_0b4e7305-a4c4-496f-86b1-f8c26dc18977.webp?v=1714701345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/742dd8b519de4ee560cb86f8a3168268df371933_0b4e7305-a4c4-496f-86b1-f8c26dc18977.webp?v=1714701345","width":2000},{"alt":null,"id":23874580906083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32ae6257a00462160ff2d72ae2cc26a90ed2355a_7edf3de3-2626-42dc-9e6b-b530d5610767.webp?v=1714701347"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32ae6257a00462160ff2d72ae2cc26a90ed2355a_7edf3de3-2626-42dc-9e6b-b530d5610767.webp?v=1714701347","width":2000},{"alt":null,"id":23874581430371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e629b508bcfad1c452ed5553adfc6a9fc8274b4f_e5f975f4-b7bb-48db-9988-2040e862b25c.webp?v=1714701350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e629b508bcfad1c452ed5553adfc6a9fc8274b4f_e5f975f4-b7bb-48db-9988-2040e862b25c.webp?v=1714701350","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41875501154403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31469677510755,"product_id":7407478046819,"position":5,"created_at":"2024-05-03T09:55:38+08:00","updated_at":"2024-05-03T09:55:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d24cee3e4c967301d66e83981098ba6d73345a6_3d46bf59-2f17-4cfa-84b9-efd06727a133.webp?v=1714701338","variant_ids":[41875501154403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PC02","featured_media":{"alt":null,"id":23874578710627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d24cee3e4c967301d66e83981098ba6d73345a6_3d46bf59-2f17-4cfa-84b9-efd06727a133.webp?v=1714701338"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875501285475,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31469678461027,"product_id":7407478046819,"position":6,"created_at":"2024-05-03T09:55:43+08:00","updated_at":"2024-05-03T09:55:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce2a21376fbff1e440aa40495f6f0b62cfa47adc_917f2559-082a-40b1-be81-26e2ca1aab32.webp?v=1714701343","variant_ids":[41875501285475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PC02","featured_media":{"alt":null,"id":23874579660899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce2a21376fbff1e440aa40495f6f0b62cfa47adc_917f2559-082a-40b1-be81-26e2ca1aab32.webp?v=1714701343"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41875501154403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31469677510755,"product_id":7407478046819,"position":5,"created_at":"2024-05-03T09:55:38+08:00","updated_at":"2024-05-03T09:55:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d24cee3e4c967301d66e83981098ba6d73345a6_3d46bf59-2f17-4cfa-84b9-efd06727a133.webp?v=1714701338","variant_ids":[41875501154403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PC02","featured_media":{"alt":null,"id":23874578710627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d24cee3e4c967301d66e83981098ba6d73345a6_3d46bf59-2f17-4cfa-84b9-efd06727a133.webp?v=1714701338"}},"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: "停產"
}