$product = {"id":6988545917027,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) Zzifan_z 早安女孩","handle":"iphone-13-mini-solidsuit-classic-magsafe-gi07","description":null,"published_at":"2023-08-03T02:41:06+08:00","created_at":"2023-07-31T14:02:18+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區哈利波特 Harry Potter","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-zzifanz","device-iPhone 13 Mini","merge","reseller-zzifanz"],"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":43102148886627,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0122852-GI07","requires_shipping":true,"taxable":true,"featured_image":{"id":30289310941283,"product_id":6988545917027,"position":1,"created_at":"2023-07-31T14:07:00+08:00","updated_at":"2023-07-31T14:07:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GI07_71007ab2-1880-4eb9-806e-45685b053b98.png?v=1690783620","variant_ids":[43102148886627]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Zzifan_z 早安女孩 - Black \/ Classic","public_title":"Black \/ Classic","options":["Black","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-GI07","featured_media":{"alt":null,"id":22648029839459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GI07_71007ab2-1880-4eb9-806e-45685b053b98.png?v=1690783620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GI07_71007ab2-1880-4eb9-806e-45685b053b98.png?v=1690783620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d.webp?v=1782880453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690.webp?v=1782880453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_b1153c22-1d76-4d75-bda0-f7e0327fb3ca.webp?v=1782889553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_01b69f04-23c5-4458-ad6c-b7da06fa74e8.webp?v=1782889554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_3916f4a4-17f9-443e-9376-183a7bd0f818.webp?v=1782889755","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_b8b5aee5-9398-4a16-a69b-2fc62cbdae5c.webp?v=1782889772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_e20d515b-c64f-4a3f-b04d-c5f6be0b902a.webp?v=1782889908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_b3a9ff15-526f-4847-86ec-73d105d8ffba.webp?v=1782889908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_5ad4beb5-9ebc-4e84-956c-676406321d7c.webp?v=1784541786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_a7269c9a-8ffb-4f8e-96ea-8508e53c70ab.webp?v=1784541788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_a79fb757-6d78-4aae-b691-bb0513b1f127.webp?v=1784547903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_3f28a73a-4329-4648-b296-7dc9e20d9460.webp?v=1784547904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_212575cf-0b55-4d01-8257-877c0347d9c2.webp?v=1784548024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_b6497f91-de5d-4eae-b1ed-c9de9242193c.webp?v=1784548027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_0453e68b-310a-4c64-a486-a853680817e3.webp?v=1784548171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_71e26cb4-95e5-4f41-97a7-e3cab16f2dcc.webp?v=1784548174"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GI07_71007ab2-1880-4eb9-806e-45685b053b98.png?v=1690783620","options":["color","Types"],"media":[{"alt":null,"id":22648029839459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GI07_71007ab2-1880-4eb9-806e-45685b053b98.png?v=1690783620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GI07_71007ab2-1880-4eb9-806e-45685b053b98.png?v=1690783620","width":2000},{"alt":null,"id":27646836473955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d.webp?v=1782880453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d.webp?v=1782880453","width":2000},{"alt":null,"id":27646836768867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690.webp?v=1782880453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690.webp?v=1782880453","width":2000},{"alt":null,"id":27650314043491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_b1153c22-1d76-4d75-bda0-f7e0327fb3ca.webp?v=1782889553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_b1153c22-1d76-4d75-bda0-f7e0327fb3ca.webp?v=1782889553","width":2000},{"alt":null,"id":27650314403939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_01b69f04-23c5-4458-ad6c-b7da06fa74e8.webp?v=1782889554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_01b69f04-23c5-4458-ad6c-b7da06fa74e8.webp?v=1782889554","width":2000},{"alt":null,"id":27650390163555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_3916f4a4-17f9-443e-9376-183a7bd0f818.webp?v=1782889755"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_3916f4a4-17f9-443e-9376-183a7bd0f818.webp?v=1782889755","width":2000},{"alt":null,"id":27650391244899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_b8b5aee5-9398-4a16-a69b-2fc62cbdae5c.webp?v=1782889772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_b8b5aee5-9398-4a16-a69b-2fc62cbdae5c.webp?v=1782889772","width":2000},{"alt":null,"id":27650451669091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_e20d515b-c64f-4a3f-b04d-c5f6be0b902a.webp?v=1782889908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_e20d515b-c64f-4a3f-b04d-c5f6be0b902a.webp?v=1782889908","width":2000},{"alt":null,"id":27650452127843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_b3a9ff15-526f-4847-86ec-73d105d8ffba.webp?v=1782889908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_b3a9ff15-526f-4847-86ec-73d105d8ffba.webp?v=1782889908","width":2000},{"alt":null,"id":27826463178851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_5ad4beb5-9ebc-4e84-956c-676406321d7c.webp?v=1784541786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_5ad4beb5-9ebc-4e84-956c-676406321d7c.webp?v=1784541786","width":2000},{"alt":null,"id":27826463703139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_a7269c9a-8ffb-4f8e-96ea-8508e53c70ab.webp?v=1784541788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_a7269c9a-8ffb-4f8e-96ea-8508e53c70ab.webp?v=1784541788","width":2000},{"alt":null,"id":27828047544419,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_a79fb757-6d78-4aae-b691-bb0513b1f127.webp?v=1784547903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_a79fb757-6d78-4aae-b691-bb0513b1f127.webp?v=1784547903","width":2000},{"alt":null,"id":27828047675491,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_3f28a73a-4329-4648-b296-7dc9e20d9460.webp?v=1784547904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_3f28a73a-4329-4648-b296-7dc9e20d9460.webp?v=1784547904","width":2000},{"alt":null,"id":27828087914595,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_212575cf-0b55-4d01-8257-877c0347d9c2.webp?v=1784548024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_212575cf-0b55-4d01-8257-877c0347d9c2.webp?v=1784548024","width":2000},{"alt":null,"id":27828088569955,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_b6497f91-de5d-4eae-b1ed-c9de9242193c.webp?v=1784548027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_b6497f91-de5d-4eae-b1ed-c9de9242193c.webp?v=1784548027","width":2000},{"alt":null,"id":27828119732323,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_0453e68b-310a-4c64-a486-a853680817e3.webp?v=1784548171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f946f9da677e37b8275d237ddd1e15c3d8187690_0453e68b-310a-4c64-a486-a853680817e3.webp?v=1784548171","width":2000},{"alt":null,"id":27828119994467,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_71e26cb4-95e5-4f41-97a7-e3cab16f2dcc.webp?v=1784548174"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef78a6cdbcb22a200c4c437d7e7a8789c1756e8d_71e26cb4-95e5-4f41-97a7-e3cab16f2dcc.webp?v=1784548174","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43102148886627,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0122852-GI07","requires_shipping":true,"taxable":true,"featured_image":{"id":30289310941283,"product_id":6988545917027,"position":1,"created_at":"2023-07-31T14:07:00+08:00","updated_at":"2023-07-31T14:07:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GI07_71007ab2-1880-4eb9-806e-45685b053b98.png?v=1690783620","variant_ids":[43102148886627]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Zzifan_z 早安女孩 - Black \/ Classic","public_title":"Black \/ Classic","options":["Black","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-GI07","featured_media":{"alt":null,"id":22648029839459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GI07_71007ab2-1880-4eb9-806e-45685b053b98.png?v=1690783620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43102148886627,"title":"Black \/ Classic","option1":"Black","option2":"Classic","option3":null,"sku":"MST0122852-GI07","requires_shipping":true,"taxable":true,"featured_image":{"id":30289310941283,"product_id":6988545917027,"position":1,"created_at":"2023-07-31T14:07:00+08:00","updated_at":"2023-07-31T14:07:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GI07_71007ab2-1880-4eb9-806e-45685b053b98.png?v=1690783620","variant_ids":[43102148886627]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) Zzifan_z 早安女孩 - Black \/ Classic","public_title":"Black \/ Classic","options":["Black","Classic"],"price":125000,"weight":1250,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-GI07","featured_media":{"alt":null,"id":22648029839459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-228-GI07_71007ab2-1880-4eb9-806e-45685b053b98.png?v=1690783620"}},"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: "停產" }