$product = {"id":7414939091043,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-pb70","description":null,"published_at":"2024-06-11T17:53:36+08:00","created_at":"2024-05-05T19:52:31+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":41910142795875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31487732220003,"product_id":7414939091043,"position":6,"created_at":"2024-05-05T19:52:45+08:00","updated_at":"2024-05-05T19:52:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b91358c9fc2363db5e346807491b29249f23dda_d777cf5b-11d7-43e4-9b55-abb28b6ed9e3.webp?v=1714909965","variant_ids":[41910142795875]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-PB70","featured_media":{"alt":null,"id":23893076148323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b91358c9fc2363db5e346807491b29249f23dda_d777cf5b-11d7-43e4-9b55-abb28b6ed9e3.webp?v=1714909965"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57a358dd868011ed10cd60b0b6a75ba83180a8a8_66ae5878-e288-44bd-8744-83fd43a8f02c.webp?v=1714909953","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9fa239a5d37ce71667970ae40ceb8cdf7dae9c9_9f8b5804-ab9e-4de7-bcb8-f57330a9b527.webp?v=1714909956","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26b3dc4d490478917acc9e1b0f3080c0c0e46326_f8cb5bcd-d021-4f12-ba53-95d4ca5b06f7.webp?v=1714909958","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/325d7497638ed7132d64b9beb9f64857e1f6203c_162eafb0-661c-473c-8e2f-c6c623c850c0.webp?v=1714909961","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59182a7f090fb193d119bb84a1e87206b88d32df_b1694363-4bbc-411a-b22c-a24e25bb8bef.webp?v=1714909963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b91358c9fc2363db5e346807491b29249f23dda_d777cf5b-11d7-43e4-9b55-abb28b6ed9e3.webp?v=1714909965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5786b6d5b571ae45f86a4e9f5bcfb10891447ad_203d8d20-8a9b-4fa3-8db3-c465a2184ddd.webp?v=1714909967","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c665ad4f8e8d98567109d9ce922f8ce858b030ab_c11dc373-81c6-45f3-a2ea-d1d3e2c36d59.webp?v=1714909970","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a80be4f34974647ac264a3c0e96df6bd6bdc6f5_c446d210-6b71-4e9c-8b1f-4ece8bc319e3.webp?v=1714909972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21dadf473b8a5600c694c77fd0bd2bfb43883d94_38a15d24-a311-4d3b-9fc6-e7042875c9c6.webp?v=1714909974"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57a358dd868011ed10cd60b0b6a75ba83180a8a8_66ae5878-e288-44bd-8744-83fd43a8f02c.webp?v=1714909953","options":["color"],"media":[{"alt":null,"id":23893073428579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57a358dd868011ed10cd60b0b6a75ba83180a8a8_66ae5878-e288-44bd-8744-83fd43a8f02c.webp?v=1714909953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57a358dd868011ed10cd60b0b6a75ba83180a8a8_66ae5878-e288-44bd-8744-83fd43a8f02c.webp?v=1714909953","width":2000},{"alt":null,"id":23893073821795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9fa239a5d37ce71667970ae40ceb8cdf7dae9c9_9f8b5804-ab9e-4de7-bcb8-f57330a9b527.webp?v=1714909956"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9fa239a5d37ce71667970ae40ceb8cdf7dae9c9_9f8b5804-ab9e-4de7-bcb8-f57330a9b527.webp?v=1714909956","width":2000},{"alt":null,"id":23893074444387,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26b3dc4d490478917acc9e1b0f3080c0c0e46326_f8cb5bcd-d021-4f12-ba53-95d4ca5b06f7.webp?v=1714909958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26b3dc4d490478917acc9e1b0f3080c0c0e46326_f8cb5bcd-d021-4f12-ba53-95d4ca5b06f7.webp?v=1714909958","width":2000},{"alt":null,"id":23893075165283,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/325d7497638ed7132d64b9beb9f64857e1f6203c_162eafb0-661c-473c-8e2f-c6c623c850c0.webp?v=1714909961"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/325d7497638ed7132d64b9beb9f64857e1f6203c_162eafb0-661c-473c-8e2f-c6c623c850c0.webp?v=1714909961","width":2000},{"alt":null,"id":23893075656803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59182a7f090fb193d119bb84a1e87206b88d32df_b1694363-4bbc-411a-b22c-a24e25bb8bef.webp?v=1714909963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59182a7f090fb193d119bb84a1e87206b88d32df_b1694363-4bbc-411a-b22c-a24e25bb8bef.webp?v=1714909963","width":2000},{"alt":null,"id":23893076148323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b91358c9fc2363db5e346807491b29249f23dda_d777cf5b-11d7-43e4-9b55-abb28b6ed9e3.webp?v=1714909965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b91358c9fc2363db5e346807491b29249f23dda_d777cf5b-11d7-43e4-9b55-abb28b6ed9e3.webp?v=1714909965","width":2000},{"alt":null,"id":23893077033059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5786b6d5b571ae45f86a4e9f5bcfb10891447ad_203d8d20-8a9b-4fa3-8db3-c465a2184ddd.webp?v=1714909967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5786b6d5b571ae45f86a4e9f5bcfb10891447ad_203d8d20-8a9b-4fa3-8db3-c465a2184ddd.webp?v=1714909967","width":2000},{"alt":null,"id":23893077491811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c665ad4f8e8d98567109d9ce922f8ce858b030ab_c11dc373-81c6-45f3-a2ea-d1d3e2c36d59.webp?v=1714909970"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c665ad4f8e8d98567109d9ce922f8ce858b030ab_c11dc373-81c6-45f3-a2ea-d1d3e2c36d59.webp?v=1714909970","width":2000},{"alt":null,"id":23893078212707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a80be4f34974647ac264a3c0e96df6bd6bdc6f5_c446d210-6b71-4e9c-8b1f-4ece8bc319e3.webp?v=1714909972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a80be4f34974647ac264a3c0e96df6bd6bdc6f5_c446d210-6b71-4e9c-8b1f-4ece8bc319e3.webp?v=1714909972","width":2000},{"alt":null,"id":23893078638691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21dadf473b8a5600c694c77fd0bd2bfb43883d94_38a15d24-a311-4d3b-9fc6-e7042875c9c6.webp?v=1714909974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21dadf473b8a5600c694c77fd0bd2bfb43883d94_38a15d24-a311-4d3b-9fc6-e7042875c9c6.webp?v=1714909974","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41910142795875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31487732220003,"product_id":7414939091043,"position":6,"created_at":"2024-05-05T19:52:45+08:00","updated_at":"2024-05-05T19:52:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b91358c9fc2363db5e346807491b29249f23dda_d777cf5b-11d7-43e4-9b55-abb28b6ed9e3.webp?v=1714909965","variant_ids":[41910142795875]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-PB70","featured_media":{"alt":null,"id":23893076148323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b91358c9fc2363db5e346807491b29249f23dda_d777cf5b-11d7-43e4-9b55-abb28b6ed9e3.webp?v=1714909965"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41910142795875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31487732220003,"product_id":7414939091043,"position":6,"created_at":"2024-05-05T19:52:45+08:00","updated_at":"2024-05-05T19:52:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b91358c9fc2363db5e346807491b29249f23dda_d777cf5b-11d7-43e4-9b55-abb28b6ed9e3.webp?v=1714909965","variant_ids":[41910142795875]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-PB70","featured_media":{"alt":null,"id":23893076148323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b91358c9fc2363db5e346807491b29249f23dda_d777cf5b-11d7-43e4-9b55-abb28b6ed9e3.webp?v=1714909965"}},"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: "停產"
}