$product = {"id":7407457861731,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術","handle":"iphone-15-plus-mod-nx-printable-pb34","description":null,"published_at":"2024-06-11T16:16:33+08:00","created_at":"2024-05-03T09:52:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 15 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41875347243107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31469632028771,"product_id":7407457861731,"position":2,"created_at":"2024-05-03T09:52:56+08:00","updated_at":"2024-05-03T09:52:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f3c1e5ce043b29ed576219f775cc4a12d50b8f_550b0ceb-7145-4f56-9145-6527201c5341.webp?v=1714701176","variant_ids":[41875347243107]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129624-PB34","featured_media":{"alt":null,"id":23874533261411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f3c1e5ce043b29ed576219f775cc4a12d50b8f_550b0ceb-7145-4f56-9145-6527201c5341.webp?v=1714701176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875347374179,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31469634814051,"product_id":7407457861731,"position":7,"created_at":"2024-05-03T09:53:07+08:00","updated_at":"2024-05-03T09:53:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d9e7ff2d2d4f5d9cef3c0c96e633f1c76af856_e06824f7-0049-4844-9de7-419b49e544d7.webp?v=1714701187","variant_ids":[41875347374179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129657-PB34","featured_media":{"alt":null,"id":23874536308835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d9e7ff2d2d4f5d9cef3c0c96e633f1c76af856_e06824f7-0049-4844-9de7-419b49e544d7.webp?v=1714701187"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f8c0f5a15f2d20d28d1e2c09f0cebce0234443_a34762bf-7dce-4e13-87a7-e793604763ae.webp?v=1714701174","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f3c1e5ce043b29ed576219f775cc4a12d50b8f_550b0ceb-7145-4f56-9145-6527201c5341.webp?v=1714701176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bed7eb3189bd44f8cf2f3e4575d292f9db68c3f1_ec91eb2a-a2b5-4ef8-8a24-ac3d86ee7509.webp?v=1714701178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d537242dde5ba6dcf277863e6b92657a519478f3_b83f32db-7901-4411-8b40-089e3e9c2b22.webp?v=1714701180","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61eca815d2222d7ab6a07474924cfe39fb1cd441_db1169e1-adfc-432c-9cbb-4ebbdb340a47.webp?v=1714701183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f25b90411306fdd149da64db5e6ce6ac5f4b04_7b6eec26-027c-4965-a4c2-1374b4902363.webp?v=1714701185","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d9e7ff2d2d4f5d9cef3c0c96e633f1c76af856_e06824f7-0049-4844-9de7-419b49e544d7.webp?v=1714701187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddceb2344aefb5b5211bcdefbcd6277f2d381959_c291336a-2399-4fdb-9b0e-88ec6c4d744a.webp?v=1714701190","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce3b538da031a6d1746b3b46f3331117c8ff2624_078d025d-73d5-4a55-b8b4-4a2f1880c458.webp?v=1714701192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587a12aaed6075c842ca75c4056c50059a4ebf11_13d6c10b-e191-4b89-a962-daaf7e640661.webp?v=1714701194"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f8c0f5a15f2d20d28d1e2c09f0cebce0234443_a34762bf-7dce-4e13-87a7-e793604763ae.webp?v=1714701174","options":["color"],"media":[{"alt":null,"id":23874532868195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f8c0f5a15f2d20d28d1e2c09f0cebce0234443_a34762bf-7dce-4e13-87a7-e793604763ae.webp?v=1714701174"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f8c0f5a15f2d20d28d1e2c09f0cebce0234443_a34762bf-7dce-4e13-87a7-e793604763ae.webp?v=1714701174","width":2000},{"alt":null,"id":23874533261411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f3c1e5ce043b29ed576219f775cc4a12d50b8f_550b0ceb-7145-4f56-9145-6527201c5341.webp?v=1714701176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f3c1e5ce043b29ed576219f775cc4a12d50b8f_550b0ceb-7145-4f56-9145-6527201c5341.webp?v=1714701176","width":2000},{"alt":null,"id":23874533621859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bed7eb3189bd44f8cf2f3e4575d292f9db68c3f1_ec91eb2a-a2b5-4ef8-8a24-ac3d86ee7509.webp?v=1714701178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bed7eb3189bd44f8cf2f3e4575d292f9db68c3f1_ec91eb2a-a2b5-4ef8-8a24-ac3d86ee7509.webp?v=1714701178","width":2000},{"alt":null,"id":23874534080611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d537242dde5ba6dcf277863e6b92657a519478f3_b83f32db-7901-4411-8b40-089e3e9c2b22.webp?v=1714701180"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d537242dde5ba6dcf277863e6b92657a519478f3_b83f32db-7901-4411-8b40-089e3e9c2b22.webp?v=1714701180","width":2000},{"alt":null,"id":23874534998115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61eca815d2222d7ab6a07474924cfe39fb1cd441_db1169e1-adfc-432c-9cbb-4ebbdb340a47.webp?v=1714701183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61eca815d2222d7ab6a07474924cfe39fb1cd441_db1169e1-adfc-432c-9cbb-4ebbdb340a47.webp?v=1714701183","width":2000},{"alt":null,"id":23874535522403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f25b90411306fdd149da64db5e6ce6ac5f4b04_7b6eec26-027c-4965-a4c2-1374b4902363.webp?v=1714701185"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f25b90411306fdd149da64db5e6ce6ac5f4b04_7b6eec26-027c-4965-a4c2-1374b4902363.webp?v=1714701185","width":2000},{"alt":null,"id":23874536308835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d9e7ff2d2d4f5d9cef3c0c96e633f1c76af856_e06824f7-0049-4844-9de7-419b49e544d7.webp?v=1714701187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d9e7ff2d2d4f5d9cef3c0c96e633f1c76af856_e06824f7-0049-4844-9de7-419b49e544d7.webp?v=1714701187","width":2000},{"alt":null,"id":23874537324643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddceb2344aefb5b5211bcdefbcd6277f2d381959_c291336a-2399-4fdb-9b0e-88ec6c4d744a.webp?v=1714701190"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddceb2344aefb5b5211bcdefbcd6277f2d381959_c291336a-2399-4fdb-9b0e-88ec6c4d744a.webp?v=1714701190","width":2000},{"alt":null,"id":23874538045539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce3b538da031a6d1746b3b46f3331117c8ff2624_078d025d-73d5-4a55-b8b4-4a2f1880c458.webp?v=1714701192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce3b538da031a6d1746b3b46f3331117c8ff2624_078d025d-73d5-4a55-b8b4-4a2f1880c458.webp?v=1714701192","width":2000},{"alt":null,"id":23874538766435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587a12aaed6075c842ca75c4056c50059a4ebf11_13d6c10b-e191-4b89-a962-daaf7e640661.webp?v=1714701194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587a12aaed6075c842ca75c4056c50059a4ebf11_13d6c10b-e191-4b89-a962-daaf7e640661.webp?v=1714701194","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41875347243107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31469632028771,"product_id":7407457861731,"position":2,"created_at":"2024-05-03T09:52:56+08:00","updated_at":"2024-05-03T09:52:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f3c1e5ce043b29ed576219f775cc4a12d50b8f_550b0ceb-7145-4f56-9145-6527201c5341.webp?v=1714701176","variant_ids":[41875347243107]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129624-PB34","featured_media":{"alt":null,"id":23874533261411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f3c1e5ce043b29ed576219f775cc4a12d50b8f_550b0ceb-7145-4f56-9145-6527201c5341.webp?v=1714701176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875347374179,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31469634814051,"product_id":7407457861731,"position":7,"created_at":"2024-05-03T09:53:07+08:00","updated_at":"2024-05-03T09:53:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d9e7ff2d2d4f5d9cef3c0c96e633f1c76af856_e06824f7-0049-4844-9de7-419b49e544d7.webp?v=1714701187","variant_ids":[41875347374179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129657-PB34","featured_media":{"alt":null,"id":23874536308835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d9e7ff2d2d4f5d9cef3c0c96e633f1c76af856_e06824f7-0049-4844-9de7-419b49e544d7.webp?v=1714701187"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41875347243107,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31469632028771,"product_id":7407457861731,"position":2,"created_at":"2024-05-03T09:52:56+08:00","updated_at":"2024-05-03T09:52:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f3c1e5ce043b29ed576219f775cc4a12d50b8f_550b0ceb-7145-4f56-9145-6527201c5341.webp?v=1714701176","variant_ids":[41875347243107]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0129624-PB34","featured_media":{"alt":null,"id":23874533261411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f3c1e5ce043b29ed576219f775cc4a12d50b8f_550b0ceb-7145-4f56-9145-6527201c5341.webp?v=1714701176"}},"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: "停產"
}