$product = {"id":7415042277475,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb97","description":null,"published_at":"2024-06-11T17:56:25+08:00","created_at":"2024-05-05T20:12:04+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 12 mini","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":41911253925987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31488007405667,"product_id":7415042277475,"position":8,"created_at":"2024-05-05T20:12:23+08:00","updated_at":"2024-05-05T20:12:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a5730342901d671edf5fcdc7187b3af150af1d3_604408dc-c4ec-4048-99bb-bf3d8396427a.webp?v=1714911143","variant_ids":[41911253925987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB97","featured_media":{"alt":null,"id":23893351759971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a5730342901d671edf5fcdc7187b3af150af1d3_604408dc-c4ec-4048-99bb-bf3d8396427a.webp?v=1714911143"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97df581db6bbdd3ca436508d1c0562ec6b802672_dcd5a365-fa9f-4914-8bd8-cf39348ffe86.webp?v=1714911127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/685afa121d17aea6d85473ae86ea188769b8024a_d3f369ac-e837-466a-a255-047c9a49a778.webp?v=1714911129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be8d7a75aa74d94a931f5623e00ec10470928f1_9cb0b76b-7b12-4bfb-bc65-594d9ac2e731.webp?v=1714911132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/566970d3f244615b12dfd4e78ed63e88b4783fed_79982388-26ea-41d2-9285-8ed900a0664c.webp?v=1714911134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84bfde14f14cb3f9c8d64b8d4854213adca3b2a3_2f5609fb-7e19-4da8-bfe0-927a6096f296.webp?v=1714911136","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec70df33c7edfc597ab6b95c33a163afe9c951ba_41e34e6b-182d-4e1c-a59c-49ffc0ea97c3.webp?v=1714911139","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c34a6b4dec05aab5c46b9ad02e2fbd4c325557_6423cfd3-5d59-4f40-a7eb-3beb477e9ee2.webp?v=1714911141","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a5730342901d671edf5fcdc7187b3af150af1d3_604408dc-c4ec-4048-99bb-bf3d8396427a.webp?v=1714911143","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0063793db464dfc0a68e2ecfa1a0691709e3a5f6_e1d4e7c0-9ee2-4bac-83c0-c28efec76fd8.webp?v=1714911146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a010f206aed27b29e687693d43d3cd17621917_bb27d7f3-b95b-4209-af3a-2e762bb2961d.webp?v=1714911148","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b48eac2d2f318edd2131b40c0689ee643ee9b61_951a7a5b-b81d-484d-a702-ea1317217363.webp?v=1714911151"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97df581db6bbdd3ca436508d1c0562ec6b802672_dcd5a365-fa9f-4914-8bd8-cf39348ffe86.webp?v=1714911127","options":["color"],"media":[{"alt":null,"id":23893347106915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97df581db6bbdd3ca436508d1c0562ec6b802672_dcd5a365-fa9f-4914-8bd8-cf39348ffe86.webp?v=1714911127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97df581db6bbdd3ca436508d1c0562ec6b802672_dcd5a365-fa9f-4914-8bd8-cf39348ffe86.webp?v=1714911127","width":2000},{"alt":null,"id":23893347532899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/685afa121d17aea6d85473ae86ea188769b8024a_d3f369ac-e837-466a-a255-047c9a49a778.webp?v=1714911129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/685afa121d17aea6d85473ae86ea188769b8024a_d3f369ac-e837-466a-a255-047c9a49a778.webp?v=1714911129","width":2000},{"alt":null,"id":23893348450403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be8d7a75aa74d94a931f5623e00ec10470928f1_9cb0b76b-7b12-4bfb-bc65-594d9ac2e731.webp?v=1714911132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be8d7a75aa74d94a931f5623e00ec10470928f1_9cb0b76b-7b12-4bfb-bc65-594d9ac2e731.webp?v=1714911132","width":2000},{"alt":null,"id":23893349236835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/566970d3f244615b12dfd4e78ed63e88b4783fed_79982388-26ea-41d2-9285-8ed900a0664c.webp?v=1714911134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/566970d3f244615b12dfd4e78ed63e88b4783fed_79982388-26ea-41d2-9285-8ed900a0664c.webp?v=1714911134","width":2000},{"alt":null,"id":23893349826659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84bfde14f14cb3f9c8d64b8d4854213adca3b2a3_2f5609fb-7e19-4da8-bfe0-927a6096f296.webp?v=1714911136"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84bfde14f14cb3f9c8d64b8d4854213adca3b2a3_2f5609fb-7e19-4da8-bfe0-927a6096f296.webp?v=1714911136","width":2000},{"alt":null,"id":23893350350947,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec70df33c7edfc597ab6b95c33a163afe9c951ba_41e34e6b-182d-4e1c-a59c-49ffc0ea97c3.webp?v=1714911139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec70df33c7edfc597ab6b95c33a163afe9c951ba_41e34e6b-182d-4e1c-a59c-49ffc0ea97c3.webp?v=1714911139","width":2000},{"alt":null,"id":23893351071843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c34a6b4dec05aab5c46b9ad02e2fbd4c325557_6423cfd3-5d59-4f40-a7eb-3beb477e9ee2.webp?v=1714911141"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c34a6b4dec05aab5c46b9ad02e2fbd4c325557_6423cfd3-5d59-4f40-a7eb-3beb477e9ee2.webp?v=1714911141","width":2000},{"alt":null,"id":23893351759971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a5730342901d671edf5fcdc7187b3af150af1d3_604408dc-c4ec-4048-99bb-bf3d8396427a.webp?v=1714911143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a5730342901d671edf5fcdc7187b3af150af1d3_604408dc-c4ec-4048-99bb-bf3d8396427a.webp?v=1714911143","width":2000},{"alt":null,"id":23893352153187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0063793db464dfc0a68e2ecfa1a0691709e3a5f6_e1d4e7c0-9ee2-4bac-83c0-c28efec76fd8.webp?v=1714911146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0063793db464dfc0a68e2ecfa1a0691709e3a5f6_e1d4e7c0-9ee2-4bac-83c0-c28efec76fd8.webp?v=1714911146","width":2000},{"alt":null,"id":23893352644707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a010f206aed27b29e687693d43d3cd17621917_bb27d7f3-b95b-4209-af3a-2e762bb2961d.webp?v=1714911148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a010f206aed27b29e687693d43d3cd17621917_bb27d7f3-b95b-4209-af3a-2e762bb2961d.webp?v=1714911148","width":2000},{"alt":null,"id":23893353332835,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b48eac2d2f318edd2131b40c0689ee643ee9b61_951a7a5b-b81d-484d-a702-ea1317217363.webp?v=1714911151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b48eac2d2f318edd2131b40c0689ee643ee9b61_951a7a5b-b81d-484d-a702-ea1317217363.webp?v=1714911151","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41911253925987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31488007405667,"product_id":7415042277475,"position":8,"created_at":"2024-05-05T20:12:23+08:00","updated_at":"2024-05-05T20:12:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a5730342901d671edf5fcdc7187b3af150af1d3_604408dc-c4ec-4048-99bb-bf3d8396427a.webp?v=1714911143","variant_ids":[41911253925987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB97","featured_media":{"alt":null,"id":23893351759971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a5730342901d671edf5fcdc7187b3af150af1d3_604408dc-c4ec-4048-99bb-bf3d8396427a.webp?v=1714911143"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41911253925987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31488007405667,"product_id":7415042277475,"position":8,"created_at":"2024-05-05T20:12:23+08:00","updated_at":"2024-05-05T20:12:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a5730342901d671edf5fcdc7187b3af150af1d3_604408dc-c4ec-4048-99bb-bf3d8396427a.webp?v=1714911143","variant_ids":[41911253925987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB97","featured_media":{"alt":null,"id":23893351759971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a5730342901d671edf5fcdc7187b3af150af1d3_604408dc-c4ec-4048-99bb-bf3d8396427a.webp?v=1714911143"}},"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: "停產"
}