$product = {"id":7415077273699,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb79","description":null,"published_at":"2024-06-11T17:57:21+08:00","created_at":"2024-05-05T20:18:24+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":41911624663139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31488094863459,"product_id":7415077273699,"position":1,"created_at":"2024-05-05T20:18:26+08:00","updated_at":"2024-05-05T20:18:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0bf259331c356a7e0ff8e78bfe16c29a71c9d1_f5c17bc3-fde8-4762-bd2f-3b43e16d078a.webp?v=1714911506","variant_ids":[41911624663139]},"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-PB79","featured_media":{"alt":null,"id":23893439414371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0bf259331c356a7e0ff8e78bfe16c29a71c9d1_f5c17bc3-fde8-4762-bd2f-3b43e16d078a.webp?v=1714911506"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0bf259331c356a7e0ff8e78bfe16c29a71c9d1_f5c17bc3-fde8-4762-bd2f-3b43e16d078a.webp?v=1714911506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26e9902cf230096c405ac1b4784ffd28e3977aa1_d31127a4-c55c-4c62-875a-1bc20bf2d540.webp?v=1714911508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9126d67f2fc3ca3dfccc57e97ef5012251832160_76c374d7-02fd-483e-93c4-bcfae39d7304.webp?v=1714911511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a26e5b6ad47039c7d76aea7d96c682ab41b50589_0287e9f5-19d6-4964-840e-1748affc45b2.webp?v=1714911513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc66b9cda2b0150a93224b751e71f3ced6026323_39bcc8fd-62ca-4589-a3c9-d7284e97856e.webp?v=1714911516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665fbde4208a61613123c0cac8452cb82df73ef_70df862d-1014-4936-ac1e-3f216a1a3802.webp?v=1714911518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96cca3a1c7667485b4053fe8031ea7269c28fb4c_d99f087f-c980-45ac-b883-ec1c4a228519.webp?v=1714911520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e58fc57b78978330bc482eccdd94f9ff7de1d4_1520c130-b928-4548-a82c-f346a271540a.webp?v=1714911522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5517e0e955cba88ec5c0aeef92d251c6a2a9388_581343e7-90dd-4329-aeca-d9714b5c13a4.webp?v=1714911525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00c01ceff0f5d3b29498f584cb528400ff2d0037_6de0158b-478b-4c32-81a0-5445a974aeea.webp?v=1714911527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/751e36b273c6de40c32a9ad66f8ff4654ac57218_4a544d6c-b660-417f-8014-ab65e34bd026.webp?v=1714911530"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0bf259331c356a7e0ff8e78bfe16c29a71c9d1_f5c17bc3-fde8-4762-bd2f-3b43e16d078a.webp?v=1714911506","options":["color"],"media":[{"alt":null,"id":23893439414371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0bf259331c356a7e0ff8e78bfe16c29a71c9d1_f5c17bc3-fde8-4762-bd2f-3b43e16d078a.webp?v=1714911506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0bf259331c356a7e0ff8e78bfe16c29a71c9d1_f5c17bc3-fde8-4762-bd2f-3b43e16d078a.webp?v=1714911506","width":2000},{"alt":null,"id":23893440168035,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26e9902cf230096c405ac1b4784ffd28e3977aa1_d31127a4-c55c-4c62-875a-1bc20bf2d540.webp?v=1714911508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26e9902cf230096c405ac1b4784ffd28e3977aa1_d31127a4-c55c-4c62-875a-1bc20bf2d540.webp?v=1714911508","width":2000},{"alt":null,"id":23893440757859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9126d67f2fc3ca3dfccc57e97ef5012251832160_76c374d7-02fd-483e-93c4-bcfae39d7304.webp?v=1714911511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9126d67f2fc3ca3dfccc57e97ef5012251832160_76c374d7-02fd-483e-93c4-bcfae39d7304.webp?v=1714911511","width":2000},{"alt":null,"id":23893441413219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a26e5b6ad47039c7d76aea7d96c682ab41b50589_0287e9f5-19d6-4964-840e-1748affc45b2.webp?v=1714911513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a26e5b6ad47039c7d76aea7d96c682ab41b50589_0287e9f5-19d6-4964-840e-1748affc45b2.webp?v=1714911513","width":2000},{"alt":null,"id":23893441970275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc66b9cda2b0150a93224b751e71f3ced6026323_39bcc8fd-62ca-4589-a3c9-d7284e97856e.webp?v=1714911516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc66b9cda2b0150a93224b751e71f3ced6026323_39bcc8fd-62ca-4589-a3c9-d7284e97856e.webp?v=1714911516","width":2000},{"alt":null,"id":23893442429027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665fbde4208a61613123c0cac8452cb82df73ef_70df862d-1014-4936-ac1e-3f216a1a3802.webp?v=1714911518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e665fbde4208a61613123c0cac8452cb82df73ef_70df862d-1014-4936-ac1e-3f216a1a3802.webp?v=1714911518","width":2000},{"alt":null,"id":23893443084387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96cca3a1c7667485b4053fe8031ea7269c28fb4c_d99f087f-c980-45ac-b883-ec1c4a228519.webp?v=1714911520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96cca3a1c7667485b4053fe8031ea7269c28fb4c_d99f087f-c980-45ac-b883-ec1c4a228519.webp?v=1714911520","width":2000},{"alt":null,"id":23893443608675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e58fc57b78978330bc482eccdd94f9ff7de1d4_1520c130-b928-4548-a82c-f346a271540a.webp?v=1714911522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28e58fc57b78978330bc482eccdd94f9ff7de1d4_1520c130-b928-4548-a82c-f346a271540a.webp?v=1714911522","width":2000},{"alt":null,"id":23893444395107,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5517e0e955cba88ec5c0aeef92d251c6a2a9388_581343e7-90dd-4329-aeca-d9714b5c13a4.webp?v=1714911525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5517e0e955cba88ec5c0aeef92d251c6a2a9388_581343e7-90dd-4329-aeca-d9714b5c13a4.webp?v=1714911525","width":2000},{"alt":null,"id":23893445148771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00c01ceff0f5d3b29498f584cb528400ff2d0037_6de0158b-478b-4c32-81a0-5445a974aeea.webp?v=1714911527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00c01ceff0f5d3b29498f584cb528400ff2d0037_6de0158b-478b-4c32-81a0-5445a974aeea.webp?v=1714911527","width":2000},{"alt":null,"id":23893445607523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/751e36b273c6de40c32a9ad66f8ff4654ac57218_4a544d6c-b660-417f-8014-ab65e34bd026.webp?v=1714911530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/751e36b273c6de40c32a9ad66f8ff4654ac57218_4a544d6c-b660-417f-8014-ab65e34bd026.webp?v=1714911530","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41911624663139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31488094863459,"product_id":7415077273699,"position":1,"created_at":"2024-05-05T20:18:26+08:00","updated_at":"2024-05-05T20:18:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0bf259331c356a7e0ff8e78bfe16c29a71c9d1_f5c17bc3-fde8-4762-bd2f-3b43e16d078a.webp?v=1714911506","variant_ids":[41911624663139]},"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-PB79","featured_media":{"alt":null,"id":23893439414371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0bf259331c356a7e0ff8e78bfe16c29a71c9d1_f5c17bc3-fde8-4762-bd2f-3b43e16d078a.webp?v=1714911506"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41911624663139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31488094863459,"product_id":7415077273699,"position":1,"created_at":"2024-05-05T20:18:26+08:00","updated_at":"2024-05-05T20:18:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0bf259331c356a7e0ff8e78bfe16c29a71c9d1_f5c17bc3-fde8-4762-bd2f-3b43e16d078a.webp?v=1714911506","variant_ids":[41911624663139]},"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-PB79","featured_media":{"alt":null,"id":23893439414371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0bf259331c356a7e0ff8e78bfe16c29a71c9d1_f5c17bc3-fde8-4762-bd2f-3b43e16d078a.webp?v=1714911506"}},"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: "停產"
}