$product = {"id":7413996519523,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆白","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb06","description":null,"published_at":"2024-06-11T17:47:14+08:00","created_at":"2024-05-05T13:57:51+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":41903138734179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484418981987,"product_id":7413996519523,"position":2,"created_at":"2024-05-05T13:57:55+08:00","updated_at":"2024-05-05T13:57:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669a7eb834a3aa9fc821dd9652ad6a431e5edadc_6c740a4e-6f7d-4f5e-a0fd-0839a81f7f42.webp?v=1714888675","variant_ids":[41903138734179]},"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-PB06","featured_media":{"alt":null,"id":23889713004643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669a7eb834a3aa9fc821dd9652ad6a431e5edadc_6c740a4e-6f7d-4f5e-a0fd-0839a81f7f42.webp?v=1714888675"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903139029091,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484421898339,"product_id":7413996519523,"position":8,"created_at":"2024-05-05T13:58:09+08:00","updated_at":"2024-05-05T13:58:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea447fc28252cdec0f30c25823fd1cec9da7526_9406f3c3-6e9d-4659-9bf0-a32781d1a9cc.webp?v=1714888689","variant_ids":[41903139029091]},"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-PB06","featured_media":{"alt":null,"id":23889715920995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea447fc28252cdec0f30c25823fd1cec9da7526_9406f3c3-6e9d-4659-9bf0-a32781d1a9cc.webp?v=1714888689"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03c96837a500c5ed6bef1f0cad6a152450de36ed_54d124bc-10aa-48e3-b4bf-ca225beaa7d5.webp?v=1714888673","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669a7eb834a3aa9fc821dd9652ad6a431e5edadc_6c740a4e-6f7d-4f5e-a0fd-0839a81f7f42.webp?v=1714888675","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88dc53ed58621614b27561e6abde234b8989815_36bf4418-8df7-40c3-bdb3-2cf69df8113d.webp?v=1714888678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a26e5d55560a4c00d414b940ada9933b518ca3_5c95e566-9165-4a4b-8e4e-6e1445c6dcf0.webp?v=1714888680","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e236770b6f123a66af993ff1a8f8c0b046be5aeb_d5375c1b-702e-42f6-b97b-1eb66bc616f8.webp?v=1714888682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3045693936bdeef1bb6bfbf40ff5fad84f9d9716_f549857d-aad1-47cf-8d07-9d432bbe6106.webp?v=1714888685","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5ab2ccf2beaf8059fdd82507b49fb78e4936a7_019ff5bc-1797-4eb8-a09a-4ec6199c80e8.webp?v=1714888687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea447fc28252cdec0f30c25823fd1cec9da7526_9406f3c3-6e9d-4659-9bf0-a32781d1a9cc.webp?v=1714888689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7706d6249c19d0a3a83c16cbc77dffb354b1ddd0_a9b6a569-02e3-4d6d-8199-33afa6c92565.webp?v=1714888691","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a3b41b6e2ea4f19d18065ad3dfe5f1abf6849cb_ccc2d60a-5510-46cb-a812-94883df2c4b3.webp?v=1714888694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c960289cf957fc63d6fac1e9ffd6e92eeac404b_d668243e-332c-400c-b8f6-89ddca2a5303.webp?v=1714888696"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03c96837a500c5ed6bef1f0cad6a152450de36ed_54d124bc-10aa-48e3-b4bf-ca225beaa7d5.webp?v=1714888673","options":["color"],"media":[{"alt":null,"id":23889712480355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03c96837a500c5ed6bef1f0cad6a152450de36ed_54d124bc-10aa-48e3-b4bf-ca225beaa7d5.webp?v=1714888673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03c96837a500c5ed6bef1f0cad6a152450de36ed_54d124bc-10aa-48e3-b4bf-ca225beaa7d5.webp?v=1714888673","width":2000},{"alt":null,"id":23889713004643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669a7eb834a3aa9fc821dd9652ad6a431e5edadc_6c740a4e-6f7d-4f5e-a0fd-0839a81f7f42.webp?v=1714888675"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669a7eb834a3aa9fc821dd9652ad6a431e5edadc_6c740a4e-6f7d-4f5e-a0fd-0839a81f7f42.webp?v=1714888675","width":2000},{"alt":null,"id":23889713463395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88dc53ed58621614b27561e6abde234b8989815_36bf4418-8df7-40c3-bdb3-2cf69df8113d.webp?v=1714888678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88dc53ed58621614b27561e6abde234b8989815_36bf4418-8df7-40c3-bdb3-2cf69df8113d.webp?v=1714888678","width":2000},{"alt":null,"id":23889713856611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a26e5d55560a4c00d414b940ada9933b518ca3_5c95e566-9165-4a4b-8e4e-6e1445c6dcf0.webp?v=1714888680"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a26e5d55560a4c00d414b940ada9933b518ca3_5c95e566-9165-4a4b-8e4e-6e1445c6dcf0.webp?v=1714888680","width":2000},{"alt":null,"id":23889714348131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e236770b6f123a66af993ff1a8f8c0b046be5aeb_d5375c1b-702e-42f6-b97b-1eb66bc616f8.webp?v=1714888682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e236770b6f123a66af993ff1a8f8c0b046be5aeb_d5375c1b-702e-42f6-b97b-1eb66bc616f8.webp?v=1714888682","width":2000},{"alt":null,"id":23889714839651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3045693936bdeef1bb6bfbf40ff5fad84f9d9716_f549857d-aad1-47cf-8d07-9d432bbe6106.webp?v=1714888685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3045693936bdeef1bb6bfbf40ff5fad84f9d9716_f549857d-aad1-47cf-8d07-9d432bbe6106.webp?v=1714888685","width":2000},{"alt":null,"id":23889715298403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5ab2ccf2beaf8059fdd82507b49fb78e4936a7_019ff5bc-1797-4eb8-a09a-4ec6199c80e8.webp?v=1714888687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5ab2ccf2beaf8059fdd82507b49fb78e4936a7_019ff5bc-1797-4eb8-a09a-4ec6199c80e8.webp?v=1714888687","width":2000},{"alt":null,"id":23889715920995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea447fc28252cdec0f30c25823fd1cec9da7526_9406f3c3-6e9d-4659-9bf0-a32781d1a9cc.webp?v=1714888689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea447fc28252cdec0f30c25823fd1cec9da7526_9406f3c3-6e9d-4659-9bf0-a32781d1a9cc.webp?v=1714888689","width":2000},{"alt":null,"id":23889716346979,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7706d6249c19d0a3a83c16cbc77dffb354b1ddd0_a9b6a569-02e3-4d6d-8199-33afa6c92565.webp?v=1714888691"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7706d6249c19d0a3a83c16cbc77dffb354b1ddd0_a9b6a569-02e3-4d6d-8199-33afa6c92565.webp?v=1714888691","width":2000},{"alt":null,"id":23889716838499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a3b41b6e2ea4f19d18065ad3dfe5f1abf6849cb_ccc2d60a-5510-46cb-a812-94883df2c4b3.webp?v=1714888694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a3b41b6e2ea4f19d18065ad3dfe5f1abf6849cb_ccc2d60a-5510-46cb-a812-94883df2c4b3.webp?v=1714888694","width":2000},{"alt":null,"id":23889717330019,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c960289cf957fc63d6fac1e9ffd6e92eeac404b_d668243e-332c-400c-b8f6-89ddca2a5303.webp?v=1714888696"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c960289cf957fc63d6fac1e9ffd6e92eeac404b_d668243e-332c-400c-b8f6-89ddca2a5303.webp?v=1714888696","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903138734179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484418981987,"product_id":7413996519523,"position":2,"created_at":"2024-05-05T13:57:55+08:00","updated_at":"2024-05-05T13:57:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669a7eb834a3aa9fc821dd9652ad6a431e5edadc_6c740a4e-6f7d-4f5e-a0fd-0839a81f7f42.webp?v=1714888675","variant_ids":[41903138734179]},"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-PB06","featured_media":{"alt":null,"id":23889713004643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669a7eb834a3aa9fc821dd9652ad6a431e5edadc_6c740a4e-6f7d-4f5e-a0fd-0839a81f7f42.webp?v=1714888675"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903139029091,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484421898339,"product_id":7413996519523,"position":8,"created_at":"2024-05-05T13:58:09+08:00","updated_at":"2024-05-05T13:58:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea447fc28252cdec0f30c25823fd1cec9da7526_9406f3c3-6e9d-4659-9bf0-a32781d1a9cc.webp?v=1714888689","variant_ids":[41903139029091]},"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-PB06","featured_media":{"alt":null,"id":23889715920995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea447fc28252cdec0f30c25823fd1cec9da7526_9406f3c3-6e9d-4659-9bf0-a32781d1a9cc.webp?v=1714888689"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903138734179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484418981987,"product_id":7413996519523,"position":2,"created_at":"2024-05-05T13:57:55+08:00","updated_at":"2024-05-05T13:57:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669a7eb834a3aa9fc821dd9652ad6a431e5edadc_6c740a4e-6f7d-4f5e-a0fd-0839a81f7f42.webp?v=1714888675","variant_ids":[41903138734179]},"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-PB06","featured_media":{"alt":null,"id":23889713004643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669a7eb834a3aa9fc821dd9652ad6a431e5edadc_6c740a4e-6f7d-4f5e-a0fd-0839a81f7f42.webp?v=1714888675"}},"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: "停產"
}