$product = {"id":7408134357091,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-咖啡杯-幽默系列","handle":"iphone-13-pro-max-mod-nx-printable-pc14","description":null,"published_at":"2024-06-11T16:32:18+08:00","created_at":"2024-05-03T12:06:38+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":41883058962531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31471283208291,"product_id":7408134357091,"position":9,"created_at":"2024-05-03T12:06:58+08:00","updated_at":"2024-05-03T12:06:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7351dc5b2b21a953b85022f90861fef2ed752cb2_02fa2d39-4947-44eb-a4ab-a9ee6a72c76f.webp?v=1714709218","variant_ids":[41883058962531]},"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-PC14","featured_media":{"alt":null,"id":23876189028451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7351dc5b2b21a953b85022f90861fef2ed752cb2_02fa2d39-4947-44eb-a4ab-a9ee6a72c76f.webp?v=1714709218"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883059290211,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31471281340515,"product_id":7408134357091,"position":5,"created_at":"2024-05-03T12:06:49+08:00","updated_at":"2024-05-03T12:06:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891f728c7952d2a09ed727694eb51c26c927ccd8_2299dd23-2d94-4c92-bad4-a7b988504748.webp?v=1714709209","variant_ids":[41883059290211]},"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-PC14","featured_media":{"alt":null,"id":23876187127907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891f728c7952d2a09ed727694eb51c26c927ccd8_2299dd23-2d94-4c92-bad4-a7b988504748.webp?v=1714709209"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/797caeab605504081c0a212bd46fadd21b534197_e7b40c69-6652-437e-a0d8-d626c90bb4f9.webp?v=1714709200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9db7b004a8f0fde66c427c16a7f71ca0d90be2e_e90a24b4-9c86-488b-b5bc-b32096ad5233.webp?v=1714709202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4de5ac553695815e31405fe70bc477b88d86d940_6d57c576-d99d-462e-8ae8-faf82cc708e1.webp?v=1714709204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fae8a093fe958a7d20edb4bbf276e6c452af09ae_deea66d1-0d18-4da8-895c-2c69c362508d.webp?v=1714709207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891f728c7952d2a09ed727694eb51c26c927ccd8_2299dd23-2d94-4c92-bad4-a7b988504748.webp?v=1714709209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8661c80298dc4ce0ed408449599a94042ca231e5_5722a360-972f-4cc3-bfaa-5f3bfe8d9df8.webp?v=1714709211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a5edf9740f1a7e4aaa86888792a963b62673fd7_f87e249a-af86-4bb8-ac2a-00892c73c5ca.webp?v=1714709213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30e1cef0d5583bf1b2d39df3eb22ab89279b39ab_5e824490-9a2b-452a-b531-25236003eb25.webp?v=1714709215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7351dc5b2b21a953b85022f90861fef2ed752cb2_02fa2d39-4947-44eb-a4ab-a9ee6a72c76f.webp?v=1714709218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a325767cbbd1e7f41253858da47a16a028ebed46_14c99773-a387-4707-8e14-66f2479cd8e5.webp?v=1714709221"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/797caeab605504081c0a212bd46fadd21b534197_e7b40c69-6652-437e-a0d8-d626c90bb4f9.webp?v=1714709200","options":["color"],"media":[{"alt":null,"id":23876185260131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/797caeab605504081c0a212bd46fadd21b534197_e7b40c69-6652-437e-a0d8-d626c90bb4f9.webp?v=1714709200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/797caeab605504081c0a212bd46fadd21b534197_e7b40c69-6652-437e-a0d8-d626c90bb4f9.webp?v=1714709200","width":2000},{"alt":null,"id":23876185718883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9db7b004a8f0fde66c427c16a7f71ca0d90be2e_e90a24b4-9c86-488b-b5bc-b32096ad5233.webp?v=1714709202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9db7b004a8f0fde66c427c16a7f71ca0d90be2e_e90a24b4-9c86-488b-b5bc-b32096ad5233.webp?v=1714709202","width":2000},{"alt":null,"id":23876186177635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4de5ac553695815e31405fe70bc477b88d86d940_6d57c576-d99d-462e-8ae8-faf82cc708e1.webp?v=1714709204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4de5ac553695815e31405fe70bc477b88d86d940_6d57c576-d99d-462e-8ae8-faf82cc708e1.webp?v=1714709204","width":2000},{"alt":null,"id":23876186701923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fae8a093fe958a7d20edb4bbf276e6c452af09ae_deea66d1-0d18-4da8-895c-2c69c362508d.webp?v=1714709207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fae8a093fe958a7d20edb4bbf276e6c452af09ae_deea66d1-0d18-4da8-895c-2c69c362508d.webp?v=1714709207","width":2000},{"alt":null,"id":23876187127907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891f728c7952d2a09ed727694eb51c26c927ccd8_2299dd23-2d94-4c92-bad4-a7b988504748.webp?v=1714709209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891f728c7952d2a09ed727694eb51c26c927ccd8_2299dd23-2d94-4c92-bad4-a7b988504748.webp?v=1714709209","width":2000},{"alt":null,"id":23876187619427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8661c80298dc4ce0ed408449599a94042ca231e5_5722a360-972f-4cc3-bfaa-5f3bfe8d9df8.webp?v=1714709211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8661c80298dc4ce0ed408449599a94042ca231e5_5722a360-972f-4cc3-bfaa-5f3bfe8d9df8.webp?v=1714709211","width":2000},{"alt":null,"id":23876188045411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a5edf9740f1a7e4aaa86888792a963b62673fd7_f87e249a-af86-4bb8-ac2a-00892c73c5ca.webp?v=1714709213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a5edf9740f1a7e4aaa86888792a963b62673fd7_f87e249a-af86-4bb8-ac2a-00892c73c5ca.webp?v=1714709213","width":2000},{"alt":null,"id":23876188405859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30e1cef0d5583bf1b2d39df3eb22ab89279b39ab_5e824490-9a2b-452a-b531-25236003eb25.webp?v=1714709215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30e1cef0d5583bf1b2d39df3eb22ab89279b39ab_5e824490-9a2b-452a-b531-25236003eb25.webp?v=1714709215","width":2000},{"alt":null,"id":23876189028451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7351dc5b2b21a953b85022f90861fef2ed752cb2_02fa2d39-4947-44eb-a4ab-a9ee6a72c76f.webp?v=1714709218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7351dc5b2b21a953b85022f90861fef2ed752cb2_02fa2d39-4947-44eb-a4ab-a9ee6a72c76f.webp?v=1714709218","width":2000},{"alt":null,"id":23876189552739,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a325767cbbd1e7f41253858da47a16a028ebed46_14c99773-a387-4707-8e14-66f2479cd8e5.webp?v=1714709221"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a325767cbbd1e7f41253858da47a16a028ebed46_14c99773-a387-4707-8e14-66f2479cd8e5.webp?v=1714709221","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883058962531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31471283208291,"product_id":7408134357091,"position":9,"created_at":"2024-05-03T12:06:58+08:00","updated_at":"2024-05-03T12:06:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7351dc5b2b21a953b85022f90861fef2ed752cb2_02fa2d39-4947-44eb-a4ab-a9ee6a72c76f.webp?v=1714709218","variant_ids":[41883058962531]},"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-PC14","featured_media":{"alt":null,"id":23876189028451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7351dc5b2b21a953b85022f90861fef2ed752cb2_02fa2d39-4947-44eb-a4ab-a9ee6a72c76f.webp?v=1714709218"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883059290211,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31471281340515,"product_id":7408134357091,"position":5,"created_at":"2024-05-03T12:06:49+08:00","updated_at":"2024-05-03T12:06:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891f728c7952d2a09ed727694eb51c26c927ccd8_2299dd23-2d94-4c92-bad4-a7b988504748.webp?v=1714709209","variant_ids":[41883059290211]},"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-PC14","featured_media":{"alt":null,"id":23876187127907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891f728c7952d2a09ed727694eb51c26c927ccd8_2299dd23-2d94-4c92-bad4-a7b988504748.webp?v=1714709209"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883058962531,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31471283208291,"product_id":7408134357091,"position":9,"created_at":"2024-05-03T12:06:58+08:00","updated_at":"2024-05-03T12:06:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7351dc5b2b21a953b85022f90861fef2ed752cb2_02fa2d39-4947-44eb-a4ab-a9ee6a72c76f.webp?v=1714709218","variant_ids":[41883058962531]},"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-PC14","featured_media":{"alt":null,"id":23876189028451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7351dc5b2b21a953b85022f90861fef2ed752cb2_02fa2d39-4947-44eb-a4ab-a9ee6a72c76f.webp?v=1714709218"}},"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: "停產"
}