$product = {"id":7189456322659,"title":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 超級惡棍和蝙蝠俠Logo貼紙款","handle":"iphone-13-mini-solidsuit-classic-magsafe-sb10","description":null,"published_at":"2024-02-27T14:48:41+08:00","created_at":"2024-02-23T18:18:04+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":41312495337571,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":30977498153059,"product_id":7189456322659,"position":2,"created_at":"2024-02-26T12:45:34+08:00","updated_at":"2024-02-26T12:45:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0e1843a1d5567a6c47be19b7b787efa889de0c.webp?v=1708922734","variant_ids":[41312495337571]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - 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-SB10","featured_media":{"alt":null,"id":23353954402403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0e1843a1d5567a6c47be19b7b787efa889de0c.webp?v=1708922734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312495599715,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":30977512210531,"product_id":7189456322659,"position":14,"created_at":"2024-02-26T12:46:08+08:00","updated_at":"2024-02-26T12:46:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c274b3424e9f415ce9fa5baa16a7639f9c180879.webp?v=1708922768","variant_ids":[41312495599715]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - 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-SB10","featured_media":{"alt":null,"id":23353968132195,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c274b3424e9f415ce9fa5baa16a7639f9c180879.webp?v=1708922768"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96d0380ef4d0e6b81f74f8f0be1fdd6bec80b7fc.webp?v=1708922731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0e1843a1d5567a6c47be19b7b787efa889de0c.webp?v=1708922734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7462f9ad767a32b6a8cc8fc05f6c9451127d97f6.webp?v=1708922737","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c3793bee8fb7bc9c4a28f5b3e55e1171904ab08.webp?v=1708922740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdbb000dd1a0159b3e081f128f3800dd78e57e5.webp?v=1708922743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c0d49cc5820954d33ae15a1990e8a66cb1c64a3.webp?v=1708922745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b5a6db3b9dd41487e52dc6c6c6263319731d98.webp?v=1708922748","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbb2301b663b3983cfec794801c7b4bf62c37307.webp?v=1708922751","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf0df8573b18c5ede6a88d802246a99ce3d955bc.webp?v=1708922753","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/051621767eadf8f9f5ec399ab2dfbc09f3c56bb9.webp?v=1708922757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db388dc099b3110c6952aa6e8951842daed211e6.webp?v=1708922759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c559ad0500ac4585b88dcf529b84cc7ae7f9f4b7.webp?v=1708922762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60f782ec9c72755496fe8c103e8b5709edd9f1d6.webp?v=1708922765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c274b3424e9f415ce9fa5baa16a7639f9c180879.webp?v=1708922768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeb4e6f84d53323a68ab7d8f7d9eb49def1e87f.webp?v=1708922770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40440669eb527c7b820d384b2a65984134d1ad4d.webp?v=1708922773"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96d0380ef4d0e6b81f74f8f0be1fdd6bec80b7fc.webp?v=1708922731","options":["color"],"media":[{"alt":null,"id":23353953189987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96d0380ef4d0e6b81f74f8f0be1fdd6bec80b7fc.webp?v=1708922731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96d0380ef4d0e6b81f74f8f0be1fdd6bec80b7fc.webp?v=1708922731","width":2000},{"alt":null,"id":23353954402403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0e1843a1d5567a6c47be19b7b787efa889de0c.webp?v=1708922734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0e1843a1d5567a6c47be19b7b787efa889de0c.webp?v=1708922734","width":2000},{"alt":null,"id":23353955844195,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7462f9ad767a32b6a8cc8fc05f6c9451127d97f6.webp?v=1708922737"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7462f9ad767a32b6a8cc8fc05f6c9451127d97f6.webp?v=1708922737","width":2000},{"alt":null,"id":23353957122147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c3793bee8fb7bc9c4a28f5b3e55e1171904ab08.webp?v=1708922740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c3793bee8fb7bc9c4a28f5b3e55e1171904ab08.webp?v=1708922740","width":2000},{"alt":null,"id":23353958137955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdbb000dd1a0159b3e081f128f3800dd78e57e5.webp?v=1708922743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bdbb000dd1a0159b3e081f128f3800dd78e57e5.webp?v=1708922743","width":2000},{"alt":null,"id":23353959383139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c0d49cc5820954d33ae15a1990e8a66cb1c64a3.webp?v=1708922745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c0d49cc5820954d33ae15a1990e8a66cb1c64a3.webp?v=1708922745","width":2000},{"alt":null,"id":23353960562787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b5a6db3b9dd41487e52dc6c6c6263319731d98.webp?v=1708922748"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b5a6db3b9dd41487e52dc6c6c6263319731d98.webp?v=1708922748","width":2000},{"alt":null,"id":23353962070115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbb2301b663b3983cfec794801c7b4bf62c37307.webp?v=1708922751"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbb2301b663b3983cfec794801c7b4bf62c37307.webp?v=1708922751","width":2000},{"alt":null,"id":23353962987619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf0df8573b18c5ede6a88d802246a99ce3d955bc.webp?v=1708922753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf0df8573b18c5ede6a88d802246a99ce3d955bc.webp?v=1708922753","width":2000},{"alt":null,"id":23353964068963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/051621767eadf8f9f5ec399ab2dfbc09f3c56bb9.webp?v=1708922757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/051621767eadf8f9f5ec399ab2dfbc09f3c56bb9.webp?v=1708922757","width":2000},{"alt":null,"id":23353965183075,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db388dc099b3110c6952aa6e8951842daed211e6.webp?v=1708922759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db388dc099b3110c6952aa6e8951842daed211e6.webp?v=1708922759","width":2000},{"alt":null,"id":23353966231651,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c559ad0500ac4585b88dcf529b84cc7ae7f9f4b7.webp?v=1708922762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c559ad0500ac4585b88dcf529b84cc7ae7f9f4b7.webp?v=1708922762","width":2000},{"alt":null,"id":23353967116387,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60f782ec9c72755496fe8c103e8b5709edd9f1d6.webp?v=1708922765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60f782ec9c72755496fe8c103e8b5709edd9f1d6.webp?v=1708922765","width":2000},{"alt":null,"id":23353968132195,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c274b3424e9f415ce9fa5baa16a7639f9c180879.webp?v=1708922768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c274b3424e9f415ce9fa5baa16a7639f9c180879.webp?v=1708922768","width":2000},{"alt":null,"id":23353968984163,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeb4e6f84d53323a68ab7d8f7d9eb49def1e87f.webp?v=1708922770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeb4e6f84d53323a68ab7d8f7d9eb49def1e87f.webp?v=1708922770","width":2000},{"alt":null,"id":23353969901667,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40440669eb527c7b820d384b2a65984134d1ad4d.webp?v=1708922773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40440669eb527c7b820d384b2a65984134d1ad4d.webp?v=1708922773","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41312495337571,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":30977498153059,"product_id":7189456322659,"position":2,"created_at":"2024-02-26T12:45:34+08:00","updated_at":"2024-02-26T12:45:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0e1843a1d5567a6c47be19b7b787efa889de0c.webp?v=1708922734","variant_ids":[41312495337571]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - 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-SB10","featured_media":{"alt":null,"id":23353954402403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0e1843a1d5567a6c47be19b7b787efa889de0c.webp?v=1708922734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312495599715,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":30977512210531,"product_id":7189456322659,"position":14,"created_at":"2024-02-26T12:46:08+08:00","updated_at":"2024-02-26T12:46:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c274b3424e9f415ce9fa5baa16a7639f9c180879.webp?v=1708922768","variant_ids":[41312495599715]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - 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-SB10","featured_media":{"alt":null,"id":23353968132195,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c274b3424e9f415ce9fa5baa16a7639f9c180879.webp?v=1708922768"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41312495337571,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":30977498153059,"product_id":7189456322659,"position":2,"created_at":"2024-02-26T12:45:34+08:00","updated_at":"2024-02-26T12:45:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0e1843a1d5567a6c47be19b7b787efa889de0c.webp?v=1708922734","variant_ids":[41312495337571]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - 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-SB10","featured_media":{"alt":null,"id":23353954402403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a0e1843a1d5567a6c47be19b7b787efa889de0c.webp?v=1708922734"}},"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: "停產"
}