$product = {"id":7189451472995,"title":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 漫畫風格","handle":"iphone-13-mini-solidsuit-classic-magsafe-sb02","description":null,"published_at":"2024-02-27T14:50:56+08:00","created_at":"2024-02-23T18:16:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit MagSafe專區-Batman","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 13 mini","merge","reseller-solidsuit-magsafe-batman","Top50","type-Solidsuit MagSafe"],"price":125000,"price_min":125000,"price_max":125000,"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":41312466927715,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":30977934426211,"product_id":7189451472995,"position":4,"created_at":"2024-02-26T13:09:19+08:00","updated_at":"2024-02-26T13:09:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbae3e08481a0c465c15126f230666fd94170f20.webp?v=1708924159","variant_ids":[41312466927715]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 漫畫風格 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-SB02","featured_media":{"alt":null,"id":23354391199843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbae3e08481a0c465c15126f230666fd94170f20.webp?v=1708924159"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312467189859,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":30977940979811,"product_id":7189451472995,"position":10,"created_at":"2024-02-26T13:09:34+08:00","updated_at":"2024-02-26T13:09:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f053ef4988117c6303f2da81ae5972ce2a22bc0e.webp?v=1708924174","variant_ids":[41312467189859]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 漫畫風格 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-SB02","featured_media":{"alt":null,"id":23354397786211,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f053ef4988117c6303f2da81ae5972ce2a22bc0e.webp?v=1708924174"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34754ebd8c178ffe00e04517dac3705daa14f8c9.webp?v=1708924152","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afb039851dec156c444e8904a12f0b6c8f053a17.webp?v=1708924154","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38dce401d14e616d89ecc25a522472fffb17db45.webp?v=1708924157","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbae3e08481a0c465c15126f230666fd94170f20.webp?v=1708924159","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37625beab0cc2e00f084d382ba871d62f535a0a9.webp?v=1708924162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b2de4a1d8b6602252ce65fcb48a04b4d83c9e9.webp?v=1708924164","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2972b9fa13b7283f54e06bf428c59588f421ca7.webp?v=1708924167","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93e7d5733779aa87f35473e287cb378968f72cf3.webp?v=1708924169","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ba3cffea7f86c0f4e50da944d5f35f148bbfcf3.webp?v=1708924172","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f053ef4988117c6303f2da81ae5972ce2a22bc0e.webp?v=1708924174","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b5d3e078c3bd75841e4ffc1abb3fcce34ea395f.webp?v=1708924177","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd23c35b4d78af50ba1ba3c35c3fb365d6d03c2e.webp?v=1708924179","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a1d98ad442ff6249e59853be932095b21cd3f1.webp?v=1708924182","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23dafafdf1ff6e098397c3f1194dc525217757a0.webp?v=1708924184","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b88fff0ba713ab57b39f442ff7c3ba0590b1491b.webp?v=1708924186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0816a82595627f0060bd1a893b92adf2823e4b20.webp?v=1708924189"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34754ebd8c178ffe00e04517dac3705daa14f8c9.webp?v=1708924152","options":["color"],"media":[{"alt":null,"id":23354387923043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34754ebd8c178ffe00e04517dac3705daa14f8c9.webp?v=1708924152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34754ebd8c178ffe00e04517dac3705daa14f8c9.webp?v=1708924152","width":2000},{"alt":null,"id":23354389037155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afb039851dec156c444e8904a12f0b6c8f053a17.webp?v=1708924154"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afb039851dec156c444e8904a12f0b6c8f053a17.webp?v=1708924154","width":2000},{"alt":null,"id":23354390085731,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38dce401d14e616d89ecc25a522472fffb17db45.webp?v=1708924157"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38dce401d14e616d89ecc25a522472fffb17db45.webp?v=1708924157","width":2000},{"alt":null,"id":23354391199843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbae3e08481a0c465c15126f230666fd94170f20.webp?v=1708924159"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbae3e08481a0c465c15126f230666fd94170f20.webp?v=1708924159","width":2000},{"alt":null,"id":23354392346723,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37625beab0cc2e00f084d382ba871d62f535a0a9.webp?v=1708924162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37625beab0cc2e00f084d382ba871d62f535a0a9.webp?v=1708924162","width":2000},{"alt":null,"id":23354393264227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b2de4a1d8b6602252ce65fcb48a04b4d83c9e9.webp?v=1708924164"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b2de4a1d8b6602252ce65fcb48a04b4d83c9e9.webp?v=1708924164","width":2000},{"alt":null,"id":23354394509411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2972b9fa13b7283f54e06bf428c59588f421ca7.webp?v=1708924167"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2972b9fa13b7283f54e06bf428c59588f421ca7.webp?v=1708924167","width":2000},{"alt":null,"id":23354395689059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93e7d5733779aa87f35473e287cb378968f72cf3.webp?v=1708924169"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93e7d5733779aa87f35473e287cb378968f72cf3.webp?v=1708924169","width":2000},{"alt":null,"id":23354396835939,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ba3cffea7f86c0f4e50da944d5f35f148bbfcf3.webp?v=1708924172"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ba3cffea7f86c0f4e50da944d5f35f148bbfcf3.webp?v=1708924172","width":2000},{"alt":null,"id":23354397786211,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f053ef4988117c6303f2da81ae5972ce2a22bc0e.webp?v=1708924174"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f053ef4988117c6303f2da81ae5972ce2a22bc0e.webp?v=1708924174","width":2000},{"alt":null,"id":23354398638179,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b5d3e078c3bd75841e4ffc1abb3fcce34ea395f.webp?v=1708924177"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b5d3e078c3bd75841e4ffc1abb3fcce34ea395f.webp?v=1708924177","width":2000},{"alt":null,"id":23354399555683,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd23c35b4d78af50ba1ba3c35c3fb365d6d03c2e.webp?v=1708924179"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd23c35b4d78af50ba1ba3c35c3fb365d6d03c2e.webp?v=1708924179","width":2000},{"alt":null,"id":23354400374883,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a1d98ad442ff6249e59853be932095b21cd3f1.webp?v=1708924182"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a1d98ad442ff6249e59853be932095b21cd3f1.webp?v=1708924182","width":2000},{"alt":null,"id":23354401325155,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23dafafdf1ff6e098397c3f1194dc525217757a0.webp?v=1708924184"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23dafafdf1ff6e098397c3f1194dc525217757a0.webp?v=1708924184","width":2000},{"alt":null,"id":23354402340963,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b88fff0ba713ab57b39f442ff7c3ba0590b1491b.webp?v=1708924186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b88fff0ba713ab57b39f442ff7c3ba0590b1491b.webp?v=1708924186","width":2000},{"alt":null,"id":23354403225699,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0816a82595627f0060bd1a893b92adf2823e4b20.webp?v=1708924189"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0816a82595627f0060bd1a893b92adf2823e4b20.webp?v=1708924189","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41312466927715,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":30977934426211,"product_id":7189451472995,"position":4,"created_at":"2024-02-26T13:09:19+08:00","updated_at":"2024-02-26T13:09:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbae3e08481a0c465c15126f230666fd94170f20.webp?v=1708924159","variant_ids":[41312466927715]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 漫畫風格 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-SB02","featured_media":{"alt":null,"id":23354391199843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbae3e08481a0c465c15126f230666fd94170f20.webp?v=1708924159"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312467189859,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":30977940979811,"product_id":7189451472995,"position":10,"created_at":"2024-02-26T13:09:34+08:00","updated_at":"2024-02-26T13:09:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f053ef4988117c6303f2da81ae5972ce2a22bc0e.webp?v=1708924174","variant_ids":[41312467189859]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 漫畫風格 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-SB02","featured_media":{"alt":null,"id":23354397786211,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f053ef4988117c6303f2da81ae5972ce2a22bc0e.webp?v=1708924174"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41312466927715,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":30977934426211,"product_id":7189451472995,"position":4,"created_at":"2024-02-26T13:09:19+08:00","updated_at":"2024-02-26T13:09:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbae3e08481a0c465c15126f230666fd94170f20.webp?v=1708924159","variant_ids":[41312466927715]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 漫畫風格 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-SB02","featured_media":{"alt":null,"id":23354391199843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbae3e08481a0c465c15126f230666fd94170f20.webp?v=1708924159"}},"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: "停產"
}