$product = {"id":7827224985699,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) Tour de France Rolling On!","handle":"iphone-13-mini-solidsuit-magsafe-bumper-back-crossover-design-tdf04","description":null,"published_at":"2025-07-14T11:28:12+08:00","created_at":"2025-06-26T15:15:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tour-de-france","device-iPhone 13 Mini","merge","reseller-tour-de-france"],"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":43497216671843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-TDF04","requires_shipping":true,"taxable":true,"featured_image":{"id":34081746911331,"product_id":7827224985699,"position":7,"created_at":"2025-06-26T15:15:10+08:00","updated_at":"2025-06-26T15:15:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3bab2e7c874e606f030be06725b94206231456.webp?v=1750922111","variant_ids":[43497216671843]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Tour de France Rolling On! - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-TDF04","featured_media":{"alt":null,"id":25742664171619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3bab2e7c874e606f030be06725b94206231456.webp?v=1750922111"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43497216704611,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-TDF04","requires_shipping":true,"taxable":true,"featured_image":{"id":34081744453731,"product_id":7827224985699,"position":1,"created_at":"2025-06-26T15:15:05+08:00","updated_at":"2025-06-26T15:15:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab48e8b139a99d6897919affa6a8654af68da20c.webp?v=1750922107","variant_ids":[43497216704611]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Tour de France Rolling On! - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-TDF04","featured_media":{"alt":null,"id":25742662795363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab48e8b139a99d6897919affa6a8654af68da20c.webp?v=1750922107"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43497216802915,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01228Z9-TDF04","requires_shipping":true,"taxable":true,"featured_image":{"id":34081748090979,"product_id":7827224985699,"position":10,"created_at":"2025-06-26T15:15:11+08:00","updated_at":"2025-06-26T15:15:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2b31d0545125fd5d8ae41b61f919966036840e.webp?v=1750922113","variant_ids":[43497216802915]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Tour de France Rolling On! - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z9-TDF04","featured_media":{"alt":null,"id":25742664695907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2b31d0545125fd5d8ae41b61f919966036840e.webp?v=1750922113"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab48e8b139a99d6897919affa6a8654af68da20c.webp?v=1750922107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd89713490c45a093e39348f4a68358c5f6c694.webp?v=1750922107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f4bf3eb75e9e531893cca7e5c34afc3cde1ff6d.webp?v=1750922108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4ef518f88947f8d754155f9ca74961a18902c76.webp?v=1750922109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23699805362eaa9174b0158259d106901ff5d99e.webp?v=1750922110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644ae20ed753df83949d5671f36ab02d0fa92790.webp?v=1750922111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3bab2e7c874e606f030be06725b94206231456.webp?v=1750922111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610e09e5cb1cc9107304ec150f7e7303613d7c0c.webp?v=1750922112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60d39dd2f8941ebd6ebaa7dc425e7add0bbbe5fe.webp?v=1750922112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2b31d0545125fd5d8ae41b61f919966036840e.webp?v=1750922113"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab48e8b139a99d6897919affa6a8654af68da20c.webp?v=1750922107","options":["color"],"media":[{"alt":null,"id":25742662795363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab48e8b139a99d6897919affa6a8654af68da20c.webp?v=1750922107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab48e8b139a99d6897919affa6a8654af68da20c.webp?v=1750922107","width":2000},{"alt":null,"id":25742662959203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd89713490c45a093e39348f4a68358c5f6c694.webp?v=1750922107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd89713490c45a093e39348f4a68358c5f6c694.webp?v=1750922107","width":2000},{"alt":null,"id":25742663221347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f4bf3eb75e9e531893cca7e5c34afc3cde1ff6d.webp?v=1750922108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f4bf3eb75e9e531893cca7e5c34afc3cde1ff6d.webp?v=1750922108","width":2000},{"alt":null,"id":25742663549027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4ef518f88947f8d754155f9ca74961a18902c76.webp?v=1750922109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4ef518f88947f8d754155f9ca74961a18902c76.webp?v=1750922109","width":2000},{"alt":null,"id":25742663745635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23699805362eaa9174b0158259d106901ff5d99e.webp?v=1750922110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23699805362eaa9174b0158259d106901ff5d99e.webp?v=1750922110","width":2000},{"alt":null,"id":25742663942243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644ae20ed753df83949d5671f36ab02d0fa92790.webp?v=1750922111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/644ae20ed753df83949d5671f36ab02d0fa92790.webp?v=1750922111","width":2000},{"alt":null,"id":25742664171619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3bab2e7c874e606f030be06725b94206231456.webp?v=1750922111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3bab2e7c874e606f030be06725b94206231456.webp?v=1750922111","width":2000},{"alt":null,"id":25742664368227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610e09e5cb1cc9107304ec150f7e7303613d7c0c.webp?v=1750922112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610e09e5cb1cc9107304ec150f7e7303613d7c0c.webp?v=1750922112","width":2000},{"alt":null,"id":25742664532067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60d39dd2f8941ebd6ebaa7dc425e7add0bbbe5fe.webp?v=1750922112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60d39dd2f8941ebd6ebaa7dc425e7add0bbbe5fe.webp?v=1750922112","width":2000},{"alt":null,"id":25742664695907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2b31d0545125fd5d8ae41b61f919966036840e.webp?v=1750922113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2b31d0545125fd5d8ae41b61f919966036840e.webp?v=1750922113","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43497216671843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-TDF04","requires_shipping":true,"taxable":true,"featured_image":{"id":34081746911331,"product_id":7827224985699,"position":7,"created_at":"2025-06-26T15:15:10+08:00","updated_at":"2025-06-26T15:15:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3bab2e7c874e606f030be06725b94206231456.webp?v=1750922111","variant_ids":[43497216671843]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Tour de France Rolling On! - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-TDF04","featured_media":{"alt":null,"id":25742664171619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3bab2e7c874e606f030be06725b94206231456.webp?v=1750922111"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43497216704611,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-TDF04","requires_shipping":true,"taxable":true,"featured_image":{"id":34081744453731,"product_id":7827224985699,"position":1,"created_at":"2025-06-26T15:15:05+08:00","updated_at":"2025-06-26T15:15:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab48e8b139a99d6897919affa6a8654af68da20c.webp?v=1750922107","variant_ids":[43497216704611]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Tour de France Rolling On! - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-TDF04","featured_media":{"alt":null,"id":25742662795363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab48e8b139a99d6897919affa6a8654af68da20c.webp?v=1750922107"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43497216802915,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01228Z9-TDF04","requires_shipping":true,"taxable":true,"featured_image":{"id":34081748090979,"product_id":7827224985699,"position":10,"created_at":"2025-06-26T15:15:11+08:00","updated_at":"2025-06-26T15:15:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2b31d0545125fd5d8ae41b61f919966036840e.webp?v=1750922113","variant_ids":[43497216802915]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Tour de France Rolling On! - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z9-TDF04","featured_media":{"alt":null,"id":25742664695907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2b31d0545125fd5d8ae41b61f919966036840e.webp?v=1750922113"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43497216671843,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-TDF04","requires_shipping":true,"taxable":true,"featured_image":{"id":34081746911331,"product_id":7827224985699,"position":7,"created_at":"2025-06-26T15:15:10+08:00","updated_at":"2025-06-26T15:15:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3bab2e7c874e606f030be06725b94206231456.webp?v=1750922111","variant_ids":[43497216671843]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Tour de France Rolling On! - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-TDF04","featured_media":{"alt":null,"id":25742664171619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c3bab2e7c874e606f030be06725b94206231456.webp?v=1750922111"}},"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: "停產"
}