$product = {"id":7413989703779,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具3","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb26","description":null,"published_at":"2024-06-11T17:47:02+08:00","created_at":"2024-05-05T13:56:35+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":41903059501155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31484404826211,"product_id":7413989703779,"position":6,"created_at":"2024-05-05T13:56:49+08:00","updated_at":"2024-05-05T13:56:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/321914eeb25343b83cb35aac5e83f90e07bba5c6_2587f6b0-6767-4b74-afe4-546cd072c509.webp?v=1714888609","variant_ids":[41903059501155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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-PB26","featured_media":{"alt":null,"id":23889698816099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/321914eeb25343b83cb35aac5e83f90e07bba5c6_2587f6b0-6767-4b74-afe4-546cd072c509.webp?v=1714888609"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903059828835,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31484406104163,"product_id":7413989703779,"position":7,"created_at":"2024-05-05T13:56:51+08:00","updated_at":"2024-05-05T13:56:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e217a34354a208d9cf813d59e613520a4b64e66b_e2e2c6cd-f4e0-43b9-9589-dc18b93cb5ff.webp?v=1714888611","variant_ids":[41903059828835]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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-PB26","featured_media":{"alt":null,"id":23889699242083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e217a34354a208d9cf813d59e613520a4b64e66b_e2e2c6cd-f4e0-43b9-9589-dc18b93cb5ff.webp?v=1714888611"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b05aff7b252f0de30efbebbb403e22ae70a67f_c95bc3f2-fdf9-4224-a9ec-288ba2f9ba67.webp?v=1714888597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3666ab1917717a21fb4a97cf13516fbbc6873594_00d04780-373a-4a27-9d37-9e3ab7ac6e44.webp?v=1714888600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10a45f927b14e1c735691f91a3041807ab1cca8d_694bed52-9082-4aaa-990e-7fb86019ed12.webp?v=1714888602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48c04e60a4f60bfa8a9c820847b1ccfe34657275_e029a1bc-0031-439e-9971-ff396ae82737.webp?v=1714888604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7074ab352d0f1886d3f463677aabd5632c12330_a2b966b1-4ef8-4ca9-a313-5432573306c8.webp?v=1714888606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/321914eeb25343b83cb35aac5e83f90e07bba5c6_2587f6b0-6767-4b74-afe4-546cd072c509.webp?v=1714888609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e217a34354a208d9cf813d59e613520a4b64e66b_e2e2c6cd-f4e0-43b9-9589-dc18b93cb5ff.webp?v=1714888611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d55e293f16df29a7fff5714c9a9efd0c11fe1995_53cded38-b364-431b-be0a-db3505caab87.webp?v=1714888613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1032b14ce7f11e51cf861167979ccde62a4e776_bbdf72a2-74fb-4500-b9a8-a4bf2025f8d0.webp?v=1714888616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9251a9b605aa05f50f1540b3b2950b9a6ba79622_41a93aab-4b3a-4cab-809f-94cfcb610f16.webp?v=1714888618","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/658a51aa02c3236346a62090830d1f27d5620648_db45c7e1-3887-40d3-b025-a7358c883052.webp?v=1714888620"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b05aff7b252f0de30efbebbb403e22ae70a67f_c95bc3f2-fdf9-4224-a9ec-288ba2f9ba67.webp?v=1714888597","options":["color"],"media":[{"alt":null,"id":23889696456803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b05aff7b252f0de30efbebbb403e22ae70a67f_c95bc3f2-fdf9-4224-a9ec-288ba2f9ba67.webp?v=1714888597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b05aff7b252f0de30efbebbb403e22ae70a67f_c95bc3f2-fdf9-4224-a9ec-288ba2f9ba67.webp?v=1714888597","width":2000},{"alt":null,"id":23889697046627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3666ab1917717a21fb4a97cf13516fbbc6873594_00d04780-373a-4a27-9d37-9e3ab7ac6e44.webp?v=1714888600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3666ab1917717a21fb4a97cf13516fbbc6873594_00d04780-373a-4a27-9d37-9e3ab7ac6e44.webp?v=1714888600","width":2000},{"alt":null,"id":23889697439843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10a45f927b14e1c735691f91a3041807ab1cca8d_694bed52-9082-4aaa-990e-7fb86019ed12.webp?v=1714888602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10a45f927b14e1c735691f91a3041807ab1cca8d_694bed52-9082-4aaa-990e-7fb86019ed12.webp?v=1714888602","width":2000},{"alt":null,"id":23889697964131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48c04e60a4f60bfa8a9c820847b1ccfe34657275_e029a1bc-0031-439e-9971-ff396ae82737.webp?v=1714888604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48c04e60a4f60bfa8a9c820847b1ccfe34657275_e029a1bc-0031-439e-9971-ff396ae82737.webp?v=1714888604","width":2000},{"alt":null,"id":23889698259043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7074ab352d0f1886d3f463677aabd5632c12330_a2b966b1-4ef8-4ca9-a313-5432573306c8.webp?v=1714888606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7074ab352d0f1886d3f463677aabd5632c12330_a2b966b1-4ef8-4ca9-a313-5432573306c8.webp?v=1714888606","width":2000},{"alt":null,"id":23889698816099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/321914eeb25343b83cb35aac5e83f90e07bba5c6_2587f6b0-6767-4b74-afe4-546cd072c509.webp?v=1714888609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/321914eeb25343b83cb35aac5e83f90e07bba5c6_2587f6b0-6767-4b74-afe4-546cd072c509.webp?v=1714888609","width":2000},{"alt":null,"id":23889699242083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e217a34354a208d9cf813d59e613520a4b64e66b_e2e2c6cd-f4e0-43b9-9589-dc18b93cb5ff.webp?v=1714888611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e217a34354a208d9cf813d59e613520a4b64e66b_e2e2c6cd-f4e0-43b9-9589-dc18b93cb5ff.webp?v=1714888611","width":2000},{"alt":null,"id":23889700618339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d55e293f16df29a7fff5714c9a9efd0c11fe1995_53cded38-b364-431b-be0a-db3505caab87.webp?v=1714888613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d55e293f16df29a7fff5714c9a9efd0c11fe1995_53cded38-b364-431b-be0a-db3505caab87.webp?v=1714888613","width":2000},{"alt":null,"id":23889701044323,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1032b14ce7f11e51cf861167979ccde62a4e776_bbdf72a2-74fb-4500-b9a8-a4bf2025f8d0.webp?v=1714888616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1032b14ce7f11e51cf861167979ccde62a4e776_bbdf72a2-74fb-4500-b9a8-a4bf2025f8d0.webp?v=1714888616","width":2000},{"alt":null,"id":23889701601379,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9251a9b605aa05f50f1540b3b2950b9a6ba79622_41a93aab-4b3a-4cab-809f-94cfcb610f16.webp?v=1714888618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9251a9b605aa05f50f1540b3b2950b9a6ba79622_41a93aab-4b3a-4cab-809f-94cfcb610f16.webp?v=1714888618","width":2000},{"alt":null,"id":23889701961827,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/658a51aa02c3236346a62090830d1f27d5620648_db45c7e1-3887-40d3-b025-a7358c883052.webp?v=1714888620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/658a51aa02c3236346a62090830d1f27d5620648_db45c7e1-3887-40d3-b025-a7358c883052.webp?v=1714888620","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903059501155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31484404826211,"product_id":7413989703779,"position":6,"created_at":"2024-05-05T13:56:49+08:00","updated_at":"2024-05-05T13:56:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/321914eeb25343b83cb35aac5e83f90e07bba5c6_2587f6b0-6767-4b74-afe4-546cd072c509.webp?v=1714888609","variant_ids":[41903059501155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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-PB26","featured_media":{"alt":null,"id":23889698816099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/321914eeb25343b83cb35aac5e83f90e07bba5c6_2587f6b0-6767-4b74-afe4-546cd072c509.webp?v=1714888609"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903059828835,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31484406104163,"product_id":7413989703779,"position":7,"created_at":"2024-05-05T13:56:51+08:00","updated_at":"2024-05-05T13:56:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e217a34354a208d9cf813d59e613520a4b64e66b_e2e2c6cd-f4e0-43b9-9589-dc18b93cb5ff.webp?v=1714888611","variant_ids":[41903059828835]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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-PB26","featured_media":{"alt":null,"id":23889699242083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e217a34354a208d9cf813d59e613520a4b64e66b_e2e2c6cd-f4e0-43b9-9589-dc18b93cb5ff.webp?v=1714888611"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903059501155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31484404826211,"product_id":7413989703779,"position":6,"created_at":"2024-05-05T13:56:49+08:00","updated_at":"2024-05-05T13:56:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/321914eeb25343b83cb35aac5e83f90e07bba5c6_2587f6b0-6767-4b74-afe4-546cd072c509.webp?v=1714888609","variant_ids":[41903059501155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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-PB26","featured_media":{"alt":null,"id":23889698816099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/321914eeb25343b83cb35aac5e83f90e07bba5c6_2587f6b0-6767-4b74-afe4-546cd072c509.webp?v=1714888609"}},"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: "停產"
}