$product = {"id":6984103919715,"title":"Galaxy S23+ SolidSuit NBA Logo-波士頓塞爾提克 Boston Celtics","handle":"samsung-galaxy-s23-plus-solidsuit-android-pm19","description":null,"published_at":"2023-08-02T22:33:10+08:00","created_at":"2023-07-28T13:24:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit MagSafe專區-爽爽貓 Song Song Meow By SECOND","tags":["10%","20%","30%","40%","50%","brand-Samsung","designer","designer-nba","device-Galaxy S23+","merge","reseller-nba"],"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":43102071881827,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"SST0327452-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":30278758236259,"product_id":6984103919715,"position":1,"created_at":"2023-07-28T13:24:46+08:00","updated_at":"2023-07-28T13:24:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM19.png?v=1690521886","variant_ids":[43102071881827]},"available":true,"name":"Galaxy S23+ SolidSuit NBA Logo-波士頓塞爾提克 Boston Celtics - Black \/ Classic","public_title":"Black \/ Classic","options":["Black","Classic"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0327452-PM19","featured_media":{"alt":null,"id":22637391478883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM19.png?v=1690521886"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM19.png?v=1690521886","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b.webp?v=1782216771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_865a1a95-e90f-4ee6-9b51-758f8de54cb4.webp?v=1782218647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_f02f2594-1123-44d8-b5e1-9ebeffc9d5d7.webp?v=1782218926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_5b552673-7bdc-4d86-a908-bf69388ab2b7.webp?v=1782219219","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_226da09e-71fc-4309-96a3-4213c2b89814.webp?v=1782959047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_cc928bbb-ee69-478f-b629-6fd9719a8a2e.webp?v=1782959360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_ae353110-dfdb-4eac-81f8-335b6e5b9af6.webp?v=1782959454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_f5c67e83-c612-43f4-b7da-91ae7499d626.webp?v=1782959522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_9e2aab93-7b83-442b-946f-1bbd0e0caf04.webp?v=1782962403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_7afdbe52-b483-438f-bf95-0de706722776.webp?v=1782962711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_5b198f5e-0691-4f9d-9773-ae6a5deec5a6.webp?v=1782962811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_037f9acb-0e48-4885-89b6-53dbe41476dc.webp?v=1782962870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_0cee8821-a4e2-4dd4-8448-3f4cafbd4f96.webp?v=1782966593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_6244ae25-683d-4111-a56c-91291d6e1549.webp?v=1782966777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_718c8265-e238-4788-8acc-92afa06a6c64.webp?v=1782966833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_f8f4ac3a-da05-42ae-9688-a01a62238fb1.webp?v=1782966889"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM19.png?v=1690521886","options":["color","Types"],"media":[{"alt":null,"id":22637391478883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM19.png?v=1690521886"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM19.png?v=1690521886","width":2000},{"alt":null,"id":27580774187107,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b.webp?v=1782216771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b.webp?v=1782216771","width":2000},{"alt":null,"id":27581573529699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_865a1a95-e90f-4ee6-9b51-758f8de54cb4.webp?v=1782218647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_865a1a95-e90f-4ee6-9b51-758f8de54cb4.webp?v=1782218647","width":2000},{"alt":null,"id":27581727801443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_f02f2594-1123-44d8-b5e1-9ebeffc9d5d7.webp?v=1782218926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_f02f2594-1123-44d8-b5e1-9ebeffc9d5d7.webp?v=1782218926","width":2000},{"alt":null,"id":27581873094755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_5b552673-7bdc-4d86-a908-bf69388ab2b7.webp?v=1782219219"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_5b552673-7bdc-4d86-a908-bf69388ab2b7.webp?v=1782219219","width":2000},{"alt":null,"id":27656393916515,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_226da09e-71fc-4309-96a3-4213c2b89814.webp?v=1782959047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_226da09e-71fc-4309-96a3-4213c2b89814.webp?v=1782959047","width":2000},{"alt":null,"id":27656505589859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_cc928bbb-ee69-478f-b629-6fd9719a8a2e.webp?v=1782959360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_cc928bbb-ee69-478f-b629-6fd9719a8a2e.webp?v=1782959360","width":2000},{"alt":null,"id":27656545796195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_ae353110-dfdb-4eac-81f8-335b6e5b9af6.webp?v=1782959454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_ae353110-dfdb-4eac-81f8-335b6e5b9af6.webp?v=1782959454","width":2000},{"alt":null,"id":27656583479395,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_f5c67e83-c612-43f4-b7da-91ae7499d626.webp?v=1782959522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_f5c67e83-c612-43f4-b7da-91ae7499d626.webp?v=1782959522","width":2000},{"alt":null,"id":27656971485283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_9e2aab93-7b83-442b-946f-1bbd0e0caf04.webp?v=1782962403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_9e2aab93-7b83-442b-946f-1bbd0e0caf04.webp?v=1782962403","width":2000},{"alt":null,"id":27657008021603,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_7afdbe52-b483-438f-bf95-0de706722776.webp?v=1782962711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_7afdbe52-b483-438f-bf95-0de706722776.webp?v=1782962711","width":2000},{"alt":null,"id":27657021685859,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_5b198f5e-0691-4f9d-9773-ae6a5deec5a6.webp?v=1782962811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_5b198f5e-0691-4f9d-9773-ae6a5deec5a6.webp?v=1782962811","width":2000},{"alt":null,"id":27657029943395,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_037f9acb-0e48-4885-89b6-53dbe41476dc.webp?v=1782962870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_037f9acb-0e48-4885-89b6-53dbe41476dc.webp?v=1782962870","width":2000},{"alt":null,"id":27657484075107,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_0cee8821-a4e2-4dd4-8448-3f4cafbd4f96.webp?v=1782966593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_0cee8821-a4e2-4dd4-8448-3f4cafbd4f96.webp?v=1782966593","width":2000},{"alt":null,"id":27657526870115,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_6244ae25-683d-4111-a56c-91291d6e1549.webp?v=1782966777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_6244ae25-683d-4111-a56c-91291d6e1549.webp?v=1782966777","width":2000},{"alt":null,"id":27657536307299,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_718c8265-e238-4788-8acc-92afa06a6c64.webp?v=1782966833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_718c8265-e238-4788-8acc-92afa06a6c64.webp?v=1782966833","width":2000},{"alt":null,"id":27657545351267,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_f8f4ac3a-da05-42ae-9688-a01a62238fb1.webp?v=1782966889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e393b50ed6d69e47f8a50764f0b39ce4bb32b6b_f8f4ac3a-da05-42ae-9688-a01a62238fb1.webp?v=1782966889","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43102071881827,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"SST0327452-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":30278758236259,"product_id":6984103919715,"position":1,"created_at":"2023-07-28T13:24:46+08:00","updated_at":"2023-07-28T13:24:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM19.png?v=1690521886","variant_ids":[43102071881827]},"available":true,"name":"Galaxy S23+ SolidSuit NBA Logo-波士頓塞爾提克 Boston Celtics - Black \/ Classic","public_title":"Black \/ Classic","options":["Black","Classic"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0327452-PM19","featured_media":{"alt":null,"id":22637391478883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM19.png?v=1690521886"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43102071881827,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"SST0327452-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":30278758236259,"product_id":6984103919715,"position":1,"created_at":"2023-07-28T13:24:46+08:00","updated_at":"2023-07-28T13:24:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM19.png?v=1690521886","variant_ids":[43102071881827]},"available":true,"name":"Galaxy S23+ SolidSuit NBA Logo-波士頓塞爾提克 Boston Celtics - Black \/ Classic","public_title":"Black \/ Classic","options":["Black","Classic"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0327452-PM19","featured_media":{"alt":null,"id":22637391478883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM19.png?v=1690521886"}},"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: "停產" }