$product = {"id":7827200770147,"title":"iPhone XS SolidSuit Tour de France French Colors","handle":"iphone-xs-solidsuit-bumper-back-crossover-design-tdf08","description":null,"published_at":"2025-07-14T11:41:23+08:00","created_at":"2025-06-26T15:09:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tour-de-france","device-iPhone XS","merge","reseller-tour-de-france"],"price":83000,"price_min":83000,"price_max":83000,"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":43497120039011,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-TDF08","requires_shipping":true,"taxable":true,"featured_image":{"id":34081532444771,"product_id":7827200770147,"position":2,"created_at":"2025-06-26T15:09:56+08:00","updated_at":"2025-06-26T15:09:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8880a9f71fcc81bcad7e10f892a7850ea8dbd7f2_7fe92c73-39ba-46c8-ae60-5bfa075a9460.webp?v=1750921798","variant_ids":[43497120039011]},"available":true,"name":"iPhone XS SolidSuit Tour de France French Colors - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01064P2-TDF08","featured_media":{"alt":null,"id":25742546206819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8880a9f71fcc81bcad7e10f892a7850ea8dbd7f2_7fe92c73-39ba-46c8-ae60-5bfa075a9460.webp?v=1750921798"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43497121742947,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-TDF08","requires_shipping":true,"taxable":true,"featured_image":{"id":34081532346467,"product_id":7827200770147,"position":1,"created_at":"2025-06-26T15:09:55+08:00","updated_at":"2025-06-26T15:09:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5bb775e805e1e8f74ab725902f1a4dd58d4e31c_35891288-d89f-4955-868e-ca04f3e0bef6.webp?v=1750921798","variant_ids":[43497121742947]},"available":true,"name":"iPhone XS SolidSuit Tour de France French Colors - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0106452-TDF08","featured_media":{"alt":null,"id":25742546108515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5bb775e805e1e8f74ab725902f1a4dd58d4e31c_35891288-d89f-4955-868e-ca04f3e0bef6.webp?v=1750921798"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5bb775e805e1e8f74ab725902f1a4dd58d4e31c_35891288-d89f-4955-868e-ca04f3e0bef6.webp?v=1750921798","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8880a9f71fcc81bcad7e10f892a7850ea8dbd7f2_7fe92c73-39ba-46c8-ae60-5bfa075a9460.webp?v=1750921798","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f304ab8d863788f29e63f86d7e035a9e557bf3_7401cab8-9ba9-47f4-af93-64611d942b02.webp?v=1750921798","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f746ed4b3eca81628a9f94f7a5b60d2960dec362_57f2c3f4-710d-4442-8187-07841cad2591.webp?v=1750921799","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be9ce9761fc29ccced0a3fcb4b546de09eb70be6_5185e997-9a11-46da-9d1a-8ee9fc28ff5b.webp?v=1750921799","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b290a880307ce738087649282a0f3e691cb95ea9_7da9bbdf-711d-42b5-af5a-83f417c5ff24.webp?v=1750921800"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5bb775e805e1e8f74ab725902f1a4dd58d4e31c_35891288-d89f-4955-868e-ca04f3e0bef6.webp?v=1750921798","options":["color"],"media":[{"alt":null,"id":25742546108515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5bb775e805e1e8f74ab725902f1a4dd58d4e31c_35891288-d89f-4955-868e-ca04f3e0bef6.webp?v=1750921798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5bb775e805e1e8f74ab725902f1a4dd58d4e31c_35891288-d89f-4955-868e-ca04f3e0bef6.webp?v=1750921798","width":2000},{"alt":null,"id":25742546206819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8880a9f71fcc81bcad7e10f892a7850ea8dbd7f2_7fe92c73-39ba-46c8-ae60-5bfa075a9460.webp?v=1750921798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8880a9f71fcc81bcad7e10f892a7850ea8dbd7f2_7fe92c73-39ba-46c8-ae60-5bfa075a9460.webp?v=1750921798","width":2000},{"alt":null,"id":25742546337891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f304ab8d863788f29e63f86d7e035a9e557bf3_7401cab8-9ba9-47f4-af93-64611d942b02.webp?v=1750921798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f304ab8d863788f29e63f86d7e035a9e557bf3_7401cab8-9ba9-47f4-af93-64611d942b02.webp?v=1750921798","width":2000},{"alt":null,"id":25742546436195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f746ed4b3eca81628a9f94f7a5b60d2960dec362_57f2c3f4-710d-4442-8187-07841cad2591.webp?v=1750921799"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f746ed4b3eca81628a9f94f7a5b60d2960dec362_57f2c3f4-710d-4442-8187-07841cad2591.webp?v=1750921799","width":2000},{"alt":null,"id":25742546567267,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be9ce9761fc29ccced0a3fcb4b546de09eb70be6_5185e997-9a11-46da-9d1a-8ee9fc28ff5b.webp?v=1750921799"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be9ce9761fc29ccced0a3fcb4b546de09eb70be6_5185e997-9a11-46da-9d1a-8ee9fc28ff5b.webp?v=1750921799","width":2000},{"alt":null,"id":25742546731107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b290a880307ce738087649282a0f3e691cb95ea9_7da9bbdf-711d-42b5-af5a-83f417c5ff24.webp?v=1750921800"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b290a880307ce738087649282a0f3e691cb95ea9_7da9bbdf-711d-42b5-af5a-83f417c5ff24.webp?v=1750921800","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43497120039011,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-TDF08","requires_shipping":true,"taxable":true,"featured_image":{"id":34081532444771,"product_id":7827200770147,"position":2,"created_at":"2025-06-26T15:09:56+08:00","updated_at":"2025-06-26T15:09:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8880a9f71fcc81bcad7e10f892a7850ea8dbd7f2_7fe92c73-39ba-46c8-ae60-5bfa075a9460.webp?v=1750921798","variant_ids":[43497120039011]},"available":true,"name":"iPhone XS SolidSuit Tour de France French Colors - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01064P2-TDF08","featured_media":{"alt":null,"id":25742546206819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8880a9f71fcc81bcad7e10f892a7850ea8dbd7f2_7fe92c73-39ba-46c8-ae60-5bfa075a9460.webp?v=1750921798"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43497121742947,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0106452-TDF08","requires_shipping":true,"taxable":true,"featured_image":{"id":34081532346467,"product_id":7827200770147,"position":1,"created_at":"2025-06-26T15:09:55+08:00","updated_at":"2025-06-26T15:09:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5bb775e805e1e8f74ab725902f1a4dd58d4e31c_35891288-d89f-4955-868e-ca04f3e0bef6.webp?v=1750921798","variant_ids":[43497121742947]},"available":true,"name":"iPhone XS SolidSuit Tour de France French Colors - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0106452-TDF08","featured_media":{"alt":null,"id":25742546108515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5bb775e805e1e8f74ab725902f1a4dd58d4e31c_35891288-d89f-4955-868e-ca04f3e0bef6.webp?v=1750921798"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43497120039011,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"SST01064P2-TDF08","requires_shipping":true,"taxable":true,"featured_image":{"id":34081532444771,"product_id":7827200770147,"position":2,"created_at":"2025-06-26T15:09:56+08:00","updated_at":"2025-06-26T15:09:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8880a9f71fcc81bcad7e10f892a7850ea8dbd7f2_7fe92c73-39ba-46c8-ae60-5bfa075a9460.webp?v=1750921798","variant_ids":[43497120039011]},"available":true,"name":"iPhone XS SolidSuit Tour de France French Colors - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01064P2-TDF08","featured_media":{"alt":null,"id":25742546206819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8880a9f71fcc81bcad7e10f892a7850ea8dbd7f2_7fe92c73-39ba-46c8-ae60-5bfa075a9460.webp?v=1750921798"}},"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: "停產"
}