$product = {"id":7411015549027,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 星際大戰徽章-潮流系列","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb50","description":null,"published_at":"2024-06-11T17:34:05+08:00","created_at":"2024-05-04T22:27:06+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":41894130745443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31479290396771,"product_id":7411015549027,"position":2,"created_at":"2024-05-04T22:27:11+08:00","updated_at":"2024-05-04T22:27:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/253476f90c387b585448941c78806d31b867a2c8_be3f4561-3b73-4e08-b555-b6906167e7cd.webp?v=1714832831","variant_ids":[41894130745443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129624-PB50","featured_media":{"alt":null,"id":23884537593955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/253476f90c387b585448941c78806d31b867a2c8_be3f4561-3b73-4e08-b555-b6906167e7cd.webp?v=1714832831"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894130974819,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31479293182051,"product_id":7411015549027,"position":6,"created_at":"2024-05-04T22:27:23+08:00","updated_at":"2024-05-04T22:27:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac2b4c7e3996460bb2817946142629b210af4f2_c48ed96e-6ea0-4e9f-b926-f06992748ded.webp?v=1714832843","variant_ids":[41894130974819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129657-PB50","featured_media":{"alt":null,"id":23884540412003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac2b4c7e3996460bb2817946142629b210af4f2_c48ed96e-6ea0-4e9f-b926-f06992748ded.webp?v=1714832843"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03779461f1071b0ed93b456a71e94721e8f565e1_b68bc3e6-e31d-4202-8d1b-156d4ba42765.webp?v=1714832829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/253476f90c387b585448941c78806d31b867a2c8_be3f4561-3b73-4e08-b555-b6906167e7cd.webp?v=1714832831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6105ef39c60b4de9fc8e3a5a83cdcb414d24fc_a58f909c-d039-40fd-b2c8-1ffee0a5aea8.webp?v=1714832834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1edeff9543b66fd05bbf7a85ef4c92e1faf593d_76d5cef5-295a-42f5-a4b4-def4e6f13bc6.webp?v=1714832836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14a2a4200de4862a0308fa8ae302b2af9a5b1b7_fded4b15-e7ce-48a2-89c4-a9d231eff5a2.webp?v=1714832839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac2b4c7e3996460bb2817946142629b210af4f2_c48ed96e-6ea0-4e9f-b926-f06992748ded.webp?v=1714832843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d140fd8022e34bab31efbb39568982848022711b_749def71-0581-43ec-ba42-13e1a895222a.webp?v=1714832846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2ce5eec5b81e55bd8ae15e2972d7c31873b664b_77e960bd-8a17-4de4-adb6-e00efd29f0b1.webp?v=1714832848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5e7dae2e90b03dd5b18a16b6a91ecee9d1ecbc_de8520ab-05b5-4af8-a1ce-0799c3274372.webp?v=1714832850"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03779461f1071b0ed93b456a71e94721e8f565e1_b68bc3e6-e31d-4202-8d1b-156d4ba42765.webp?v=1714832829","options":["color"],"media":[{"alt":null,"id":23884537036899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03779461f1071b0ed93b456a71e94721e8f565e1_b68bc3e6-e31d-4202-8d1b-156d4ba42765.webp?v=1714832829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03779461f1071b0ed93b456a71e94721e8f565e1_b68bc3e6-e31d-4202-8d1b-156d4ba42765.webp?v=1714832829","width":2000},{"alt":null,"id":23884537593955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/253476f90c387b585448941c78806d31b867a2c8_be3f4561-3b73-4e08-b555-b6906167e7cd.webp?v=1714832831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/253476f90c387b585448941c78806d31b867a2c8_be3f4561-3b73-4e08-b555-b6906167e7cd.webp?v=1714832831","width":2000},{"alt":null,"id":23884538216547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6105ef39c60b4de9fc8e3a5a83cdcb414d24fc_a58f909c-d039-40fd-b2c8-1ffee0a5aea8.webp?v=1714832834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d6105ef39c60b4de9fc8e3a5a83cdcb414d24fc_a58f909c-d039-40fd-b2c8-1ffee0a5aea8.webp?v=1714832834","width":2000},{"alt":null,"id":23884538740835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1edeff9543b66fd05bbf7a85ef4c92e1faf593d_76d5cef5-295a-42f5-a4b4-def4e6f13bc6.webp?v=1714832836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1edeff9543b66fd05bbf7a85ef4c92e1faf593d_76d5cef5-295a-42f5-a4b4-def4e6f13bc6.webp?v=1714832836","width":2000},{"alt":null,"id":23884539330659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14a2a4200de4862a0308fa8ae302b2af9a5b1b7_fded4b15-e7ce-48a2-89c4-a9d231eff5a2.webp?v=1714832839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f14a2a4200de4862a0308fa8ae302b2af9a5b1b7_fded4b15-e7ce-48a2-89c4-a9d231eff5a2.webp?v=1714832839","width":2000},{"alt":null,"id":23884540412003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac2b4c7e3996460bb2817946142629b210af4f2_c48ed96e-6ea0-4e9f-b926-f06992748ded.webp?v=1714832843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac2b4c7e3996460bb2817946142629b210af4f2_c48ed96e-6ea0-4e9f-b926-f06992748ded.webp?v=1714832843","width":2000},{"alt":null,"id":23884540870755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d140fd8022e34bab31efbb39568982848022711b_749def71-0581-43ec-ba42-13e1a895222a.webp?v=1714832846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d140fd8022e34bab31efbb39568982848022711b_749def71-0581-43ec-ba42-13e1a895222a.webp?v=1714832846","width":2000},{"alt":null,"id":23884541427811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2ce5eec5b81e55bd8ae15e2972d7c31873b664b_77e960bd-8a17-4de4-adb6-e00efd29f0b1.webp?v=1714832848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2ce5eec5b81e55bd8ae15e2972d7c31873b664b_77e960bd-8a17-4de4-adb6-e00efd29f0b1.webp?v=1714832848","width":2000},{"alt":null,"id":23884541821027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5e7dae2e90b03dd5b18a16b6a91ecee9d1ecbc_de8520ab-05b5-4af8-a1ce-0799c3274372.webp?v=1714832850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5e7dae2e90b03dd5b18a16b6a91ecee9d1ecbc_de8520ab-05b5-4af8-a1ce-0799c3274372.webp?v=1714832850","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41894130745443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31479290396771,"product_id":7411015549027,"position":2,"created_at":"2024-05-04T22:27:11+08:00","updated_at":"2024-05-04T22:27:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/253476f90c387b585448941c78806d31b867a2c8_be3f4561-3b73-4e08-b555-b6906167e7cd.webp?v=1714832831","variant_ids":[41894130745443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129624-PB50","featured_media":{"alt":null,"id":23884537593955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/253476f90c387b585448941c78806d31b867a2c8_be3f4561-3b73-4e08-b555-b6906167e7cd.webp?v=1714832831"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894130974819,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31479293182051,"product_id":7411015549027,"position":6,"created_at":"2024-05-04T22:27:23+08:00","updated_at":"2024-05-04T22:27:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac2b4c7e3996460bb2817946142629b210af4f2_c48ed96e-6ea0-4e9f-b926-f06992748ded.webp?v=1714832843","variant_ids":[41894130974819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129657-PB50","featured_media":{"alt":null,"id":23884540412003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac2b4c7e3996460bb2817946142629b210af4f2_c48ed96e-6ea0-4e9f-b926-f06992748ded.webp?v=1714832843"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41894130745443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB50","requires_shipping":true,"taxable":true,"featured_image":{"id":31479290396771,"product_id":7411015549027,"position":2,"created_at":"2024-05-04T22:27:11+08:00","updated_at":"2024-05-04T22:27:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/253476f90c387b585448941c78806d31b867a2c8_be3f4561-3b73-4e08-b555-b6906167e7cd.webp?v=1714832831","variant_ids":[41894130745443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129624-PB50","featured_media":{"alt":null,"id":23884537593955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/253476f90c387b585448941c78806d31b867a2c8_be3f4561-3b73-4e08-b555-b6906167e7cd.webp?v=1714832831"}},"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: "停產"
}