$product = {"id":7233692434531,"title":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 柴語錄 Shiba Says - 放我出去♥","handle":"iphone-13-mini-solidsuit-classic-magsafe-fz04","description":null,"published_at":"2024-03-18T09:16:48+08:00","created_at":"2024-03-18T09:11:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit MagSafe專區-柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 13 mini","merge","reseller-solidsuit-magsafe-shiba-says","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":41443247095907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31085075005539,"product_id":7233692434531,"position":11,"created_at":"2024-03-18T09:12:20+08:00","updated_at":"2024-03-18T09:12:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcc8de561aeb3a390f404ec09db0b302efa9617.webp?v=1710724340","variant_ids":[41443247095907]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 柴語錄 Shiba Says - 放我出去♥ - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-FZ04","featured_media":{"alt":null,"id":23465652158563,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcc8de561aeb3a390f404ec09db0b302efa9617.webp?v=1710724340"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41443247358051,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31085074481251,"product_id":7233692434531,"position":10,"created_at":"2024-03-18T09:12:17+08:00","updated_at":"2024-03-18T09:12:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b32adb41475c053f052a550d1c6fa981f9752b7.webp?v=1710724338","variant_ids":[41443247358051]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 柴語錄 Shiba Says - 放我出去♥ - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-FZ04","featured_media":{"alt":null,"id":23465651699811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b32adb41475c053f052a550d1c6fa981f9752b7.webp?v=1710724338"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2338ad89408527068f840db0c266124bc3638cf1.webp?v=1710724316","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39ba1a20518546adeacfa643b05b46c67105aff4.webp?v=1710724318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f95b82ff4904876f36196d62c9409751ccc730.webp?v=1710724320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f9a1eff562a4e6ee346f2f2734d67472d54748.webp?v=1710724323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41deb7978fd46f93485aeb7a15e85676926d2906.webp?v=1710724326","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3bc33f3ecb2428035dc0aa925a04dd7f9b9e86.webp?v=1710724329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87b59e3d8f608c73fe1ccffbf614f953a1bdd96e.webp?v=1710724331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c5c7be4fffaa219571ab07a567567a8f717197e.webp?v=1710724333","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587b9bef80b8c20a9774dab6216f328a3ebe2d72.webp?v=1710724335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b32adb41475c053f052a550d1c6fa981f9752b7.webp?v=1710724338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcc8de561aeb3a390f404ec09db0b302efa9617.webp?v=1710724340","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7dab79f567d647ad3ba7608fd54d2ef4ab8df91.webp?v=1710724342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a299d347f9b2d53db2120faf444d5a2e2c84aaef.webp?v=1710724344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed64147895dde65145cf1c97f09a96a8b768c03.webp?v=1710724346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31d6767e45f08fd34819d7ad2943b341a531ab74.webp?v=1710724348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8c92979001dee86587673bee13455054724c3b.webp?v=1710724350"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2338ad89408527068f840db0c266124bc3638cf1.webp?v=1710724316","options":["color"],"media":[{"alt":null,"id":23465647669347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2338ad89408527068f840db0c266124bc3638cf1.webp?v=1710724316"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2338ad89408527068f840db0c266124bc3638cf1.webp?v=1710724316","width":2000},{"alt":null,"id":23465648095331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39ba1a20518546adeacfa643b05b46c67105aff4.webp?v=1710724318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39ba1a20518546adeacfa643b05b46c67105aff4.webp?v=1710724318","width":2000},{"alt":null,"id":23465648586851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f95b82ff4904876f36196d62c9409751ccc730.webp?v=1710724320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f95b82ff4904876f36196d62c9409751ccc730.webp?v=1710724320","width":2000},{"alt":null,"id":23465649012835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f9a1eff562a4e6ee346f2f2734d67472d54748.webp?v=1710724323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7f9a1eff562a4e6ee346f2f2734d67472d54748.webp?v=1710724323","width":2000},{"alt":null,"id":23465649504355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41deb7978fd46f93485aeb7a15e85676926d2906.webp?v=1710724326"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41deb7978fd46f93485aeb7a15e85676926d2906.webp?v=1710724326","width":2000},{"alt":null,"id":23465650126947,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3bc33f3ecb2428035dc0aa925a04dd7f9b9e86.webp?v=1710724329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3bc33f3ecb2428035dc0aa925a04dd7f9b9e86.webp?v=1710724329","width":2000},{"alt":null,"id":23465650454627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87b59e3d8f608c73fe1ccffbf614f953a1bdd96e.webp?v=1710724331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87b59e3d8f608c73fe1ccffbf614f953a1bdd96e.webp?v=1710724331","width":2000},{"alt":null,"id":23465650946147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c5c7be4fffaa219571ab07a567567a8f717197e.webp?v=1710724333"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c5c7be4fffaa219571ab07a567567a8f717197e.webp?v=1710724333","width":2000},{"alt":null,"id":23465651339363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587b9bef80b8c20a9774dab6216f328a3ebe2d72.webp?v=1710724335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587b9bef80b8c20a9774dab6216f328a3ebe2d72.webp?v=1710724335","width":2000},{"alt":null,"id":23465651699811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b32adb41475c053f052a550d1c6fa981f9752b7.webp?v=1710724338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b32adb41475c053f052a550d1c6fa981f9752b7.webp?v=1710724338","width":2000},{"alt":null,"id":23465652158563,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcc8de561aeb3a390f404ec09db0b302efa9617.webp?v=1710724340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcc8de561aeb3a390f404ec09db0b302efa9617.webp?v=1710724340","width":2000},{"alt":null,"id":23465652682851,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7dab79f567d647ad3ba7608fd54d2ef4ab8df91.webp?v=1710724342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7dab79f567d647ad3ba7608fd54d2ef4ab8df91.webp?v=1710724342","width":2000},{"alt":null,"id":23465653141603,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a299d347f9b2d53db2120faf444d5a2e2c84aaef.webp?v=1710724344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a299d347f9b2d53db2120faf444d5a2e2c84aaef.webp?v=1710724344","width":2000},{"alt":null,"id":23465653665891,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed64147895dde65145cf1c97f09a96a8b768c03.webp?v=1710724346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ed64147895dde65145cf1c97f09a96a8b768c03.webp?v=1710724346","width":2000},{"alt":null,"id":23465654321251,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31d6767e45f08fd34819d7ad2943b341a531ab74.webp?v=1710724348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31d6767e45f08fd34819d7ad2943b341a531ab74.webp?v=1710724348","width":2000},{"alt":null,"id":23465654747235,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8c92979001dee86587673bee13455054724c3b.webp?v=1710724350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f8c92979001dee86587673bee13455054724c3b.webp?v=1710724350","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41443247095907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31085075005539,"product_id":7233692434531,"position":11,"created_at":"2024-03-18T09:12:20+08:00","updated_at":"2024-03-18T09:12:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcc8de561aeb3a390f404ec09db0b302efa9617.webp?v=1710724340","variant_ids":[41443247095907]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 柴語錄 Shiba Says - 放我出去♥ - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-FZ04","featured_media":{"alt":null,"id":23465652158563,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcc8de561aeb3a390f404ec09db0b302efa9617.webp?v=1710724340"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41443247358051,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31085074481251,"product_id":7233692434531,"position":10,"created_at":"2024-03-18T09:12:17+08:00","updated_at":"2024-03-18T09:12:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b32adb41475c053f052a550d1c6fa981f9752b7.webp?v=1710724338","variant_ids":[41443247358051]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 柴語錄 Shiba Says - 放我出去♥ - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-FZ04","featured_media":{"alt":null,"id":23465651699811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b32adb41475c053f052a550d1c6fa981f9752b7.webp?v=1710724338"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41443247095907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31085075005539,"product_id":7233692434531,"position":11,"created_at":"2024-03-18T09:12:20+08:00","updated_at":"2024-03-18T09:12:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcc8de561aeb3a390f404ec09db0b302efa9617.webp?v=1710724340","variant_ids":[41443247095907]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 柴語錄 Shiba Says - 放我出去♥ - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-FZ04","featured_media":{"alt":null,"id":23465652158563,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dcc8de561aeb3a390f404ec09db0b302efa9617.webp?v=1710724340"}},"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: "停產" }