$product = {"id":7407631958115,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列","handle":"iphone-15-plus-mod-nx-printable-pb72","description":null,"published_at":"2024-06-11T16:21:06+08:00","created_at":"2024-05-03T10:23:57+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 15 Plus","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":41876980629603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31470080655459,"product_id":7407631958115,"position":2,"created_at":"2024-05-03T10:24:02+08:00","updated_at":"2024-05-03T10:24:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ec45faa95555b1d3ffafbcbfd4af08e623e488_55a570c7-8adf-40a7-be2e-a00a10bccc2f.webp?v=1714703042","variant_ids":[41876980629603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PB72","featured_media":{"alt":null,"id":23874982969443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ec45faa95555b1d3ffafbcbfd4af08e623e488_55a570c7-8adf-40a7-be2e-a00a10bccc2f.webp?v=1714703042"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876980760675,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31470084358243,"product_id":7407631958115,"position":8,"created_at":"2024-05-03T10:24:20+08:00","updated_at":"2024-05-03T10:24:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b480cca1da82e9c056cdf38dedf260313055fc4_391f0e39-511d-4ff3-9989-cda197740757.webp?v=1714703060","variant_ids":[41876980760675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PB72","featured_media":{"alt":null,"id":23874986606691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b480cca1da82e9c056cdf38dedf260313055fc4_391f0e39-511d-4ff3-9989-cda197740757.webp?v=1714703060"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4ed4480f91315bc08460da1fa11abe0c27cdfe_66564cc5-95fb-493a-989d-03db1fb8887f.webp?v=1714703040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ec45faa95555b1d3ffafbcbfd4af08e623e488_55a570c7-8adf-40a7-be2e-a00a10bccc2f.webp?v=1714703042","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26cf9f5bffbaf4a09921bb01ab69ecf8bc313bb7_b7019bd9-f139-47ab-9d8f-1f6a1f5a6046.webp?v=1714703044","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ea8291dfc245c5de2218f1ebaed59c664cd718d_20cd7479-52df-4da9-8117-1d5d0291ef71.webp?v=1714703047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0251bd7a5d64fd83592efd6a9fa8620a5a7946e_4cf4c9d6-23fe-4d1a-9820-bb5bb3f1f065.webp?v=1714703049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe933ecb0990635c34584f280eb7e2d393c5f7e_3e82d5da-6b83-4cae-80ee-026ca279158b.webp?v=1714703054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e862f7cd93e137c4ddcef86b9461e95ce927bdd_25700c23-0bbe-4ac0-8924-0a15b7606e75.webp?v=1714703057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b480cca1da82e9c056cdf38dedf260313055fc4_391f0e39-511d-4ff3-9989-cda197740757.webp?v=1714703060","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/300786df5649a65b3fb1feb9fd2a768da1bd1c92_95ee7c49-39ff-4538-bc84-e9eaa93115e5.webp?v=1714703062"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4ed4480f91315bc08460da1fa11abe0c27cdfe_66564cc5-95fb-493a-989d-03db1fb8887f.webp?v=1714703040","options":["color"],"media":[{"alt":null,"id":23874982543459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4ed4480f91315bc08460da1fa11abe0c27cdfe_66564cc5-95fb-493a-989d-03db1fb8887f.webp?v=1714703040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4ed4480f91315bc08460da1fa11abe0c27cdfe_66564cc5-95fb-493a-989d-03db1fb8887f.webp?v=1714703040","width":2000},{"alt":null,"id":23874982969443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ec45faa95555b1d3ffafbcbfd4af08e623e488_55a570c7-8adf-40a7-be2e-a00a10bccc2f.webp?v=1714703042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ec45faa95555b1d3ffafbcbfd4af08e623e488_55a570c7-8adf-40a7-be2e-a00a10bccc2f.webp?v=1714703042","width":2000},{"alt":null,"id":23874983428195,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26cf9f5bffbaf4a09921bb01ab69ecf8bc313bb7_b7019bd9-f139-47ab-9d8f-1f6a1f5a6046.webp?v=1714703044"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26cf9f5bffbaf4a09921bb01ab69ecf8bc313bb7_b7019bd9-f139-47ab-9d8f-1f6a1f5a6046.webp?v=1714703044","width":2000},{"alt":null,"id":23874984018019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ea8291dfc245c5de2218f1ebaed59c664cd718d_20cd7479-52df-4da9-8117-1d5d0291ef71.webp?v=1714703047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ea8291dfc245c5de2218f1ebaed59c664cd718d_20cd7479-52df-4da9-8117-1d5d0291ef71.webp?v=1714703047","width":2000},{"alt":null,"id":23874984542307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0251bd7a5d64fd83592efd6a9fa8620a5a7946e_4cf4c9d6-23fe-4d1a-9820-bb5bb3f1f065.webp?v=1714703049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0251bd7a5d64fd83592efd6a9fa8620a5a7946e_4cf4c9d6-23fe-4d1a-9820-bb5bb3f1f065.webp?v=1714703049","width":2000},{"alt":null,"id":23874985558115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe933ecb0990635c34584f280eb7e2d393c5f7e_3e82d5da-6b83-4cae-80ee-026ca279158b.webp?v=1714703054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe933ecb0990635c34584f280eb7e2d393c5f7e_3e82d5da-6b83-4cae-80ee-026ca279158b.webp?v=1714703054","width":2000},{"alt":null,"id":23874986147939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e862f7cd93e137c4ddcef86b9461e95ce927bdd_25700c23-0bbe-4ac0-8924-0a15b7606e75.webp?v=1714703057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e862f7cd93e137c4ddcef86b9461e95ce927bdd_25700c23-0bbe-4ac0-8924-0a15b7606e75.webp?v=1714703057","width":2000},{"alt":null,"id":23874986606691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b480cca1da82e9c056cdf38dedf260313055fc4_391f0e39-511d-4ff3-9989-cda197740757.webp?v=1714703060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b480cca1da82e9c056cdf38dedf260313055fc4_391f0e39-511d-4ff3-9989-cda197740757.webp?v=1714703060","width":2000},{"alt":null,"id":23874987229283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/300786df5649a65b3fb1feb9fd2a768da1bd1c92_95ee7c49-39ff-4538-bc84-e9eaa93115e5.webp?v=1714703062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/300786df5649a65b3fb1feb9fd2a768da1bd1c92_95ee7c49-39ff-4538-bc84-e9eaa93115e5.webp?v=1714703062","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41876980629603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31470080655459,"product_id":7407631958115,"position":2,"created_at":"2024-05-03T10:24:02+08:00","updated_at":"2024-05-03T10:24:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ec45faa95555b1d3ffafbcbfd4af08e623e488_55a570c7-8adf-40a7-be2e-a00a10bccc2f.webp?v=1714703042","variant_ids":[41876980629603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PB72","featured_media":{"alt":null,"id":23874982969443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ec45faa95555b1d3ffafbcbfd4af08e623e488_55a570c7-8adf-40a7-be2e-a00a10bccc2f.webp?v=1714703042"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876980760675,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31470084358243,"product_id":7407631958115,"position":8,"created_at":"2024-05-03T10:24:20+08:00","updated_at":"2024-05-03T10:24:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b480cca1da82e9c056cdf38dedf260313055fc4_391f0e39-511d-4ff3-9989-cda197740757.webp?v=1714703060","variant_ids":[41876980760675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PB72","featured_media":{"alt":null,"id":23874986606691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b480cca1da82e9c056cdf38dedf260313055fc4_391f0e39-511d-4ff3-9989-cda197740757.webp?v=1714703060"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41876980629603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31470080655459,"product_id":7407631958115,"position":2,"created_at":"2024-05-03T10:24:02+08:00","updated_at":"2024-05-03T10:24:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ec45faa95555b1d3ffafbcbfd4af08e623e488_55a570c7-8adf-40a7-be2e-a00a10bccc2f.webp?v=1714703042","variant_ids":[41876980629603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PB72","featured_media":{"alt":null,"id":23874982969443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0ec45faa95555b1d3ffafbcbfd4af08e623e488_55a570c7-8adf-40a7-be2e-a00a10bccc2f.webp?v=1714703042"}},"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: "停產"
}