Home
›
iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 寶可夢 Pokemon - 幾何系列-快龍
$product = {"id":7106891907171,"title":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 寶可夢 Pokemon - 幾何系列-快龍","handle":"iphone-13-mini-solidsuit-classic-magsafe-pe47","description":null,"published_at":"2023-12-05T13:50:06+08:00","created_at":"2023-12-01T14:50:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit MagSafe專區-寶可夢 Pokemon","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pokemon","device-iPhone 13 mini","merge","reseller-solidsuit-magsafe-pokemon","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":41024223281251,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-PE47","requires_shipping":true,"taxable":true,"featured_image":{"id":30642394103907,"product_id":7106891907171,"position":2,"created_at":"2023-12-01T14:50:38+08:00","updated_at":"2023-12-01T14:50:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60f86bf98a1e24f19adfda57527e9bd7a037c33a_f7302e07-70ea-4623-886c-a9dccd79c2a3.webp?v=1701413438","variant_ids":[41024223281251]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 寶可夢 Pokemon - 幾何系列-快龍 - 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-PE47","featured_media":{"alt":null,"id":23008970342499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60f86bf98a1e24f19adfda57527e9bd7a037c33a_f7302e07-70ea-4623-886c-a9dccd79c2a3.webp?v=1701413438"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41024223543395,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-PE47","requires_shipping":true,"taxable":true,"featured_image":{"id":30642395873379,"product_id":7106891907171,"position":5,"created_at":"2023-12-01T14:50:46+08:00","updated_at":"2023-12-01T14:50:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8949cf54f9a1c77fb7ac0a7350e6501ee939cd94_c88793c9-2894-43d4-8379-98ed359dbafd.webp?v=1701413446","variant_ids":[41024223543395]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 寶可夢 Pokemon - 幾何系列-快龍 - 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-PE47","featured_media":{"alt":null,"id":23008972111971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8949cf54f9a1c77fb7ac0a7350e6501ee939cd94_c88793c9-2894-43d4-8379-98ed359dbafd.webp?v=1701413446"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32975671411f6d0a6d529b64f0231433a195339a_37bef03e-cd47-40b8-8d50-19c860a365bb.webp?v=1701413436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60f86bf98a1e24f19adfda57527e9bd7a037c33a_f7302e07-70ea-4623-886c-a9dccd79c2a3.webp?v=1701413438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73bed288bae8c530b8a54c4f14afb60fccd30b03_9f320c45-2b64-40bd-baad-5f1869e922c3.webp?v=1701413441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c1806ba6f3e1d6d64cfb31dc1c3731953fe37dd_2c4a599b-d5c4-4dfe-9a35-0bd2f142dbdb.webp?v=1701413443","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8949cf54f9a1c77fb7ac0a7350e6501ee939cd94_c88793c9-2894-43d4-8379-98ed359dbafd.webp?v=1701413446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0f2df270bff736c9c30d555ae63c22a4dfda900_f423b8f4-d136-4b6c-a67f-c63721a147b1.webp?v=1701413448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60bdaf3771d4d82e4021a288d1f5411b47e78059_97070715-724b-446c-a9c8-62de6ced1f00.webp?v=1701413451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aea1e003252e49397d0d97cb0c3c44cd988b4450_80abc39e-e822-4e0b-bee5-ce4291ec8a53.webp?v=1701413453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35f5435f2ec5f69fa4291c4f35f70f685c22fc5f_09957904-f355-43a0-ad1b-a32929c7dd47.webp?v=1701413456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2f1d4d8191f68fc39faf07f2558170aef114afb_7dad63a2-0ebd-40cd-b9e4-0823f03455cd.webp?v=1701413458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7606c0f7e98b18e02a64ae035eea28344f5ed202_3c1e70bd-0cf2-40f3-97e3-ee136795dbc0.webp?v=1701413460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f30a47dcf66dc085e75f9c36ad9795893b34092_7fd203ec-eeaa-45c2-84fa-f2a528185562.webp?v=1701413463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/175d556a964e72846e382ebae554555bd4704da1_fb31f042-81f9-4e56-a816-fdaeb70b455b.webp?v=1701413468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8871e5f41404c7df7918c322a8b68b33ab2976e4_6756e49e-dd73-435b-93a0-14d0ca91418c.webp?v=1701413470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07108f4c497c2ea490f2407b29439fcf6959ba66_80169961-5f3b-49ee-88d2-a38feb0fd743.webp?v=1701413473"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32975671411f6d0a6d529b64f0231433a195339a_37bef03e-cd47-40b8-8d50-19c860a365bb.webp?v=1701413436","options":["color"],"media":[{"alt":null,"id":23008969883747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32975671411f6d0a6d529b64f0231433a195339a_37bef03e-cd47-40b8-8d50-19c860a365bb.webp?v=1701413436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32975671411f6d0a6d529b64f0231433a195339a_37bef03e-cd47-40b8-8d50-19c860a365bb.webp?v=1701413436","width":2000},{"alt":null,"id":23008970342499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60f86bf98a1e24f19adfda57527e9bd7a037c33a_f7302e07-70ea-4623-886c-a9dccd79c2a3.webp?v=1701413438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60f86bf98a1e24f19adfda57527e9bd7a037c33a_f7302e07-70ea-4623-886c-a9dccd79c2a3.webp?v=1701413438","width":2000},{"alt":null,"id":23008970965091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73bed288bae8c530b8a54c4f14afb60fccd30b03_9f320c45-2b64-40bd-baad-5f1869e922c3.webp?v=1701413441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73bed288bae8c530b8a54c4f14afb60fccd30b03_9f320c45-2b64-40bd-baad-5f1869e922c3.webp?v=1701413441","width":2000},{"alt":null,"id":23008971587683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c1806ba6f3e1d6d64cfb31dc1c3731953fe37dd_2c4a599b-d5c4-4dfe-9a35-0bd2f142dbdb.webp?v=1701413443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c1806ba6f3e1d6d64cfb31dc1c3731953fe37dd_2c4a599b-d5c4-4dfe-9a35-0bd2f142dbdb.webp?v=1701413443","width":2000},{"alt":null,"id":23008972111971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8949cf54f9a1c77fb7ac0a7350e6501ee939cd94_c88793c9-2894-43d4-8379-98ed359dbafd.webp?v=1701413446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8949cf54f9a1c77fb7ac0a7350e6501ee939cd94_c88793c9-2894-43d4-8379-98ed359dbafd.webp?v=1701413446","width":2000},{"alt":null,"id":23008972669027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0f2df270bff736c9c30d555ae63c22a4dfda900_f423b8f4-d136-4b6c-a67f-c63721a147b1.webp?v=1701413448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0f2df270bff736c9c30d555ae63c22a4dfda900_f423b8f4-d136-4b6c-a67f-c63721a147b1.webp?v=1701413448","width":2000},{"alt":null,"id":23008973258851,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60bdaf3771d4d82e4021a288d1f5411b47e78059_97070715-724b-446c-a9c8-62de6ced1f00.webp?v=1701413451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60bdaf3771d4d82e4021a288d1f5411b47e78059_97070715-724b-446c-a9c8-62de6ced1f00.webp?v=1701413451","width":2000},{"alt":null,"id":23008973815907,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aea1e003252e49397d0d97cb0c3c44cd988b4450_80abc39e-e822-4e0b-bee5-ce4291ec8a53.webp?v=1701413453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aea1e003252e49397d0d97cb0c3c44cd988b4450_80abc39e-e822-4e0b-bee5-ce4291ec8a53.webp?v=1701413453","width":2000},{"alt":null,"id":23008974340195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35f5435f2ec5f69fa4291c4f35f70f685c22fc5f_09957904-f355-43a0-ad1b-a32929c7dd47.webp?v=1701413456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35f5435f2ec5f69fa4291c4f35f70f685c22fc5f_09957904-f355-43a0-ad1b-a32929c7dd47.webp?v=1701413456","width":2000},{"alt":null,"id":23008974962787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2f1d4d8191f68fc39faf07f2558170aef114afb_7dad63a2-0ebd-40cd-b9e4-0823f03455cd.webp?v=1701413458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2f1d4d8191f68fc39faf07f2558170aef114afb_7dad63a2-0ebd-40cd-b9e4-0823f03455cd.webp?v=1701413458","width":2000},{"alt":null,"id":23008975618147,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7606c0f7e98b18e02a64ae035eea28344f5ed202_3c1e70bd-0cf2-40f3-97e3-ee136795dbc0.webp?v=1701413460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7606c0f7e98b18e02a64ae035eea28344f5ed202_3c1e70bd-0cf2-40f3-97e3-ee136795dbc0.webp?v=1701413460","width":2000},{"alt":null,"id":23008976240739,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f30a47dcf66dc085e75f9c36ad9795893b34092_7fd203ec-eeaa-45c2-84fa-f2a528185562.webp?v=1701413463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f30a47dcf66dc085e75f9c36ad9795893b34092_7fd203ec-eeaa-45c2-84fa-f2a528185562.webp?v=1701413463","width":2000},{"alt":null,"id":23008977453155,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/175d556a964e72846e382ebae554555bd4704da1_fb31f042-81f9-4e56-a816-fdaeb70b455b.webp?v=1701413468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/175d556a964e72846e382ebae554555bd4704da1_fb31f042-81f9-4e56-a816-fdaeb70b455b.webp?v=1701413468","width":2000},{"alt":null,"id":23008977977443,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8871e5f41404c7df7918c322a8b68b33ab2976e4_6756e49e-dd73-435b-93a0-14d0ca91418c.webp?v=1701413470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8871e5f41404c7df7918c322a8b68b33ab2976e4_6756e49e-dd73-435b-93a0-14d0ca91418c.webp?v=1701413470","width":2000},{"alt":null,"id":23008978567267,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07108f4c497c2ea490f2407b29439fcf6959ba66_80169961-5f3b-49ee-88d2-a38feb0fd743.webp?v=1701413473"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07108f4c497c2ea490f2407b29439fcf6959ba66_80169961-5f3b-49ee-88d2-a38feb0fd743.webp?v=1701413473","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41024223281251,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-PE47","requires_shipping":true,"taxable":true,"featured_image":{"id":30642394103907,"product_id":7106891907171,"position":2,"created_at":"2023-12-01T14:50:38+08:00","updated_at":"2023-12-01T14:50:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60f86bf98a1e24f19adfda57527e9bd7a037c33a_f7302e07-70ea-4623-886c-a9dccd79c2a3.webp?v=1701413438","variant_ids":[41024223281251]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 寶可夢 Pokemon - 幾何系列-快龍 - 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-PE47","featured_media":{"alt":null,"id":23008970342499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60f86bf98a1e24f19adfda57527e9bd7a037c33a_f7302e07-70ea-4623-886c-a9dccd79c2a3.webp?v=1701413438"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41024223543395,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-PE47","requires_shipping":true,"taxable":true,"featured_image":{"id":30642395873379,"product_id":7106891907171,"position":5,"created_at":"2023-12-01T14:50:46+08:00","updated_at":"2023-12-01T14:50:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8949cf54f9a1c77fb7ac0a7350e6501ee939cd94_c88793c9-2894-43d4-8379-98ed359dbafd.webp?v=1701413446","variant_ids":[41024223543395]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 寶可夢 Pokemon - 幾何系列-快龍 - 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-PE47","featured_media":{"alt":null,"id":23008972111971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8949cf54f9a1c77fb7ac0a7350e6501ee939cd94_c88793c9-2894-43d4-8379-98ed359dbafd.webp?v=1701413446"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41024223281251,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-PE47","requires_shipping":true,"taxable":true,"featured_image":{"id":30642394103907,"product_id":7106891907171,"position":2,"created_at":"2023-12-01T14:50:38+08:00","updated_at":"2023-12-01T14:50:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60f86bf98a1e24f19adfda57527e9bd7a037c33a_f7302e07-70ea-4623-886c-a9dccd79c2a3.webp?v=1701413438","variant_ids":[41024223281251]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 寶可夢 Pokemon - 幾何系列-快龍 - 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-PE47","featured_media":{"alt":null,"id":23008970342499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60f86bf98a1e24f19adfda57527e9bd7a037c33a_f7302e07-70ea-4623-886c-a9dccd79c2a3.webp?v=1701413438"}},"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: "停產"
}