$product = {"id":7158825386083,"title":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Look - 人在做 加納利群島在看","handle":"iphone-13-mini-solidsuit-classic-magsafe-af08","description":null,"published_at":"2024-01-31T11:32:37+08:00","created_at":"2024-01-26T16:20:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit MagSafe專區-Look","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 13 mini","merge","reseller-solidsuit-magsafe-look","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":41211814183011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":30847440781411,"product_id":7158825386083,"position":11,"created_at":"2024-01-26T16:20:49+08:00","updated_at":"2024-01-26T16:20:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9295271ba1170ab2ff97de8945b125663087b78b.webp?v=1706257249","variant_ids":[41211814183011]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Look - 人在做 加納利群島在看 - 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-AF08","featured_media":{"alt":null,"id":23218520096867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9295271ba1170ab2ff97de8945b125663087b78b.webp?v=1706257249"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41211814576227,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":30847436554339,"product_id":7158825386083,"position":7,"created_at":"2024-01-26T16:20:38+08:00","updated_at":"2024-01-26T16:20:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ceae36acbb5f5bf197d8a32f333d4d1b609920.webp?v=1706257238","variant_ids":[41211814576227]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Look - 人在做 加納利群島在看 - 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-AF08","featured_media":{"alt":null,"id":23218515869795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ceae36acbb5f5bf197d8a32f333d4d1b609920.webp?v=1706257238"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dfd12ba5bd5fcdb39cdfde6525c9effb93a44db.webp?v=1706257223","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0273dc1dac171443b4702bb9a8197070056c1196.webp?v=1706257225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a806788e72166830ea85e9accd31215e5c549ee.webp?v=1706257228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c631e3ccc20810104da539f1427e817b216bfb.webp?v=1706257231","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860e28f21f34d9632060cc936386af2df19aa7d6.webp?v=1706257233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec0f44804fcc37e1aabcb29db7359e4792057a0e.webp?v=1706257236","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ceae36acbb5f5bf197d8a32f333d4d1b609920.webp?v=1706257238","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1d779fbd00eb5ea2bbdde59fb0badb2f860ccb9.webp?v=1706257241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8fc4c3c0c8b0cab99ed869b843a4d9eb2a308c.webp?v=1706257243","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c29bcadf65e8028f1eca6113bc8d5d0c71dbcfc.webp?v=1706257246","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9295271ba1170ab2ff97de8945b125663087b78b.webp?v=1706257249","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c887953344602a98dc9b98dbcf114ae7748b2f82.webp?v=1706257251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/087a6d3d840cf791583e7178e62735adb4aef8e8.webp?v=1706257256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd601188194d77ef78fbe332df425a52c06cc34e.webp?v=1706257259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31e8bb698a91205f2839ad8c5407f5a21be59e90.webp?v=1706257261"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dfd12ba5bd5fcdb39cdfde6525c9effb93a44db.webp?v=1706257223","options":["color"],"media":[{"alt":null,"id":23218508955747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dfd12ba5bd5fcdb39cdfde6525c9effb93a44db.webp?v=1706257223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dfd12ba5bd5fcdb39cdfde6525c9effb93a44db.webp?v=1706257223","width":2000},{"alt":null,"id":23218510168163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0273dc1dac171443b4702bb9a8197070056c1196.webp?v=1706257225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0273dc1dac171443b4702bb9a8197070056c1196.webp?v=1706257225","width":2000},{"alt":null,"id":23218511609955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a806788e72166830ea85e9accd31215e5c549ee.webp?v=1706257228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a806788e72166830ea85e9accd31215e5c549ee.webp?v=1706257228","width":2000},{"alt":null,"id":23218512855139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c631e3ccc20810104da539f1427e817b216bfb.webp?v=1706257231"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c631e3ccc20810104da539f1427e817b216bfb.webp?v=1706257231","width":2000},{"alt":null,"id":23218513707107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860e28f21f34d9632060cc936386af2df19aa7d6.webp?v=1706257233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860e28f21f34d9632060cc936386af2df19aa7d6.webp?v=1706257233","width":2000},{"alt":null,"id":23218514952291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec0f44804fcc37e1aabcb29db7359e4792057a0e.webp?v=1706257236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec0f44804fcc37e1aabcb29db7359e4792057a0e.webp?v=1706257236","width":2000},{"alt":null,"id":23218515869795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ceae36acbb5f5bf197d8a32f333d4d1b609920.webp?v=1706257238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ceae36acbb5f5bf197d8a32f333d4d1b609920.webp?v=1706257238","width":2000},{"alt":null,"id":23218517016675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1d779fbd00eb5ea2bbdde59fb0badb2f860ccb9.webp?v=1706257241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1d779fbd00eb5ea2bbdde59fb0badb2f860ccb9.webp?v=1706257241","width":2000},{"alt":null,"id":23218518065251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8fc4c3c0c8b0cab99ed869b843a4d9eb2a308c.webp?v=1706257243"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e8fc4c3c0c8b0cab99ed869b843a4d9eb2a308c.webp?v=1706257243","width":2000},{"alt":null,"id":23218519081059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c29bcadf65e8028f1eca6113bc8d5d0c71dbcfc.webp?v=1706257246"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c29bcadf65e8028f1eca6113bc8d5d0c71dbcfc.webp?v=1706257246","width":2000},{"alt":null,"id":23218520096867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9295271ba1170ab2ff97de8945b125663087b78b.webp?v=1706257249"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9295271ba1170ab2ff97de8945b125663087b78b.webp?v=1706257249","width":2000},{"alt":null,"id":23218521604195,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c887953344602a98dc9b98dbcf114ae7748b2f82.webp?v=1706257251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c887953344602a98dc9b98dbcf114ae7748b2f82.webp?v=1706257251","width":2000},{"alt":null,"id":23218523373667,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/087a6d3d840cf791583e7178e62735adb4aef8e8.webp?v=1706257256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/087a6d3d840cf791583e7178e62735adb4aef8e8.webp?v=1706257256","width":2000},{"alt":null,"id":23218524422243,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd601188194d77ef78fbe332df425a52c06cc34e.webp?v=1706257259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd601188194d77ef78fbe332df425a52c06cc34e.webp?v=1706257259","width":2000},{"alt":null,"id":23218525929571,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31e8bb698a91205f2839ad8c5407f5a21be59e90.webp?v=1706257261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31e8bb698a91205f2839ad8c5407f5a21be59e90.webp?v=1706257261","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41211814183011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":30847440781411,"product_id":7158825386083,"position":11,"created_at":"2024-01-26T16:20:49+08:00","updated_at":"2024-01-26T16:20:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9295271ba1170ab2ff97de8945b125663087b78b.webp?v=1706257249","variant_ids":[41211814183011]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Look - 人在做 加納利群島在看 - 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-AF08","featured_media":{"alt":null,"id":23218520096867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9295271ba1170ab2ff97de8945b125663087b78b.webp?v=1706257249"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41211814576227,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":30847436554339,"product_id":7158825386083,"position":7,"created_at":"2024-01-26T16:20:38+08:00","updated_at":"2024-01-26T16:20:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ceae36acbb5f5bf197d8a32f333d4d1b609920.webp?v=1706257238","variant_ids":[41211814576227]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Look - 人在做 加納利群島在看 - 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-AF08","featured_media":{"alt":null,"id":23218515869795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90ceae36acbb5f5bf197d8a32f333d4d1b609920.webp?v=1706257238"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41211814183011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":30847440781411,"product_id":7158825386083,"position":11,"created_at":"2024-01-26T16:20:49+08:00","updated_at":"2024-01-26T16:20:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9295271ba1170ab2ff97de8945b125663087b78b.webp?v=1706257249","variant_ids":[41211814183011]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Look - 人在做 加納利群島在看 - 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-AF08","featured_media":{"alt":null,"id":23218520096867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9295271ba1170ab2ff97de8945b125663087b78b.webp?v=1706257249"}},"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: "停產" }