$product = {"id":7410987827299,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb102","description":null,"published_at":"2024-06-11T17:33:20+08:00","created_at":"2024-05-04T22:21:58+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 15 Plus","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":41893854117987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31479221157987,"product_id":7410987827299,"position":2,"created_at":"2024-05-04T22:22:03+08:00","updated_at":"2024-05-04T22:22:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ccdd98c44498cbe8d3e5e0f0cd729b5c42ee4b1_893fc98f-e353-4192-a15c-5a891ebb84b9.webp?v=1714832523","variant_ids":[41893854117987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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":"MPB0129624-PB102","featured_media":{"alt":null,"id":23884468322403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ccdd98c44498cbe8d3e5e0f0cd729b5c42ee4b1_893fc98f-e353-4192-a15c-5a891ebb84b9.webp?v=1714832523"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893854249059,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31479221583971,"product_id":7410987827299,"position":3,"created_at":"2024-05-04T22:22:05+08:00","updated_at":"2024-05-04T22:22:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c2aa4c37e1d18371d458a1c3a90ab102a21d53_82a047e1-b486-4483-ae41-e14f4f49cfe7.webp?v=1714832525","variant_ids":[41893854249059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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":"MPB0129657-PB102","featured_media":{"alt":null,"id":23884468846691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c2aa4c37e1d18371d458a1c3a90ab102a21d53_82a047e1-b486-4483-ae41-e14f4f49cfe7.webp?v=1714832525"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9951d9e3321f3cb206344d84dbcca849d0b2b8_910e85e0-2b32-45fa-be01-90e8d6e5217f.webp?v=1714832520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ccdd98c44498cbe8d3e5e0f0cd729b5c42ee4b1_893fc98f-e353-4192-a15c-5a891ebb84b9.webp?v=1714832523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c2aa4c37e1d18371d458a1c3a90ab102a21d53_82a047e1-b486-4483-ae41-e14f4f49cfe7.webp?v=1714832525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96fd7e2c74de8ffe08ab0a0352fefe834cee334d_ec83f633-7c68-4213-a00d-9872c2049e49.webp?v=1714832527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda3beddb764a47354ce0a9d4c491b81b3e3ef98_6b9fdf8c-71fd-41b4-993c-d97328f60ca5.webp?v=1714832530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5304111f971cd4c684265851c0f9637735e8fa1d_558eabd9-69aa-4759-8462-23949bb5f9d5.webp?v=1714832535","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c752f8c89585c468a76c1583d260e3558af2b00c_55af3147-2913-41c0-a6ca-739bbcbc81b8.webp?v=1714832537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db89e1d63b5002ac9080b007a51857d537b9110_ee4de9bd-102d-4f9c-99f3-e3f23ac85851.webp?v=1714832540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8967ced7bde8e16270a18040c735a45845ae48e0_5e2b33ba-0552-4023-bd08-d6a800c0c0b0.webp?v=1714832543"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9951d9e3321f3cb206344d84dbcca849d0b2b8_910e85e0-2b32-45fa-be01-90e8d6e5217f.webp?v=1714832520","options":["color"],"media":[{"alt":null,"id":23884467830883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9951d9e3321f3cb206344d84dbcca849d0b2b8_910e85e0-2b32-45fa-be01-90e8d6e5217f.webp?v=1714832520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9951d9e3321f3cb206344d84dbcca849d0b2b8_910e85e0-2b32-45fa-be01-90e8d6e5217f.webp?v=1714832520","width":2000},{"alt":null,"id":23884468322403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ccdd98c44498cbe8d3e5e0f0cd729b5c42ee4b1_893fc98f-e353-4192-a15c-5a891ebb84b9.webp?v=1714832523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ccdd98c44498cbe8d3e5e0f0cd729b5c42ee4b1_893fc98f-e353-4192-a15c-5a891ebb84b9.webp?v=1714832523","width":2000},{"alt":null,"id":23884468846691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c2aa4c37e1d18371d458a1c3a90ab102a21d53_82a047e1-b486-4483-ae41-e14f4f49cfe7.webp?v=1714832525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c2aa4c37e1d18371d458a1c3a90ab102a21d53_82a047e1-b486-4483-ae41-e14f4f49cfe7.webp?v=1714832525","width":2000},{"alt":null,"id":23884469665891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96fd7e2c74de8ffe08ab0a0352fefe834cee334d_ec83f633-7c68-4213-a00d-9872c2049e49.webp?v=1714832527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96fd7e2c74de8ffe08ab0a0352fefe834cee334d_ec83f633-7c68-4213-a00d-9872c2049e49.webp?v=1714832527","width":2000},{"alt":null,"id":23884470321251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda3beddb764a47354ce0a9d4c491b81b3e3ef98_6b9fdf8c-71fd-41b4-993c-d97328f60ca5.webp?v=1714832530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fda3beddb764a47354ce0a9d4c491b81b3e3ef98_6b9fdf8c-71fd-41b4-993c-d97328f60ca5.webp?v=1714832530","width":2000},{"alt":null,"id":23884471337059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5304111f971cd4c684265851c0f9637735e8fa1d_558eabd9-69aa-4759-8462-23949bb5f9d5.webp?v=1714832535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5304111f971cd4c684265851c0f9637735e8fa1d_558eabd9-69aa-4759-8462-23949bb5f9d5.webp?v=1714832535","width":2000},{"alt":null,"id":23884471599203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c752f8c89585c468a76c1583d260e3558af2b00c_55af3147-2913-41c0-a6ca-739bbcbc81b8.webp?v=1714832537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c752f8c89585c468a76c1583d260e3558af2b00c_55af3147-2913-41c0-a6ca-739bbcbc81b8.webp?v=1714832537","width":2000},{"alt":null,"id":23884471795811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db89e1d63b5002ac9080b007a51857d537b9110_ee4de9bd-102d-4f9c-99f3-e3f23ac85851.webp?v=1714832540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9db89e1d63b5002ac9080b007a51857d537b9110_ee4de9bd-102d-4f9c-99f3-e3f23ac85851.webp?v=1714832540","width":2000},{"alt":null,"id":23884472254563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8967ced7bde8e16270a18040c735a45845ae48e0_5e2b33ba-0552-4023-bd08-d6a800c0c0b0.webp?v=1714832543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8967ced7bde8e16270a18040c735a45845ae48e0_5e2b33ba-0552-4023-bd08-d6a800c0c0b0.webp?v=1714832543","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41893854117987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31479221157987,"product_id":7410987827299,"position":2,"created_at":"2024-05-04T22:22:03+08:00","updated_at":"2024-05-04T22:22:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ccdd98c44498cbe8d3e5e0f0cd729b5c42ee4b1_893fc98f-e353-4192-a15c-5a891ebb84b9.webp?v=1714832523","variant_ids":[41893854117987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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":"MPB0129624-PB102","featured_media":{"alt":null,"id":23884468322403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ccdd98c44498cbe8d3e5e0f0cd729b5c42ee4b1_893fc98f-e353-4192-a15c-5a891ebb84b9.webp?v=1714832523"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893854249059,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31479221583971,"product_id":7410987827299,"position":3,"created_at":"2024-05-04T22:22:05+08:00","updated_at":"2024-05-04T22:22:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c2aa4c37e1d18371d458a1c3a90ab102a21d53_82a047e1-b486-4483-ae41-e14f4f49cfe7.webp?v=1714832525","variant_ids":[41893854249059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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":"MPB0129657-PB102","featured_media":{"alt":null,"id":23884468846691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87c2aa4c37e1d18371d458a1c3a90ab102a21d53_82a047e1-b486-4483-ae41-e14f4f49cfe7.webp?v=1714832525"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41893854117987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31479221157987,"product_id":7410987827299,"position":2,"created_at":"2024-05-04T22:22:03+08:00","updated_at":"2024-05-04T22:22:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ccdd98c44498cbe8d3e5e0f0cd729b5c42ee4b1_893fc98f-e353-4192-a15c-5a891ebb84b9.webp?v=1714832523","variant_ids":[41893854117987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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":"MPB0129624-PB102","featured_media":{"alt":null,"id":23884468322403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ccdd98c44498cbe8d3e5e0f0cd729b5c42ee4b1_893fc98f-e353-4192-a15c-5a891ebb84b9.webp?v=1714832523"}},"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: "停產"
}