$product = {"id":7410964955235,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb57","description":null,"published_at":"2024-06-11T17:32:43+08:00","created_at":"2024-05-04T22:17:45+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":41893630574691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31479163748451,"product_id":7410964955235,"position":5,"created_at":"2024-05-04T22:17:56+08:00","updated_at":"2024-05-04T22:17:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f10e84ab0175d6f4a762611276a7a5733ffc997_f0cc9dcc-99db-4cd8-9e3b-963b99c405d8.webp?v=1714832276","variant_ids":[41893630574691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - 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-PB57","featured_media":{"alt":null,"id":23884410880099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f10e84ab0175d6f4a762611276a7a5733ffc997_f0cc9dcc-99db-4cd8-9e3b-963b99c405d8.webp?v=1714832276"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893630771299,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31479163224163,"product_id":7410964955235,"position":4,"created_at":"2024-05-04T22:17:54+08:00","updated_at":"2024-05-04T22:17:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e043cb608d994653c0c7ae9c5fc800d755648bd3_a3aacfe9-8575-4ec6-a735-178e3eee8edc.webp?v=1714832274","variant_ids":[41893630771299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - 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-PB57","featured_media":{"alt":null,"id":23884410421347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e043cb608d994653c0c7ae9c5fc800d755648bd3_a3aacfe9-8575-4ec6-a735-178e3eee8edc.webp?v=1714832274"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2366c47fe29e076ef1eb707072684027407b9344_42f0fb7f-1f11-46e1-b1c9-1806ed5c5b6d.webp?v=1714832267","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1340de7885e0e706f319284166ba9ce60cd73cd1_7730614f-1b2a-4b5b-ad12-c535adf28e1e.webp?v=1714832270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/709e43b68c59d906ea3b58eea1a06e3d0f718704_3e4090a1-4e4f-4cc2-8e35-42cfb375572c.webp?v=1714832272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e043cb608d994653c0c7ae9c5fc800d755648bd3_a3aacfe9-8575-4ec6-a735-178e3eee8edc.webp?v=1714832274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f10e84ab0175d6f4a762611276a7a5733ffc997_f0cc9dcc-99db-4cd8-9e3b-963b99c405d8.webp?v=1714832276","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e530fc26b4639ce04c6a53621960ddac4377891_d76d1a1a-8992-4ad3-bded-f29032b22fef.webp?v=1714832279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5741b37eb733f9ae7a993b41c35c827fefec95aa_7379a931-b344-444b-98dc-dd6d05260f13.webp?v=1714832281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5c7d7e947413259f35346f71e32d8fe2c032c25_cc45a781-7d43-42b7-ae73-142518fe0de9.webp?v=1714832283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e9a13cca89a589387efdddc2a40ec6d68702e52_325836e0-79d9-41f2-b2d0-a934c38c0e04.webp?v=1714832285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0da1e2098ac28a9db30ab728afa71c7566c5e0_eceb6ddd-747f-4b82-9706-41e435538428.webp?v=1714832288"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2366c47fe29e076ef1eb707072684027407b9344_42f0fb7f-1f11-46e1-b1c9-1806ed5c5b6d.webp?v=1714832267","options":["color"],"media":[{"alt":null,"id":23884408782947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2366c47fe29e076ef1eb707072684027407b9344_42f0fb7f-1f11-46e1-b1c9-1806ed5c5b6d.webp?v=1714832267"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2366c47fe29e076ef1eb707072684027407b9344_42f0fb7f-1f11-46e1-b1c9-1806ed5c5b6d.webp?v=1714832267","width":2000},{"alt":null,"id":23884409405539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1340de7885e0e706f319284166ba9ce60cd73cd1_7730614f-1b2a-4b5b-ad12-c535adf28e1e.webp?v=1714832270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1340de7885e0e706f319284166ba9ce60cd73cd1_7730614f-1b2a-4b5b-ad12-c535adf28e1e.webp?v=1714832270","width":2000},{"alt":null,"id":23884409897059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/709e43b68c59d906ea3b58eea1a06e3d0f718704_3e4090a1-4e4f-4cc2-8e35-42cfb375572c.webp?v=1714832272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/709e43b68c59d906ea3b58eea1a06e3d0f718704_3e4090a1-4e4f-4cc2-8e35-42cfb375572c.webp?v=1714832272","width":2000},{"alt":null,"id":23884410421347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e043cb608d994653c0c7ae9c5fc800d755648bd3_a3aacfe9-8575-4ec6-a735-178e3eee8edc.webp?v=1714832274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e043cb608d994653c0c7ae9c5fc800d755648bd3_a3aacfe9-8575-4ec6-a735-178e3eee8edc.webp?v=1714832274","width":2000},{"alt":null,"id":23884410880099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f10e84ab0175d6f4a762611276a7a5733ffc997_f0cc9dcc-99db-4cd8-9e3b-963b99c405d8.webp?v=1714832276"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f10e84ab0175d6f4a762611276a7a5733ffc997_f0cc9dcc-99db-4cd8-9e3b-963b99c405d8.webp?v=1714832276","width":2000},{"alt":null,"id":23884411207779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e530fc26b4639ce04c6a53621960ddac4377891_d76d1a1a-8992-4ad3-bded-f29032b22fef.webp?v=1714832279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e530fc26b4639ce04c6a53621960ddac4377891_d76d1a1a-8992-4ad3-bded-f29032b22fef.webp?v=1714832279","width":2000},{"alt":null,"id":23884411568227,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5741b37eb733f9ae7a993b41c35c827fefec95aa_7379a931-b344-444b-98dc-dd6d05260f13.webp?v=1714832281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5741b37eb733f9ae7a993b41c35c827fefec95aa_7379a931-b344-444b-98dc-dd6d05260f13.webp?v=1714832281","width":2000},{"alt":null,"id":23884412190819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5c7d7e947413259f35346f71e32d8fe2c032c25_cc45a781-7d43-42b7-ae73-142518fe0de9.webp?v=1714832283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5c7d7e947413259f35346f71e32d8fe2c032c25_cc45a781-7d43-42b7-ae73-142518fe0de9.webp?v=1714832283","width":2000},{"alt":null,"id":23884412649571,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e9a13cca89a589387efdddc2a40ec6d68702e52_325836e0-79d9-41f2-b2d0-a934c38c0e04.webp?v=1714832285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e9a13cca89a589387efdddc2a40ec6d68702e52_325836e0-79d9-41f2-b2d0-a934c38c0e04.webp?v=1714832285","width":2000},{"alt":null,"id":23884413042787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0da1e2098ac28a9db30ab728afa71c7566c5e0_eceb6ddd-747f-4b82-9706-41e435538428.webp?v=1714832288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0da1e2098ac28a9db30ab728afa71c7566c5e0_eceb6ddd-747f-4b82-9706-41e435538428.webp?v=1714832288","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41893630574691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31479163748451,"product_id":7410964955235,"position":5,"created_at":"2024-05-04T22:17:56+08:00","updated_at":"2024-05-04T22:17:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f10e84ab0175d6f4a762611276a7a5733ffc997_f0cc9dcc-99db-4cd8-9e3b-963b99c405d8.webp?v=1714832276","variant_ids":[41893630574691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - 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-PB57","featured_media":{"alt":null,"id":23884410880099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f10e84ab0175d6f4a762611276a7a5733ffc997_f0cc9dcc-99db-4cd8-9e3b-963b99c405d8.webp?v=1714832276"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893630771299,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31479163224163,"product_id":7410964955235,"position":4,"created_at":"2024-05-04T22:17:54+08:00","updated_at":"2024-05-04T22:17:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e043cb608d994653c0c7ae9c5fc800d755648bd3_a3aacfe9-8575-4ec6-a735-178e3eee8edc.webp?v=1714832274","variant_ids":[41893630771299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - 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-PB57","featured_media":{"alt":null,"id":23884410421347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e043cb608d994653c0c7ae9c5fc800d755648bd3_a3aacfe9-8575-4ec6-a735-178e3eee8edc.webp?v=1714832274"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41893630574691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31479163748451,"product_id":7410964955235,"position":5,"created_at":"2024-05-04T22:17:56+08:00","updated_at":"2024-05-04T22:17:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f10e84ab0175d6f4a762611276a7a5733ffc997_f0cc9dcc-99db-4cd8-9e3b-963b99c405d8.webp?v=1714832276","variant_ids":[41893630574691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列 - 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-PB57","featured_media":{"alt":null,"id":23884410880099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f10e84ab0175d6f4a762611276a7a5733ffc997_f0cc9dcc-99db-4cd8-9e3b-963b99c405d8.webp?v=1714832276"}},"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: "停產"
}