$product = {"id":7414007857251,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb20","description":null,"published_at":"2024-06-11T17:47:33+08:00","created_at":"2024-05-05T13:59:52+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 13 Pro Max","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":41903263187043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31484448735331,"product_id":7414007857251,"position":11,"created_at":"2024-05-05T14:00:19+08:00","updated_at":"2024-05-05T14:00:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7a2044d2e40c0e6e1238754011efe8aa0c8e00_2853137b-2f9a-4fcd-894e-3dc8fd6df924.webp?v=1714888819","variant_ids":[41903263187043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB20","featured_media":{"alt":null,"id":23889742790755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7a2044d2e40c0e6e1238754011efe8aa0c8e00_2853137b-2f9a-4fcd-894e-3dc8fd6df924.webp?v=1714888819"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903263547491,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31484447588451,"product_id":7414007857251,"position":9,"created_at":"2024-05-05T14:00:14+08:00","updated_at":"2024-05-05T14:00:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b2f0778b7bab29019d84e136b81bd54c123aa37_3a2c2c86-def8-44e5-95d3-f992d323db98.webp?v=1714888814","variant_ids":[41903263547491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB01232J5-PB20","featured_media":{"alt":null,"id":23889741643875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b2f0778b7bab29019d84e136b81bd54c123aa37_3a2c2c86-def8-44e5-95d3-f992d323db98.webp?v=1714888814"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a530585c25ecbdf928aba2441330ed80f2b29ffe_382a1d3f-43f5-4a11-8154-8cd67cebd76a.webp?v=1714888795","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3c140f8299f72be6de2b290d7e633872a41dee_af0d209f-9e54-4f7e-96b0-6912b35631f5.webp?v=1714888797","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b7fa2603032707a34614473ae4f4e85f0916a4b_2a1a95de-bf9c-47ae-b447-e1047d97ae2e.webp?v=1714888799","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9af633ef0d696e97f6d09e5e24fb20833ff383f0_28b153b3-06e6-4575-b981-dacf8555273f.webp?v=1714888802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd1e27b14c5da4e109d2b21705e237141cbae9c8_e3392522-7187-49d8-8ff0-ed8f4012b857.webp?v=1714888804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9684732c23f28a3d5633681082abd383b6a8a2f7_e523476b-96d3-4b8c-bf65-630d06915258.webp?v=1714888806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95f7d16f2c5beb787742529b6f2b65191a4948e_f9105119-f0ec-4973-91ed-132de703fab0.webp?v=1714888809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60aa9c35d43d23765855bdd63aa01e825521698a_4ce2dd82-c764-4805-8605-526c21d04484.webp?v=1714888811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b2f0778b7bab29019d84e136b81bd54c123aa37_3a2c2c86-def8-44e5-95d3-f992d323db98.webp?v=1714888814","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab1711c5c903f3ec464a988ef2da06b73a89bc9_3f91e406-a875-4612-8fa0-ff7f14f4e3b5.webp?v=1714888816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7a2044d2e40c0e6e1238754011efe8aa0c8e00_2853137b-2f9a-4fcd-894e-3dc8fd6df924.webp?v=1714888819"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a530585c25ecbdf928aba2441330ed80f2b29ffe_382a1d3f-43f5-4a11-8154-8cd67cebd76a.webp?v=1714888795","options":["color"],"media":[{"alt":null,"id":23889737613411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a530585c25ecbdf928aba2441330ed80f2b29ffe_382a1d3f-43f5-4a11-8154-8cd67cebd76a.webp?v=1714888795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a530585c25ecbdf928aba2441330ed80f2b29ffe_382a1d3f-43f5-4a11-8154-8cd67cebd76a.webp?v=1714888795","width":2000},{"alt":null,"id":23889738006627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3c140f8299f72be6de2b290d7e633872a41dee_af0d209f-9e54-4f7e-96b0-6912b35631f5.webp?v=1714888797"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3c140f8299f72be6de2b290d7e633872a41dee_af0d209f-9e54-4f7e-96b0-6912b35631f5.webp?v=1714888797","width":2000},{"alt":null,"id":23889738432611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b7fa2603032707a34614473ae4f4e85f0916a4b_2a1a95de-bf9c-47ae-b447-e1047d97ae2e.webp?v=1714888799"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b7fa2603032707a34614473ae4f4e85f0916a4b_2a1a95de-bf9c-47ae-b447-e1047d97ae2e.webp?v=1714888799","width":2000},{"alt":null,"id":23889739087971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9af633ef0d696e97f6d09e5e24fb20833ff383f0_28b153b3-06e6-4575-b981-dacf8555273f.webp?v=1714888802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9af633ef0d696e97f6d09e5e24fb20833ff383f0_28b153b3-06e6-4575-b981-dacf8555273f.webp?v=1714888802","width":2000},{"alt":null,"id":23889739546723,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd1e27b14c5da4e109d2b21705e237141cbae9c8_e3392522-7187-49d8-8ff0-ed8f4012b857.webp?v=1714888804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd1e27b14c5da4e109d2b21705e237141cbae9c8_e3392522-7187-49d8-8ff0-ed8f4012b857.webp?v=1714888804","width":2000},{"alt":null,"id":23889740234851,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9684732c23f28a3d5633681082abd383b6a8a2f7_e523476b-96d3-4b8c-bf65-630d06915258.webp?v=1714888806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9684732c23f28a3d5633681082abd383b6a8a2f7_e523476b-96d3-4b8c-bf65-630d06915258.webp?v=1714888806","width":2000},{"alt":null,"id":23889740759139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95f7d16f2c5beb787742529b6f2b65191a4948e_f9105119-f0ec-4973-91ed-132de703fab0.webp?v=1714888809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95f7d16f2c5beb787742529b6f2b65191a4948e_f9105119-f0ec-4973-91ed-132de703fab0.webp?v=1714888809","width":2000},{"alt":null,"id":23889741283427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60aa9c35d43d23765855bdd63aa01e825521698a_4ce2dd82-c764-4805-8605-526c21d04484.webp?v=1714888811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60aa9c35d43d23765855bdd63aa01e825521698a_4ce2dd82-c764-4805-8605-526c21d04484.webp?v=1714888811","width":2000},{"alt":null,"id":23889741643875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b2f0778b7bab29019d84e136b81bd54c123aa37_3a2c2c86-def8-44e5-95d3-f992d323db98.webp?v=1714888814"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b2f0778b7bab29019d84e136b81bd54c123aa37_3a2c2c86-def8-44e5-95d3-f992d323db98.webp?v=1714888814","width":2000},{"alt":null,"id":23889742364771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab1711c5c903f3ec464a988ef2da06b73a89bc9_3f91e406-a875-4612-8fa0-ff7f14f4e3b5.webp?v=1714888816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ab1711c5c903f3ec464a988ef2da06b73a89bc9_3f91e406-a875-4612-8fa0-ff7f14f4e3b5.webp?v=1714888816","width":2000},{"alt":null,"id":23889742790755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7a2044d2e40c0e6e1238754011efe8aa0c8e00_2853137b-2f9a-4fcd-894e-3dc8fd6df924.webp?v=1714888819"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7a2044d2e40c0e6e1238754011efe8aa0c8e00_2853137b-2f9a-4fcd-894e-3dc8fd6df924.webp?v=1714888819","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903263187043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31484448735331,"product_id":7414007857251,"position":11,"created_at":"2024-05-05T14:00:19+08:00","updated_at":"2024-05-05T14:00:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7a2044d2e40c0e6e1238754011efe8aa0c8e00_2853137b-2f9a-4fcd-894e-3dc8fd6df924.webp?v=1714888819","variant_ids":[41903263187043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB20","featured_media":{"alt":null,"id":23889742790755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7a2044d2e40c0e6e1238754011efe8aa0c8e00_2853137b-2f9a-4fcd-894e-3dc8fd6df924.webp?v=1714888819"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903263547491,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31484447588451,"product_id":7414007857251,"position":9,"created_at":"2024-05-05T14:00:14+08:00","updated_at":"2024-05-05T14:00:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b2f0778b7bab29019d84e136b81bd54c123aa37_3a2c2c86-def8-44e5-95d3-f992d323db98.webp?v=1714888814","variant_ids":[41903263547491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB01232J5-PB20","featured_media":{"alt":null,"id":23889741643875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b2f0778b7bab29019d84e136b81bd54c123aa37_3a2c2c86-def8-44e5-95d3-f992d323db98.webp?v=1714888814"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903263187043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31484448735331,"product_id":7414007857251,"position":11,"created_at":"2024-05-05T14:00:19+08:00","updated_at":"2024-05-05T14:00:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7a2044d2e40c0e6e1238754011efe8aa0c8e00_2853137b-2f9a-4fcd-894e-3dc8fd6df924.webp?v=1714888819","variant_ids":[41903263187043]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB20","featured_media":{"alt":null,"id":23889742790755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7a2044d2e40c0e6e1238754011efe8aa0c8e00_2853137b-2f9a-4fcd-894e-3dc8fd6df924.webp?v=1714888819"}},"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: "停產"
}