$product = {"id":7414480633955,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - R2D2-剪紙系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb57","description":null,"published_at":"2024-06-11T17:51:34+08:00","created_at":"2024-05-05T14:27:19+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":41906805571683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31485593878627,"product_id":7414480633955,"position":6,"created_at":"2024-05-05T14:27:32+08:00","updated_at":"2024-05-05T14:27:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b37eaea5ec567c53d7b8d7bcaa70098e884de163_74a7217d-6a79-4ab7-9713-1a1735bc81c0.webp?v=1714890452","variant_ids":[41906805571683]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB57","featured_media":{"alt":null,"id":23890910249059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b37eaea5ec567c53d7b8d7bcaa70098e884de163_74a7217d-6a79-4ab7-9713-1a1735bc81c0.webp?v=1714890452"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906806030435,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31485597745251,"product_id":7414480633955,"position":8,"created_at":"2024-05-05T14:27:36+08:00","updated_at":"2024-05-05T14:27:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f6868dc8d7c19d354fcb354f81cbaa5e49b216_669e0289-e174-43b4-95cf-6d6c605f0e2f.webp?v=1714890456","variant_ids":[41906806030435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB01232J5-PB57","featured_media":{"alt":null,"id":23890914476131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f6868dc8d7c19d354fcb354f81cbaa5e49b216_669e0289-e174-43b4-95cf-6d6c605f0e2f.webp?v=1714890456"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1207eb0b6b9850d2350b8e8f029bdd0387ee483_021f2c26-a70a-48e6-9b70-40cca5d607a0.webp?v=1714890441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f13ebc6b6751a3482fece3828af23a1ed079ae4_0106476d-5d91-4702-9c6c-ba8d61806392.webp?v=1714890443","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd535765495f5b20708b402d08d781a7882117ec_5c0dc1e6-53f3-4370-b034-717dec568520.webp?v=1714890445","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1306781b3ddc9114f90e7a7087e2ce37e0f049e7_cf892449-a69a-4f43-80c3-2775dd76669d.webp?v=1714890448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4308c90e71af42df2b36ba388ffbbe67dec417f1_9cd9a6d8-ab36-4ecc-80f6-09b655986e5c.webp?v=1714890450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b37eaea5ec567c53d7b8d7bcaa70098e884de163_74a7217d-6a79-4ab7-9713-1a1735bc81c0.webp?v=1714890452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/873707ea9ef57209244c0f5fdf4ace7a699245d9_23c5f18b-e493-47b3-8cce-2415c3ff4e7c.webp?v=1714890454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f6868dc8d7c19d354fcb354f81cbaa5e49b216_669e0289-e174-43b4-95cf-6d6c605f0e2f.webp?v=1714890456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b91e24ec7e79131a5626f46a1dd1064bf24b73af_3615be36-7f14-42c6-9b2f-eac43eb2f656.webp?v=1714890459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dafbfc236277352e4cd7d2e7063fe13e1b80907f_8684bff1-da87-4320-bada-36ca995d918b.webp?v=1714890461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8055c252535688d4ebc29fdd1b36fec40a1cd7_fb6f7c87-7610-48dc-ac45-9b8417e89df0.webp?v=1714890463"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1207eb0b6b9850d2350b8e8f029bdd0387ee483_021f2c26-a70a-48e6-9b70-40cca5d607a0.webp?v=1714890441","options":["color"],"media":[{"alt":null,"id":23890900484195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1207eb0b6b9850d2350b8e8f029bdd0387ee483_021f2c26-a70a-48e6-9b70-40cca5d607a0.webp?v=1714890441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1207eb0b6b9850d2350b8e8f029bdd0387ee483_021f2c26-a70a-48e6-9b70-40cca5d607a0.webp?v=1714890441","width":2000},{"alt":null,"id":23890902253667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f13ebc6b6751a3482fece3828af23a1ed079ae4_0106476d-5d91-4702-9c6c-ba8d61806392.webp?v=1714890443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f13ebc6b6751a3482fece3828af23a1ed079ae4_0106476d-5d91-4702-9c6c-ba8d61806392.webp?v=1714890443","width":2000},{"alt":null,"id":23890904219747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd535765495f5b20708b402d08d781a7882117ec_5c0dc1e6-53f3-4370-b034-717dec568520.webp?v=1714890445"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd535765495f5b20708b402d08d781a7882117ec_5c0dc1e6-53f3-4370-b034-717dec568520.webp?v=1714890445","width":2000},{"alt":null,"id":23890906415203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1306781b3ddc9114f90e7a7087e2ce37e0f049e7_cf892449-a69a-4f43-80c3-2775dd76669d.webp?v=1714890448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1306781b3ddc9114f90e7a7087e2ce37e0f049e7_cf892449-a69a-4f43-80c3-2775dd76669d.webp?v=1714890448","width":2000},{"alt":null,"id":23890908315747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4308c90e71af42df2b36ba388ffbbe67dec417f1_9cd9a6d8-ab36-4ecc-80f6-09b655986e5c.webp?v=1714890450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4308c90e71af42df2b36ba388ffbbe67dec417f1_9cd9a6d8-ab36-4ecc-80f6-09b655986e5c.webp?v=1714890450","width":2000},{"alt":null,"id":23890910249059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b37eaea5ec567c53d7b8d7bcaa70098e884de163_74a7217d-6a79-4ab7-9713-1a1735bc81c0.webp?v=1714890452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b37eaea5ec567c53d7b8d7bcaa70098e884de163_74a7217d-6a79-4ab7-9713-1a1735bc81c0.webp?v=1714890452","width":2000},{"alt":null,"id":23890912313443,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/873707ea9ef57209244c0f5fdf4ace7a699245d9_23c5f18b-e493-47b3-8cce-2415c3ff4e7c.webp?v=1714890454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/873707ea9ef57209244c0f5fdf4ace7a699245d9_23c5f18b-e493-47b3-8cce-2415c3ff4e7c.webp?v=1714890454","width":2000},{"alt":null,"id":23890914476131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f6868dc8d7c19d354fcb354f81cbaa5e49b216_669e0289-e174-43b4-95cf-6d6c605f0e2f.webp?v=1714890456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f6868dc8d7c19d354fcb354f81cbaa5e49b216_669e0289-e174-43b4-95cf-6d6c605f0e2f.webp?v=1714890456","width":2000},{"alt":null,"id":23890916540515,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b91e24ec7e79131a5626f46a1dd1064bf24b73af_3615be36-7f14-42c6-9b2f-eac43eb2f656.webp?v=1714890459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b91e24ec7e79131a5626f46a1dd1064bf24b73af_3615be36-7f14-42c6-9b2f-eac43eb2f656.webp?v=1714890459","width":2000},{"alt":null,"id":23890918703203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dafbfc236277352e4cd7d2e7063fe13e1b80907f_8684bff1-da87-4320-bada-36ca995d918b.webp?v=1714890461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dafbfc236277352e4cd7d2e7063fe13e1b80907f_8684bff1-da87-4320-bada-36ca995d918b.webp?v=1714890461","width":2000},{"alt":null,"id":23890920996963,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8055c252535688d4ebc29fdd1b36fec40a1cd7_fb6f7c87-7610-48dc-ac45-9b8417e89df0.webp?v=1714890463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c8055c252535688d4ebc29fdd1b36fec40a1cd7_fb6f7c87-7610-48dc-ac45-9b8417e89df0.webp?v=1714890463","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906805571683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31485593878627,"product_id":7414480633955,"position":6,"created_at":"2024-05-05T14:27:32+08:00","updated_at":"2024-05-05T14:27:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b37eaea5ec567c53d7b8d7bcaa70098e884de163_74a7217d-6a79-4ab7-9713-1a1735bc81c0.webp?v=1714890452","variant_ids":[41906805571683]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB57","featured_media":{"alt":null,"id":23890910249059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b37eaea5ec567c53d7b8d7bcaa70098e884de163_74a7217d-6a79-4ab7-9713-1a1735bc81c0.webp?v=1714890452"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906806030435,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31485597745251,"product_id":7414480633955,"position":8,"created_at":"2024-05-05T14:27:36+08:00","updated_at":"2024-05-05T14:27:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f6868dc8d7c19d354fcb354f81cbaa5e49b216_669e0289-e174-43b4-95cf-6d6c605f0e2f.webp?v=1714890456","variant_ids":[41906806030435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB01232J5-PB57","featured_media":{"alt":null,"id":23890914476131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f6868dc8d7c19d354fcb354f81cbaa5e49b216_669e0289-e174-43b4-95cf-6d6c605f0e2f.webp?v=1714890456"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906805571683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB57","requires_shipping":true,"taxable":true,"featured_image":{"id":31485593878627,"product_id":7414480633955,"position":6,"created_at":"2024-05-05T14:27:32+08:00","updated_at":"2024-05-05T14:27:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b37eaea5ec567c53d7b8d7bcaa70098e884de163_74a7217d-6a79-4ab7-9713-1a1735bc81c0.webp?v=1714890452","variant_ids":[41906805571683]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 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":"MPB0123224-PB57","featured_media":{"alt":null,"id":23890910249059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b37eaea5ec567c53d7b8d7bcaa70098e884de163_74a7217d-6a79-4ab7-9713-1a1735bc81c0.webp?v=1714890452"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}