$product = {"id":7411121619043,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb53","description":null,"published_at":"2024-06-11T17:36:52+08:00","created_at":"2024-05-04T22:47:13+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":41895178829923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31479572004963,"product_id":7411121619043,"position":6,"created_at":"2024-05-04T22:47:27+08:00","updated_at":"2024-05-04T22:47:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b933ea5a1cf53c753a6747fafaf2366a692e244_038739ca-e292-456b-8e75-d7f948728b27.webp?v=1714834047","variant_ids":[41895178829923]},"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-PB53","featured_media":{"alt":null,"id":23884819365987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b933ea5a1cf53c753a6747fafaf2366a692e244_038739ca-e292-456b-8e75-d7f948728b27.webp?v=1714834047"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895179059299,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31479573643363,"product_id":7411121619043,"position":9,"created_at":"2024-05-04T22:47:33+08:00","updated_at":"2024-05-04T22:47:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/986f53d385c7408f0b0f163a362f08461ffd6a32_fe3c5620-ecf2-4e24-a866-7da8b29777df.webp?v=1714834053","variant_ids":[41895179059299]},"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-PB53","featured_media":{"alt":null,"id":23884821364835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/986f53d385c7408f0b0f163a362f08461ffd6a32_fe3c5620-ecf2-4e24-a866-7da8b29777df.webp?v=1714834053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ce11c74f1e323d7da92aa17123bba98e7d6e1c_5e0ef918-18c3-4d5c-ac65-63463a36fde1.webp?v=1714834035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696914972979281678d434fb81ff28d65d47613e_7460306a-2da9-4f9a-9b81-31302037a04c.webp?v=1714834038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5d4d35f07958e374966a24721190c28f7e84edd_47f55752-908a-431c-b1f5-721778377701.webp?v=1714834040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17bfee5a4d6c1e6cafb7f046856b18f642383140_918652de-320f-4be8-a6d7-67bb0040c695.webp?v=1714834042","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09553fe0c731338ca51ffa7a7e12c5762795b41d_323fa7d6-3f16-4c6e-a040-500123692a05.webp?v=1714834044","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b933ea5a1cf53c753a6747fafaf2366a692e244_038739ca-e292-456b-8e75-d7f948728b27.webp?v=1714834047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b02139841354cd6b5ac26257c76572288699d0f_a045b289-4492-4d36-a1d7-439aebcbd28a.webp?v=1714834049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1752363da4f1eef01a1c840006ef556c4a2a61ff_11d26aa0-8c4e-4283-a64a-879318b6945e.webp?v=1714834051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/986f53d385c7408f0b0f163a362f08461ffd6a32_fe3c5620-ecf2-4e24-a866-7da8b29777df.webp?v=1714834053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25692ed736eda054de1009297fff080715d3638_e602f113-c6b6-4f0a-a23d-ce42434a26c8.webp?v=1714834055"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ce11c74f1e323d7da92aa17123bba98e7d6e1c_5e0ef918-18c3-4d5c-ac65-63463a36fde1.webp?v=1714834035","options":["color"],"media":[{"alt":null,"id":23884816679011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ce11c74f1e323d7da92aa17123bba98e7d6e1c_5e0ef918-18c3-4d5c-ac65-63463a36fde1.webp?v=1714834035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ce11c74f1e323d7da92aa17123bba98e7d6e1c_5e0ef918-18c3-4d5c-ac65-63463a36fde1.webp?v=1714834035","width":2000},{"alt":null,"id":23884817039459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696914972979281678d434fb81ff28d65d47613e_7460306a-2da9-4f9a-9b81-31302037a04c.webp?v=1714834038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/696914972979281678d434fb81ff28d65d47613e_7460306a-2da9-4f9a-9b81-31302037a04c.webp?v=1714834038","width":2000},{"alt":null,"id":23884817563747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5d4d35f07958e374966a24721190c28f7e84edd_47f55752-908a-431c-b1f5-721778377701.webp?v=1714834040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5d4d35f07958e374966a24721190c28f7e84edd_47f55752-908a-431c-b1f5-721778377701.webp?v=1714834040","width":2000},{"alt":null,"id":23884817956963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17bfee5a4d6c1e6cafb7f046856b18f642383140_918652de-320f-4be8-a6d7-67bb0040c695.webp?v=1714834042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17bfee5a4d6c1e6cafb7f046856b18f642383140_918652de-320f-4be8-a6d7-67bb0040c695.webp?v=1714834042","width":2000},{"alt":null,"id":23884818841699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09553fe0c731338ca51ffa7a7e12c5762795b41d_323fa7d6-3f16-4c6e-a040-500123692a05.webp?v=1714834044"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09553fe0c731338ca51ffa7a7e12c5762795b41d_323fa7d6-3f16-4c6e-a040-500123692a05.webp?v=1714834044","width":2000},{"alt":null,"id":23884819365987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b933ea5a1cf53c753a6747fafaf2366a692e244_038739ca-e292-456b-8e75-d7f948728b27.webp?v=1714834047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b933ea5a1cf53c753a6747fafaf2366a692e244_038739ca-e292-456b-8e75-d7f948728b27.webp?v=1714834047","width":2000},{"alt":null,"id":23884820381795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b02139841354cd6b5ac26257c76572288699d0f_a045b289-4492-4d36-a1d7-439aebcbd28a.webp?v=1714834049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b02139841354cd6b5ac26257c76572288699d0f_a045b289-4492-4d36-a1d7-439aebcbd28a.webp?v=1714834049","width":2000},{"alt":null,"id":23884820873315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1752363da4f1eef01a1c840006ef556c4a2a61ff_11d26aa0-8c4e-4283-a64a-879318b6945e.webp?v=1714834051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1752363da4f1eef01a1c840006ef556c4a2a61ff_11d26aa0-8c4e-4283-a64a-879318b6945e.webp?v=1714834051","width":2000},{"alt":null,"id":23884821364835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/986f53d385c7408f0b0f163a362f08461ffd6a32_fe3c5620-ecf2-4e24-a866-7da8b29777df.webp?v=1714834053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/986f53d385c7408f0b0f163a362f08461ffd6a32_fe3c5620-ecf2-4e24-a866-7da8b29777df.webp?v=1714834053","width":2000},{"alt":null,"id":23884821954659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25692ed736eda054de1009297fff080715d3638_e602f113-c6b6-4f0a-a23d-ce42434a26c8.webp?v=1714834055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25692ed736eda054de1009297fff080715d3638_e602f113-c6b6-4f0a-a23d-ce42434a26c8.webp?v=1714834055","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41895178829923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31479572004963,"product_id":7411121619043,"position":6,"created_at":"2024-05-04T22:47:27+08:00","updated_at":"2024-05-04T22:47:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b933ea5a1cf53c753a6747fafaf2366a692e244_038739ca-e292-456b-8e75-d7f948728b27.webp?v=1714834047","variant_ids":[41895178829923]},"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-PB53","featured_media":{"alt":null,"id":23884819365987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b933ea5a1cf53c753a6747fafaf2366a692e244_038739ca-e292-456b-8e75-d7f948728b27.webp?v=1714834047"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895179059299,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31479573643363,"product_id":7411121619043,"position":9,"created_at":"2024-05-04T22:47:33+08:00","updated_at":"2024-05-04T22:47:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/986f53d385c7408f0b0f163a362f08461ffd6a32_fe3c5620-ecf2-4e24-a866-7da8b29777df.webp?v=1714834053","variant_ids":[41895179059299]},"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-PB53","featured_media":{"alt":null,"id":23884821364835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/986f53d385c7408f0b0f163a362f08461ffd6a32_fe3c5620-ecf2-4e24-a866-7da8b29777df.webp?v=1714834053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41895178829923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31479572004963,"product_id":7411121619043,"position":6,"created_at":"2024-05-04T22:47:27+08:00","updated_at":"2024-05-04T22:47:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b933ea5a1cf53c753a6747fafaf2366a692e244_038739ca-e292-456b-8e75-d7f948728b27.webp?v=1714834047","variant_ids":[41895178829923]},"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-PB53","featured_media":{"alt":null,"id":23884819365987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b933ea5a1cf53c753a6747fafaf2366a692e244_038739ca-e292-456b-8e75-d7f948728b27.webp?v=1714834047"}},"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: "停產"
}