$product = {"id":6984302231651,"title":"Galaxy S23+ SolidSuit NBA Logo-密爾瓦基公鹿 Milwaukee Bucks","handle":"samsung-galaxy-s23-plus-solidsuit-android-pm14","description":null,"published_at":"2023-08-02T22:44:30+08:00","created_at":"2023-07-28T13:46:45+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":43103493259363,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"SST0327452-PM14","requires_shipping":true,"taxable":true,"featured_image":{"id":30279007371363,"product_id":6984302231651,"position":1,"created_at":"2023-07-28T13:46:48+08:00","updated_at":"2023-07-28T13:46:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM14.png?v=1690523208","variant_ids":[43103493259363]},"available":true,"name":"Galaxy S23+ SolidSuit NBA Logo-密爾瓦基公鹿 Milwaukee Bucks - 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-PM14","featured_media":{"alt":null,"id":22637641236579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM14.png?v=1690523208"}},"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-PM14.png?v=1690523208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d.webp?v=1782216770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_dca4b132-d35c-4e5a-b973-c2baedea4142.webp?v=1782218647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_8f657c83-c902-458f-8c0f-b6b7b97eaa29.webp?v=1782218926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_58dab347-bb76-47a3-81c1-b24662a52869.webp?v=1782219217","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_d84a040f-2168-42f1-a815-1196b719a3c8.webp?v=1782959047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_4ea8c514-a7d4-42e5-8491-d10c2ca739d6.webp?v=1782959360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_37979c28-ef15-4d4a-8c5e-538e429d8dfa.webp?v=1782959455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_7142979f-5781-4904-aafa-314829eae371.webp?v=1782959522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_fae3fd79-fc06-4488-bc1c-5bbae31285db.webp?v=1782962429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_18f505f2-254d-4849-86be-c2c4a28f9d5b.webp?v=1782962718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_0a057363-b5ac-4198-8b7b-17a9db93239f.webp?v=1782962869","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_c846a4a3-5f4a-4225-964b-7a078713552e.webp?v=1782966592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_efe268dc-062c-4e13-8b27-7669bee4702d.webp?v=1782966778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_3563da0c-fab5-420b-a6a3-6b2632556b91.webp?v=1782966833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_33951348-f0c5-417c-ad3f-5a20e6b49b75.webp?v=1782966889"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM14.png?v=1690523208","options":["color","Types"],"media":[{"alt":null,"id":22637641236579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM14.png?v=1690523208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM14.png?v=1690523208","width":2000},{"alt":null,"id":27580774056035,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d.webp?v=1782216770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d.webp?v=1782216770","width":2000},{"alt":null,"id":27581573726307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_dca4b132-d35c-4e5a-b973-c2baedea4142.webp?v=1782218647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_dca4b132-d35c-4e5a-b973-c2baedea4142.webp?v=1782218647","width":2000},{"alt":null,"id":27581727113315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_8f657c83-c902-458f-8c0f-b6b7b97eaa29.webp?v=1782218926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_8f657c83-c902-458f-8c0f-b6b7b97eaa29.webp?v=1782218926","width":2000},{"alt":null,"id":27581872242787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_58dab347-bb76-47a3-81c1-b24662a52869.webp?v=1782219217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_58dab347-bb76-47a3-81c1-b24662a52869.webp?v=1782219217","width":2000},{"alt":null,"id":27656393949283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_d84a040f-2168-42f1-a815-1196b719a3c8.webp?v=1782959047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_d84a040f-2168-42f1-a815-1196b719a3c8.webp?v=1782959047","width":2000},{"alt":null,"id":27656505753699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_4ea8c514-a7d4-42e5-8491-d10c2ca739d6.webp?v=1782959360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_4ea8c514-a7d4-42e5-8491-d10c2ca739d6.webp?v=1782959360","width":2000},{"alt":null,"id":27656546091107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_37979c28-ef15-4d4a-8c5e-538e429d8dfa.webp?v=1782959455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_37979c28-ef15-4d4a-8c5e-538e429d8dfa.webp?v=1782959455","width":2000},{"alt":null,"id":27656583413859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_7142979f-5781-4904-aafa-314829eae371.webp?v=1782959522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_7142979f-5781-4904-aafa-314829eae371.webp?v=1782959522","width":2000},{"alt":null,"id":27656972959843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_fae3fd79-fc06-4488-bc1c-5bbae31285db.webp?v=1782962429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_fae3fd79-fc06-4488-bc1c-5bbae31285db.webp?v=1782962429","width":2000},{"alt":null,"id":27657008218211,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_18f505f2-254d-4849-86be-c2c4a28f9d5b.webp?v=1782962718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_18f505f2-254d-4849-86be-c2c4a28f9d5b.webp?v=1782962718","width":2000},{"alt":null,"id":27657029910627,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_0a057363-b5ac-4198-8b7b-17a9db93239f.webp?v=1782962869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_0a057363-b5ac-4198-8b7b-17a9db93239f.webp?v=1782962869","width":2000},{"alt":null,"id":27657483911267,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_c846a4a3-5f4a-4225-964b-7a078713552e.webp?v=1782966592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_c846a4a3-5f4a-4225-964b-7a078713552e.webp?v=1782966592","width":2000},{"alt":null,"id":27657526902883,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_efe268dc-062c-4e13-8b27-7669bee4702d.webp?v=1782966778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_efe268dc-062c-4e13-8b27-7669bee4702d.webp?v=1782966778","width":2000},{"alt":null,"id":27657536372835,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_3563da0c-fab5-420b-a6a3-6b2632556b91.webp?v=1782966833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_3563da0c-fab5-420b-a6a3-6b2632556b91.webp?v=1782966833","width":2000},{"alt":null,"id":27657545252963,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_33951348-f0c5-417c-ad3f-5a20e6b49b75.webp?v=1782966889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d488057ff2cce0bf8d05814a37ade9f1bf961a4d_33951348-f0c5-417c-ad3f-5a20e6b49b75.webp?v=1782966889","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43103493259363,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"SST0327452-PM14","requires_shipping":true,"taxable":true,"featured_image":{"id":30279007371363,"product_id":6984302231651,"position":1,"created_at":"2023-07-28T13:46:48+08:00","updated_at":"2023-07-28T13:46:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM14.png?v=1690523208","variant_ids":[43103493259363]},"available":true,"name":"Galaxy S23+ SolidSuit NBA Logo-密爾瓦基公鹿 Milwaukee Bucks - 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-PM14","featured_media":{"alt":null,"id":22637641236579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM14.png?v=1690523208"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43103493259363,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"SST0327452-PM14","requires_shipping":true,"taxable":true,"featured_image":{"id":30279007371363,"product_id":6984302231651,"position":1,"created_at":"2023-07-28T13:46:48+08:00","updated_at":"2023-07-28T13:46:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM14.png?v=1690523208","variant_ids":[43103493259363]},"available":true,"name":"Galaxy S23+ SolidSuit NBA Logo-密爾瓦基公鹿 Milwaukee Bucks - 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-PM14","featured_media":{"alt":null,"id":22637641236579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-274-PM14.png?v=1690523208"}},"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: "停產" }