$product = {"id":7415016980579,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-pb82","description":null,"published_at":"2024-06-11T17:55:44+08:00","created_at":"2024-05-05T20:07:02+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 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":41910974644323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31487935774819,"product_id":7415016980579,"position":9,"created_at":"2024-05-05T20:07:23+08:00","updated_at":"2024-05-05T20:07:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e05e8902ea61314cd752775467988b90135905_59a5cc88-c0bf-4bca-8578-3b71ed31fda4.webp?v=1714910843","variant_ids":[41910974644323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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":"MPB0118724-PB82","featured_media":{"alt":null,"id":23893279801443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e05e8902ea61314cd752775467988b90135905_59a5cc88-c0bf-4bca-8578-3b71ed31fda4.webp?v=1714910843"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f7facaa27e955373148399fab57bb099b5f266_5eb70015-e486-4966-a9f9-858ef33ce84f.webp?v=1714910824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da69d59b0f7736e56e12961dad56f6941732609f_a6ad1d4d-3f0e-4c23-a2a0-0d85da4868e5.webp?v=1714910827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdc12f6d39f1517ba0ffb63c8c5677367e161fb_1bcd5bfb-183b-423d-b8bb-1482e3f5202c.webp?v=1714910829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81faa6f55b4f4f144153d58d4f48f540b6c755_73b27817-0875-4ffd-8172-5363aadf9ba6.webp?v=1714910831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f62981544a7a08cc78a3e86425f5a4e87aacee1_b5bb68c9-9b99-4fec-ab5b-dddd2a3ea6da.webp?v=1714910834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/148cd19d1483f286b4dc185483a8a734387e94e3_45c51c3c-5dfe-4710-b10b-6bcc37ce7d80.webp?v=1714910836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88030a0dcfcc354477cdad9ec886769291d069b1_998b880b-b191-43e6-a1de-db2de205fa11.webp?v=1714910838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550a938b0f7c94e59be2d18586200c9ebc43339c_fa7edc60-bbe5-49f8-a1c3-2c613a3151fe.webp?v=1714910841","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e05e8902ea61314cd752775467988b90135905_59a5cc88-c0bf-4bca-8578-3b71ed31fda4.webp?v=1714910843","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ced1cd92fda2e4b6e9b453ce92c458e3d8192f8c_5d41c14e-670b-4c6e-bfd1-cd58fe4bfb9e.webp?v=1714910845"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f7facaa27e955373148399fab57bb099b5f266_5eb70015-e486-4966-a9f9-858ef33ce84f.webp?v=1714910824","options":["color"],"media":[{"alt":null,"id":23893275246691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f7facaa27e955373148399fab57bb099b5f266_5eb70015-e486-4966-a9f9-858ef33ce84f.webp?v=1714910824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f7facaa27e955373148399fab57bb099b5f266_5eb70015-e486-4966-a9f9-858ef33ce84f.webp?v=1714910824","width":2000},{"alt":null,"id":23893275705443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da69d59b0f7736e56e12961dad56f6941732609f_a6ad1d4d-3f0e-4c23-a2a0-0d85da4868e5.webp?v=1714910827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da69d59b0f7736e56e12961dad56f6941732609f_a6ad1d4d-3f0e-4c23-a2a0-0d85da4868e5.webp?v=1714910827","width":2000},{"alt":null,"id":23893276262499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdc12f6d39f1517ba0ffb63c8c5677367e161fb_1bcd5bfb-183b-423d-b8bb-1482e3f5202c.webp?v=1714910829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdc12f6d39f1517ba0ffb63c8c5677367e161fb_1bcd5bfb-183b-423d-b8bb-1482e3f5202c.webp?v=1714910829","width":2000},{"alt":null,"id":23893277016163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81faa6f55b4f4f144153d58d4f48f540b6c755_73b27817-0875-4ffd-8172-5363aadf9ba6.webp?v=1714910831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81faa6f55b4f4f144153d58d4f48f540b6c755_73b27817-0875-4ffd-8172-5363aadf9ba6.webp?v=1714910831","width":2000},{"alt":null,"id":23893277409379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f62981544a7a08cc78a3e86425f5a4e87aacee1_b5bb68c9-9b99-4fec-ab5b-dddd2a3ea6da.webp?v=1714910834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f62981544a7a08cc78a3e86425f5a4e87aacee1_b5bb68c9-9b99-4fec-ab5b-dddd2a3ea6da.webp?v=1714910834","width":2000},{"alt":null,"id":23893278261347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/148cd19d1483f286b4dc185483a8a734387e94e3_45c51c3c-5dfe-4710-b10b-6bcc37ce7d80.webp?v=1714910836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/148cd19d1483f286b4dc185483a8a734387e94e3_45c51c3c-5dfe-4710-b10b-6bcc37ce7d80.webp?v=1714910836","width":2000},{"alt":null,"id":23893278621795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88030a0dcfcc354477cdad9ec886769291d069b1_998b880b-b191-43e6-a1de-db2de205fa11.webp?v=1714910838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88030a0dcfcc354477cdad9ec886769291d069b1_998b880b-b191-43e6-a1de-db2de205fa11.webp?v=1714910838","width":2000},{"alt":null,"id":23893279473763,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550a938b0f7c94e59be2d18586200c9ebc43339c_fa7edc60-bbe5-49f8-a1c3-2c613a3151fe.webp?v=1714910841"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550a938b0f7c94e59be2d18586200c9ebc43339c_fa7edc60-bbe5-49f8-a1c3-2c613a3151fe.webp?v=1714910841","width":2000},{"alt":null,"id":23893279801443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e05e8902ea61314cd752775467988b90135905_59a5cc88-c0bf-4bca-8578-3b71ed31fda4.webp?v=1714910843"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e05e8902ea61314cd752775467988b90135905_59a5cc88-c0bf-4bca-8578-3b71ed31fda4.webp?v=1714910843","width":2000},{"alt":null,"id":23893280522339,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ced1cd92fda2e4b6e9b453ce92c458e3d8192f8c_5d41c14e-670b-4c6e-bfd1-cd58fe4bfb9e.webp?v=1714910845"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ced1cd92fda2e4b6e9b453ce92c458e3d8192f8c_5d41c14e-670b-4c6e-bfd1-cd58fe4bfb9e.webp?v=1714910845","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41910974644323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31487935774819,"product_id":7415016980579,"position":9,"created_at":"2024-05-05T20:07:23+08:00","updated_at":"2024-05-05T20:07:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e05e8902ea61314cd752775467988b90135905_59a5cc88-c0bf-4bca-8578-3b71ed31fda4.webp?v=1714910843","variant_ids":[41910974644323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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":"MPB0118724-PB82","featured_media":{"alt":null,"id":23893279801443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e05e8902ea61314cd752775467988b90135905_59a5cc88-c0bf-4bca-8578-3b71ed31fda4.webp?v=1714910843"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41910974644323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB82","requires_shipping":true,"taxable":true,"featured_image":{"id":31487935774819,"product_id":7415016980579,"position":9,"created_at":"2024-05-05T20:07:23+08:00","updated_at":"2024-05-05T20:07:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e05e8902ea61314cd752775467988b90135905_59a5cc88-c0bf-4bca-8578-3b71ed31fda4.webp?v=1714910843","variant_ids":[41910974644323]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - The Adventures of R2-D2 \u0026 C-3PO - 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":"MPB0118724-PB82","featured_media":{"alt":null,"id":23893279801443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e05e8902ea61314cd752775467988b90135905_59a5cc88-c0bf-4bca-8578-3b71ed31fda4.webp?v=1714910843"}},"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: "停產"
}