Home
›
iPhone 13 mini SolidSuit (MagSafe 兼容) 涼丰 京野菜
$product = {"id":6987950555235,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) 涼丰 京野菜","handle":"iphone-13-mini-solidsuit-classic-magsafe-gd15","description":null,"published_at":"2023-08-03T02:16:11+08:00","created_at":"2023-07-30T19:53:12+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區哈利波特 Harry Potter","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-liang-feng","device-iPhone 13 Mini","merge","reseller-liang-feng"],"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":43103572983907,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0122852-GD15","requires_shipping":true,"taxable":true,"featured_image":{"id":30287594225763,"product_id":6987950555235,"position":1,"created_at":"2023-07-30T19:53:14+08:00","updated_at":"2023-07-30T19:53:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GD15_c27e1f30-31a0-4e35-b222-2b320a406a1a.png?v=1690717994","variant_ids":[43103572983907]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 涼丰 京野菜 - Black \/ Classic","public_title":"Black \/ Classic","options":["Black","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-GD15","featured_media":{"alt":null,"id":22646303981667,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GD15_c27e1f30-31a0-4e35-b222-2b320a406a1a.png?v=1690717994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GD15_c27e1f30-31a0-4e35-b222-2b320a406a1a.png?v=1690717994","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df38b96c3bcb8b748e6911ce0032c445860f72b.webp?v=1784014334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9045319890bc76a25d4c3c5a39ae6305fd8e7f58.webp?v=1784014335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df38b96c3bcb8b748e6911ce0032c445860f72b_508b38ae-5897-4c2a-be80-c14de1b580bb.webp?v=1784018299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9045319890bc76a25d4c3c5a39ae6305fd8e7f58_ecc52b97-eb63-4bb2-9f30-0025bc1b462d.webp?v=1784018301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df38b96c3bcb8b748e6911ce0032c445860f72b_539907a5-76c5-4637-a1be-09e9462b73a5.webp?v=1784018611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9045319890bc76a25d4c3c5a39ae6305fd8e7f58_9917792c-5b7f-4129-a9be-28f01cfd174f.webp?v=1784018612","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df38b96c3bcb8b748e6911ce0032c445860f72b_47510b41-d237-4621-a178-fa565017ff2a.webp?v=1784018705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9045319890bc76a25d4c3c5a39ae6305fd8e7f58_0ff4f904-fc7f-43f2-baee-4639efb4f15c.webp?v=1784018706"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GD15_c27e1f30-31a0-4e35-b222-2b320a406a1a.png?v=1690717994","options":["color","Types"],"media":[{"alt":null,"id":22646303981667,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GD15_c27e1f30-31a0-4e35-b222-2b320a406a1a.png?v=1690717994"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GD15_c27e1f30-31a0-4e35-b222-2b320a406a1a.png?v=1690717994","width":2000},{"alt":null,"id":27761793597539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df38b96c3bcb8b748e6911ce0032c445860f72b.webp?v=1784014334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df38b96c3bcb8b748e6911ce0032c445860f72b.webp?v=1784014334","width":2000},{"alt":null,"id":27761793892451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9045319890bc76a25d4c3c5a39ae6305fd8e7f58.webp?v=1784014335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9045319890bc76a25d4c3c5a39ae6305fd8e7f58.webp?v=1784014335","width":2000},{"alt":null,"id":27762599264355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df38b96c3bcb8b748e6911ce0032c445860f72b_508b38ae-5897-4c2a-be80-c14de1b580bb.webp?v=1784018299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df38b96c3bcb8b748e6911ce0032c445860f72b_508b38ae-5897-4c2a-be80-c14de1b580bb.webp?v=1784018299","width":2000},{"alt":null,"id":27762599329891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9045319890bc76a25d4c3c5a39ae6305fd8e7f58_ecc52b97-eb63-4bb2-9f30-0025bc1b462d.webp?v=1784018301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9045319890bc76a25d4c3c5a39ae6305fd8e7f58_ecc52b97-eb63-4bb2-9f30-0025bc1b462d.webp?v=1784018301","width":2000},{"alt":null,"id":27762629050467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df38b96c3bcb8b748e6911ce0032c445860f72b_539907a5-76c5-4637-a1be-09e9462b73a5.webp?v=1784018611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df38b96c3bcb8b748e6911ce0032c445860f72b_539907a5-76c5-4637-a1be-09e9462b73a5.webp?v=1784018611","width":2000},{"alt":null,"id":27762629214307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9045319890bc76a25d4c3c5a39ae6305fd8e7f58_9917792c-5b7f-4129-a9be-28f01cfd174f.webp?v=1784018612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9045319890bc76a25d4c3c5a39ae6305fd8e7f58_9917792c-5b7f-4129-a9be-28f01cfd174f.webp?v=1784018612","width":2000},{"alt":null,"id":27762649661539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df38b96c3bcb8b748e6911ce0032c445860f72b_47510b41-d237-4621-a178-fa565017ff2a.webp?v=1784018705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df38b96c3bcb8b748e6911ce0032c445860f72b_47510b41-d237-4621-a178-fa565017ff2a.webp?v=1784018705","width":2000},{"alt":null,"id":27762649923683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9045319890bc76a25d4c3c5a39ae6305fd8e7f58_0ff4f904-fc7f-43f2-baee-4639efb4f15c.webp?v=1784018706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9045319890bc76a25d4c3c5a39ae6305fd8e7f58_0ff4f904-fc7f-43f2-baee-4639efb4f15c.webp?v=1784018706","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43103572983907,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0122852-GD15","requires_shipping":true,"taxable":true,"featured_image":{"id":30287594225763,"product_id":6987950555235,"position":1,"created_at":"2023-07-30T19:53:14+08:00","updated_at":"2023-07-30T19:53:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GD15_c27e1f30-31a0-4e35-b222-2b320a406a1a.png?v=1690717994","variant_ids":[43103572983907]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 涼丰 京野菜 - Black \/ Classic","public_title":"Black \/ Classic","options":["Black","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-GD15","featured_media":{"alt":null,"id":22646303981667,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GD15_c27e1f30-31a0-4e35-b222-2b320a406a1a.png?v=1690717994"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43103572983907,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0122852-GD15","requires_shipping":true,"taxable":true,"featured_image":{"id":30287594225763,"product_id":6987950555235,"position":1,"created_at":"2023-07-30T19:53:14+08:00","updated_at":"2023-07-30T19:53:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GD15_c27e1f30-31a0-4e35-b222-2b320a406a1a.png?v=1690717994","variant_ids":[43103572983907]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 涼丰 京野菜 - Black \/ Classic","public_title":"Black \/ Classic","options":["Black","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-GD15","featured_media":{"alt":null,"id":22646303981667,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GD15_c27e1f30-31a0-4e35-b222-2b320a406a1a.png?v=1690717994"}},"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: "停產"
}