$product = {"id":7408223715427,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆白","handle":"iphone-13-pro-max-mod-nx-printable-pb02","description":null,"published_at":"2024-06-11T16:34:41+08:00","created_at":"2024-05-03T12:23:58+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":41884037251171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31471516188771,"product_id":7408223715427,"position":9,"created_at":"2024-05-03T12:24:18+08:00","updated_at":"2024-05-03T12:24:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d505c7d499c42a08edd22b8850a6375048f791_5d98ddf2-21fe-46e8-881a-24761c558af8.webp?v=1714710258","variant_ids":[41884037251171]},"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-PB02","featured_media":{"alt":null,"id":23876422795363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d505c7d499c42a08edd22b8850a6375048f791_5d98ddf2-21fe-46e8-881a-24761c558af8.webp?v=1714710258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884037546083,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31471517007971,"product_id":7408223715427,"position":10,"created_at":"2024-05-03T12:24:21+08:00","updated_at":"2024-05-03T12:24:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9d460f7598b5dbfd2926b14aae5ec81937043da_97e987e5-63f7-4c04-bcc2-31f6e4f8be03.webp?v=1714710261","variant_ids":[41884037546083]},"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-PB02","featured_media":{"alt":null,"id":23876423549027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9d460f7598b5dbfd2926b14aae5ec81937043da_97e987e5-63f7-4c04-bcc2-31f6e4f8be03.webp?v=1714710261"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f76563b102f55b808a2a05f19156f8a9f9cce72_ef087d30-a66c-462b-84af-e14ac7a4cdf5.webp?v=1714710240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcbe694b1e7508c45f22310e417035dcd7219d89_0ed9d9ff-4acc-4c37-a3e9-d827f0a94511.webp?v=1714710242","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/639f1f9da8987c0d30377b9602a23a85ef311e6d_7be76256-4eb2-4f22-badc-a0dd1a825954.webp?v=1714710244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/422718bd68c9899260c84cca27de48897b92fb8c_3f428b79-b96f-444e-886e-20f5e4dd0656.webp?v=1714710247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a72b01d827ad9611e6b7e4a208f711acfb12add2_8f4c2abd-a8bc-4ad6-b1b9-f2cdffd31a28.webp?v=1714710249","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689e9788252949d688d1984a31eba3ae7300179f_e0475bcf-10e9-4b75-9aad-e3588df0243b.webp?v=1714710251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4241a21c41a89d026f30ff7d6ba0ccff4d577323_41784d70-9930-469e-9aba-9fd952be0a02.webp?v=1714710254","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71900f5028e2dba3c4462d182f21ce35fc9937ac_862df6b5-f89d-4394-bf4c-bdde4f5e8128.webp?v=1714710256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d505c7d499c42a08edd22b8850a6375048f791_5d98ddf2-21fe-46e8-881a-24761c558af8.webp?v=1714710258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9d460f7598b5dbfd2926b14aae5ec81937043da_97e987e5-63f7-4c04-bcc2-31f6e4f8be03.webp?v=1714710261"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f76563b102f55b808a2a05f19156f8a9f9cce72_ef087d30-a66c-462b-84af-e14ac7a4cdf5.webp?v=1714710240","options":["color"],"media":[{"alt":null,"id":23876418601059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f76563b102f55b808a2a05f19156f8a9f9cce72_ef087d30-a66c-462b-84af-e14ac7a4cdf5.webp?v=1714710240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f76563b102f55b808a2a05f19156f8a9f9cce72_ef087d30-a66c-462b-84af-e14ac7a4cdf5.webp?v=1714710240","width":2000},{"alt":null,"id":23876418961507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcbe694b1e7508c45f22310e417035dcd7219d89_0ed9d9ff-4acc-4c37-a3e9-d827f0a94511.webp?v=1714710242"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcbe694b1e7508c45f22310e417035dcd7219d89_0ed9d9ff-4acc-4c37-a3e9-d827f0a94511.webp?v=1714710242","width":2000},{"alt":null,"id":23876419420259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/639f1f9da8987c0d30377b9602a23a85ef311e6d_7be76256-4eb2-4f22-badc-a0dd1a825954.webp?v=1714710244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/639f1f9da8987c0d30377b9602a23a85ef311e6d_7be76256-4eb2-4f22-badc-a0dd1a825954.webp?v=1714710244","width":2000},{"alt":null,"id":23876419944547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/422718bd68c9899260c84cca27de48897b92fb8c_3f428b79-b96f-444e-886e-20f5e4dd0656.webp?v=1714710247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/422718bd68c9899260c84cca27de48897b92fb8c_3f428b79-b96f-444e-886e-20f5e4dd0656.webp?v=1714710247","width":2000},{"alt":null,"id":23876420698211,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a72b01d827ad9611e6b7e4a208f711acfb12add2_8f4c2abd-a8bc-4ad6-b1b9-f2cdffd31a28.webp?v=1714710249"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a72b01d827ad9611e6b7e4a208f711acfb12add2_8f4c2abd-a8bc-4ad6-b1b9-f2cdffd31a28.webp?v=1714710249","width":2000},{"alt":null,"id":23876421320803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689e9788252949d688d1984a31eba3ae7300179f_e0475bcf-10e9-4b75-9aad-e3588df0243b.webp?v=1714710251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689e9788252949d688d1984a31eba3ae7300179f_e0475bcf-10e9-4b75-9aad-e3588df0243b.webp?v=1714710251","width":2000},{"alt":null,"id":23876421714019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4241a21c41a89d026f30ff7d6ba0ccff4d577323_41784d70-9930-469e-9aba-9fd952be0a02.webp?v=1714710254"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4241a21c41a89d026f30ff7d6ba0ccff4d577323_41784d70-9930-469e-9aba-9fd952be0a02.webp?v=1714710254","width":2000},{"alt":null,"id":23876422140003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71900f5028e2dba3c4462d182f21ce35fc9937ac_862df6b5-f89d-4394-bf4c-bdde4f5e8128.webp?v=1714710256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71900f5028e2dba3c4462d182f21ce35fc9937ac_862df6b5-f89d-4394-bf4c-bdde4f5e8128.webp?v=1714710256","width":2000},{"alt":null,"id":23876422795363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d505c7d499c42a08edd22b8850a6375048f791_5d98ddf2-21fe-46e8-881a-24761c558af8.webp?v=1714710258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d505c7d499c42a08edd22b8850a6375048f791_5d98ddf2-21fe-46e8-881a-24761c558af8.webp?v=1714710258","width":2000},{"alt":null,"id":23876423549027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9d460f7598b5dbfd2926b14aae5ec81937043da_97e987e5-63f7-4c04-bcc2-31f6e4f8be03.webp?v=1714710261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9d460f7598b5dbfd2926b14aae5ec81937043da_97e987e5-63f7-4c04-bcc2-31f6e4f8be03.webp?v=1714710261","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41884037251171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31471516188771,"product_id":7408223715427,"position":9,"created_at":"2024-05-03T12:24:18+08:00","updated_at":"2024-05-03T12:24:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d505c7d499c42a08edd22b8850a6375048f791_5d98ddf2-21fe-46e8-881a-24761c558af8.webp?v=1714710258","variant_ids":[41884037251171]},"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-PB02","featured_media":{"alt":null,"id":23876422795363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d505c7d499c42a08edd22b8850a6375048f791_5d98ddf2-21fe-46e8-881a-24761c558af8.webp?v=1714710258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884037546083,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31471517007971,"product_id":7408223715427,"position":10,"created_at":"2024-05-03T12:24:21+08:00","updated_at":"2024-05-03T12:24:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9d460f7598b5dbfd2926b14aae5ec81937043da_97e987e5-63f7-4c04-bcc2-31f6e4f8be03.webp?v=1714710261","variant_ids":[41884037546083]},"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-PB02","featured_media":{"alt":null,"id":23876423549027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9d460f7598b5dbfd2926b14aae5ec81937043da_97e987e5-63f7-4c04-bcc2-31f6e4f8be03.webp?v=1714710261"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41884037251171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31471516188771,"product_id":7408223715427,"position":9,"created_at":"2024-05-03T12:24:18+08:00","updated_at":"2024-05-03T12:24:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d505c7d499c42a08edd22b8850a6375048f791_5d98ddf2-21fe-46e8-881a-24761c558af8.webp?v=1714710258","variant_ids":[41884037251171]},"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-PB02","featured_media":{"alt":null,"id":23876422795363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d505c7d499c42a08edd22b8850a6375048f791_5d98ddf2-21fe-46e8-881a-24761c558af8.webp?v=1714710258"}},"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: "停產"
}