$product = {"id":7414677799011,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb109","description":null,"published_at":"2024-06-11T17:53:04+08:00","created_at":"2024-05-05T14:37:35+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":41908244185187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31486006755427,"product_id":7414677799011,"position":4,"created_at":"2024-05-05T14:37:44+08:00","updated_at":"2024-05-05T14:37:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e1019ccd35bbd8e0b848b37ae57bb963ea6cf1_cce6fef8-9761-4b02-9816-446675c16664.webp?v=1714891064","variant_ids":[41908244185187]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23891342360675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e1019ccd35bbd8e0b848b37ae57bb963ea6cf1_cce6fef8-9761-4b02-9816-446675c16664.webp?v=1714891064"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908244480099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31486010556515,"product_id":7414677799011,"position":6,"created_at":"2024-05-05T14:37:49+08:00","updated_at":"2024-05-05T14:37:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83abf8303b1137839f5bf3c7d8926d594e1fd888_99d849f7-1e7c-4b94-9ad4-effccce0930a.webp?v=1714891069","variant_ids":[41908244480099]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23891346391139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83abf8303b1137839f5bf3c7d8926d594e1fd888_99d849f7-1e7c-4b94-9ad4-effccce0930a.webp?v=1714891069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e97fc899b250c8538297efa60c85b461704bd687_6f3dc4c9-b3c9-4bb6-af77-16e0c7fb76af.webp?v=1714891057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a447eaa03f42b763dcc690f7b16fd6fe475a6c65_3c76f348-f68f-44c4-87da-9dcc4720c7d4.webp?v=1714891060","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68306076fc473a90403fbee984f9879e3e2bb9a8_6f1dd346-efb8-47c1-b324-67844d746bbc.webp?v=1714891062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e1019ccd35bbd8e0b848b37ae57bb963ea6cf1_cce6fef8-9761-4b02-9816-446675c16664.webp?v=1714891064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f3ae82e7fe53415736d03c5a6bcab366e3a5622_c03708bf-fbbe-4a5f-b51b-5419713389e9.webp?v=1714891067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83abf8303b1137839f5bf3c7d8926d594e1fd888_99d849f7-1e7c-4b94-9ad4-effccce0930a.webp?v=1714891069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/540ac361d312349c4b889353f1f9c158aed3d182_c423b145-2054-4bfb-8a27-effb3c8fcc95.webp?v=1714891071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4acc4abad7f96dde20d9e71da9e6d2a7821ebf0_6eead44c-c81a-4f5f-8cbd-962523f0b94f.webp?v=1714891074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773e405ef112670a3ce877dad4c622ff4417c337_26e0dd9f-a397-47c0-82e3-4faec02031ee.webp?v=1714891076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2cdf95f23472429b4d9b8f4bec391a0887e5df_281c64a9-d4f1-4ee6-9d68-139041499b21.webp?v=1714891078"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e97fc899b250c8538297efa60c85b461704bd687_6f3dc4c9-b3c9-4bb6-af77-16e0c7fb76af.webp?v=1714891057","options":["color"],"media":[{"alt":null,"id":23891337085027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e97fc899b250c8538297efa60c85b461704bd687_6f3dc4c9-b3c9-4bb6-af77-16e0c7fb76af.webp?v=1714891057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e97fc899b250c8538297efa60c85b461704bd687_6f3dc4c9-b3c9-4bb6-af77-16e0c7fb76af.webp?v=1714891057","width":2000},{"alt":null,"id":23891338887267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a447eaa03f42b763dcc690f7b16fd6fe475a6c65_3c76f348-f68f-44c4-87da-9dcc4720c7d4.webp?v=1714891060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a447eaa03f42b763dcc690f7b16fd6fe475a6c65_3c76f348-f68f-44c4-87da-9dcc4720c7d4.webp?v=1714891060","width":2000},{"alt":null,"id":23891340689507,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68306076fc473a90403fbee984f9879e3e2bb9a8_6f1dd346-efb8-47c1-b324-67844d746bbc.webp?v=1714891062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68306076fc473a90403fbee984f9879e3e2bb9a8_6f1dd346-efb8-47c1-b324-67844d746bbc.webp?v=1714891062","width":2000},{"alt":null,"id":23891342360675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e1019ccd35bbd8e0b848b37ae57bb963ea6cf1_cce6fef8-9761-4b02-9816-446675c16664.webp?v=1714891064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e1019ccd35bbd8e0b848b37ae57bb963ea6cf1_cce6fef8-9761-4b02-9816-446675c16664.webp?v=1714891064","width":2000},{"alt":null,"id":23891344162915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f3ae82e7fe53415736d03c5a6bcab366e3a5622_c03708bf-fbbe-4a5f-b51b-5419713389e9.webp?v=1714891067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f3ae82e7fe53415736d03c5a6bcab366e3a5622_c03708bf-fbbe-4a5f-b51b-5419713389e9.webp?v=1714891067","width":2000},{"alt":null,"id":23891346391139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83abf8303b1137839f5bf3c7d8926d594e1fd888_99d849f7-1e7c-4b94-9ad4-effccce0930a.webp?v=1714891069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83abf8303b1137839f5bf3c7d8926d594e1fd888_99d849f7-1e7c-4b94-9ad4-effccce0930a.webp?v=1714891069","width":2000},{"alt":null,"id":23891348127843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/540ac361d312349c4b889353f1f9c158aed3d182_c423b145-2054-4bfb-8a27-effb3c8fcc95.webp?v=1714891071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/540ac361d312349c4b889353f1f9c158aed3d182_c423b145-2054-4bfb-8a27-effb3c8fcc95.webp?v=1714891071","width":2000},{"alt":null,"id":23891349831779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4acc4abad7f96dde20d9e71da9e6d2a7821ebf0_6eead44c-c81a-4f5f-8cbd-962523f0b94f.webp?v=1714891074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4acc4abad7f96dde20d9e71da9e6d2a7821ebf0_6eead44c-c81a-4f5f-8cbd-962523f0b94f.webp?v=1714891074","width":2000},{"alt":null,"id":23891351502947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773e405ef112670a3ce877dad4c622ff4417c337_26e0dd9f-a397-47c0-82e3-4faec02031ee.webp?v=1714891076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773e405ef112670a3ce877dad4c622ff4417c337_26e0dd9f-a397-47c0-82e3-4faec02031ee.webp?v=1714891076","width":2000},{"alt":null,"id":23891353141347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2cdf95f23472429b4d9b8f4bec391a0887e5df_281c64a9-d4f1-4ee6-9d68-139041499b21.webp?v=1714891078"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2cdf95f23472429b4d9b8f4bec391a0887e5df_281c64a9-d4f1-4ee6-9d68-139041499b21.webp?v=1714891078","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41908244185187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31486006755427,"product_id":7414677799011,"position":4,"created_at":"2024-05-05T14:37:44+08:00","updated_at":"2024-05-05T14:37:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e1019ccd35bbd8e0b848b37ae57bb963ea6cf1_cce6fef8-9761-4b02-9816-446675c16664.webp?v=1714891064","variant_ids":[41908244185187]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23891342360675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e1019ccd35bbd8e0b848b37ae57bb963ea6cf1_cce6fef8-9761-4b02-9816-446675c16664.webp?v=1714891064"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908244480099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31486010556515,"product_id":7414677799011,"position":6,"created_at":"2024-05-05T14:37:49+08:00","updated_at":"2024-05-05T14:37:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83abf8303b1137839f5bf3c7d8926d594e1fd888_99d849f7-1e7c-4b94-9ad4-effccce0930a.webp?v=1714891069","variant_ids":[41908244480099]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23891346391139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83abf8303b1137839f5bf3c7d8926d594e1fd888_99d849f7-1e7c-4b94-9ad4-effccce0930a.webp?v=1714891069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41908244185187,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31486006755427,"product_id":7414677799011,"position":4,"created_at":"2024-05-05T14:37:44+08:00","updated_at":"2024-05-05T14:37:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e1019ccd35bbd8e0b848b37ae57bb963ea6cf1_cce6fef8-9761-4b02-9816-446675c16664.webp?v=1714891064","variant_ids":[41908244185187]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23891342360675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33e1019ccd35bbd8e0b848b37ae57bb963ea6cf1_cce6fef8-9761-4b02-9816-446675c16664.webp?v=1714891064"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}