$product = {"id":7408070459491,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白","handle":"iphone-13-pro-max-mod-nx-printable-pb52","description":null,"published_at":"2024-06-11T16:30:35+08:00","created_at":"2024-05-03T11:53: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 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":41882341441635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31471113764963,"product_id":7408070459491,"position":1,"created_at":"2024-05-03T11:53:28+08:00","updated_at":"2024-05-03T11:53:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2130ebb3b92e958730a20ca8b7b219ce355b41dd_55bd3a69-2d0c-4301-834a-b573cefaf638.webp?v=1714708408","variant_ids":[41882341441635]},"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-PB52","featured_media":{"alt":null,"id":23876018995299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2130ebb3b92e958730a20ca8b7b219ce355b41dd_55bd3a69-2d0c-4301-834a-b573cefaf638.webp?v=1714708408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882341933155,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31471116419171,"product_id":7408070459491,"position":7,"created_at":"2024-05-03T11:53:42+08:00","updated_at":"2024-05-03T11:53:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947754f92d874a9720f0323424be22792cb43c9b_18151dc0-344e-4aed-b5a3-7024417a27eb.webp?v=1714708422","variant_ids":[41882341933155]},"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-PB52","featured_media":{"alt":null,"id":23876021616739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947754f92d874a9720f0323424be22792cb43c9b_18151dc0-344e-4aed-b5a3-7024417a27eb.webp?v=1714708422"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2130ebb3b92e958730a20ca8b7b219ce355b41dd_55bd3a69-2d0c-4301-834a-b573cefaf638.webp?v=1714708408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8600f9f2c50ba0ba7691732f15a68e004064191a_a7994d9d-cf3e-47fe-a12f-75e6f2449e57.webp?v=1714708411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3c92ee3b834383f39c81d0646cbec0ab54a318_38922bc3-c039-4531-b602-087bac88fc79.webp?v=1714708413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0807ecdf49daac310830da815a6e99ae8ba5cde9_5248800f-5486-46a6-906f-4f0d19d27bd6.webp?v=1714708415","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bbed1708660d4d28bc4367b778769add0b30ac7_1e98d788-0ab0-451a-83a0-60af1f2dc1dd.webp?v=1714708417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609aabd6f64615ea3235dae14f456efe28ce0a77_46a83d0d-48df-4854-be15-c9e9705fb511.webp?v=1714708420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947754f92d874a9720f0323424be22792cb43c9b_18151dc0-344e-4aed-b5a3-7024417a27eb.webp?v=1714708422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c3ee55cbbd129d18de8ec33b822d4055435507_cb63bf66-4128-4373-b32b-db648a0d0e97.webp?v=1714708424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39dc26f4ac9cf6fb32f160a2b97546b130c0f8c_51c4efa5-ec6e-47d0-8587-48fdca3069c1.webp?v=1714708427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f29e79d208fa65e9084e048fb04a4749d7ee757_5fe9486b-7826-4ec8-a570-3bae22f2c6bb.webp?v=1714708429"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2130ebb3b92e958730a20ca8b7b219ce355b41dd_55bd3a69-2d0c-4301-834a-b573cefaf638.webp?v=1714708408","options":["color"],"media":[{"alt":null,"id":23876018995299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2130ebb3b92e958730a20ca8b7b219ce355b41dd_55bd3a69-2d0c-4301-834a-b573cefaf638.webp?v=1714708408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2130ebb3b92e958730a20ca8b7b219ce355b41dd_55bd3a69-2d0c-4301-834a-b573cefaf638.webp?v=1714708408","width":2000},{"alt":null,"id":23876019290211,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8600f9f2c50ba0ba7691732f15a68e004064191a_a7994d9d-cf3e-47fe-a12f-75e6f2449e57.webp?v=1714708411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8600f9f2c50ba0ba7691732f15a68e004064191a_a7994d9d-cf3e-47fe-a12f-75e6f2449e57.webp?v=1714708411","width":2000},{"alt":null,"id":23876020076643,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3c92ee3b834383f39c81d0646cbec0ab54a318_38922bc3-c039-4531-b602-087bac88fc79.webp?v=1714708413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd3c92ee3b834383f39c81d0646cbec0ab54a318_38922bc3-c039-4531-b602-087bac88fc79.webp?v=1714708413","width":2000},{"alt":null,"id":23876020437091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0807ecdf49daac310830da815a6e99ae8ba5cde9_5248800f-5486-46a6-906f-4f0d19d27bd6.webp?v=1714708415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0807ecdf49daac310830da815a6e99ae8ba5cde9_5248800f-5486-46a6-906f-4f0d19d27bd6.webp?v=1714708415","width":2000},{"alt":null,"id":23876020895843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bbed1708660d4d28bc4367b778769add0b30ac7_1e98d788-0ab0-451a-83a0-60af1f2dc1dd.webp?v=1714708417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bbed1708660d4d28bc4367b778769add0b30ac7_1e98d788-0ab0-451a-83a0-60af1f2dc1dd.webp?v=1714708417","width":2000},{"alt":null,"id":23876021289059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609aabd6f64615ea3235dae14f456efe28ce0a77_46a83d0d-48df-4854-be15-c9e9705fb511.webp?v=1714708420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/609aabd6f64615ea3235dae14f456efe28ce0a77_46a83d0d-48df-4854-be15-c9e9705fb511.webp?v=1714708420","width":2000},{"alt":null,"id":23876021616739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947754f92d874a9720f0323424be22792cb43c9b_18151dc0-344e-4aed-b5a3-7024417a27eb.webp?v=1714708422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947754f92d874a9720f0323424be22792cb43c9b_18151dc0-344e-4aed-b5a3-7024417a27eb.webp?v=1714708422","width":2000},{"alt":null,"id":23876022141027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c3ee55cbbd129d18de8ec33b822d4055435507_cb63bf66-4128-4373-b32b-db648a0d0e97.webp?v=1714708424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12c3ee55cbbd129d18de8ec33b822d4055435507_cb63bf66-4128-4373-b32b-db648a0d0e97.webp?v=1714708424","width":2000},{"alt":null,"id":23876022534243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39dc26f4ac9cf6fb32f160a2b97546b130c0f8c_51c4efa5-ec6e-47d0-8587-48fdca3069c1.webp?v=1714708427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a39dc26f4ac9cf6fb32f160a2b97546b130c0f8c_51c4efa5-ec6e-47d0-8587-48fdca3069c1.webp?v=1714708427","width":2000},{"alt":null,"id":23876022927459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f29e79d208fa65e9084e048fb04a4749d7ee757_5fe9486b-7826-4ec8-a570-3bae22f2c6bb.webp?v=1714708429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f29e79d208fa65e9084e048fb04a4749d7ee757_5fe9486b-7826-4ec8-a570-3bae22f2c6bb.webp?v=1714708429","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882341441635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31471113764963,"product_id":7408070459491,"position":1,"created_at":"2024-05-03T11:53:28+08:00","updated_at":"2024-05-03T11:53:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2130ebb3b92e958730a20ca8b7b219ce355b41dd_55bd3a69-2d0c-4301-834a-b573cefaf638.webp?v=1714708408","variant_ids":[41882341441635]},"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-PB52","featured_media":{"alt":null,"id":23876018995299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2130ebb3b92e958730a20ca8b7b219ce355b41dd_55bd3a69-2d0c-4301-834a-b573cefaf638.webp?v=1714708408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882341933155,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31471116419171,"product_id":7408070459491,"position":7,"created_at":"2024-05-03T11:53:42+08:00","updated_at":"2024-05-03T11:53:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947754f92d874a9720f0323424be22792cb43c9b_18151dc0-344e-4aed-b5a3-7024417a27eb.webp?v=1714708422","variant_ids":[41882341933155]},"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-PB52","featured_media":{"alt":null,"id":23876021616739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947754f92d874a9720f0323424be22792cb43c9b_18151dc0-344e-4aed-b5a3-7024417a27eb.webp?v=1714708422"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882341441635,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31471113764963,"product_id":7408070459491,"position":1,"created_at":"2024-05-03T11:53:28+08:00","updated_at":"2024-05-03T11:53:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2130ebb3b92e958730a20ca8b7b219ce355b41dd_55bd3a69-2d0c-4301-834a-b573cefaf638.webp?v=1714708408","variant_ids":[41882341441635]},"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-PB52","featured_media":{"alt":null,"id":23876018995299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2130ebb3b92e958730a20ca8b7b219ce355b41dd_55bd3a69-2d0c-4301-834a-b573cefaf638.webp?v=1714708408"}},"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: "停產"
}