$product = {"id":7189366341731,"title":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 蝙蝠俠出任務","handle":"iphone-13-mini-solidsuit-classic-magsafe-sb06","description":null,"published_at":"2024-02-27T15:42:25+08:00","created_at":"2024-02-23T17:41:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit MagSafe專區-Batman","tags":["20%","20240304-reseller-\u003ereplace_to-","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 13 mini","merge","reseller-solidsuit-magsafe-batman","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":41311969411171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":30978158624867,"product_id":7189366341731,"position":5,"created_at":"2024-02-26T13:29:43+08:00","updated_at":"2024-02-26T13:29:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e005844d8e397a78f2e9228f8cc0a3b4fecc9e85.webp?v=1708925383","variant_ids":[41311969411171]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 蝙蝠俠出任務 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-SB06","featured_media":{"alt":null,"id":23354615627875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e005844d8e397a78f2e9228f8cc0a3b4fecc9e85.webp?v=1708925383"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41311969673315,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":30978157019235,"product_id":7189366341731,"position":2,"created_at":"2024-02-26T13:29:36+08:00","updated_at":"2024-02-26T13:29:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/683daafcf6c9a5671e32019aa2b6dfb32f122116.webp?v=1708925376","variant_ids":[41311969673315]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 蝙蝠俠出任務 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-SB06","featured_media":{"alt":null,"id":23354614022243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/683daafcf6c9a5671e32019aa2b6dfb32f122116.webp?v=1708925376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b82b5d5ac7277cfc3c28dadff50e60d2dbf11e8.webp?v=1708925374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/683daafcf6c9a5671e32019aa2b6dfb32f122116.webp?v=1708925376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f425e7bbc79f0e27074a87824433fca79ed84e19.webp?v=1708925378","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/559f14637da83ed578311a53cbeb2f4fa43c9754.webp?v=1708925381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e005844d8e397a78f2e9228f8cc0a3b4fecc9e85.webp?v=1708925383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b1c52cd4dc3d944f53e5d5854c74b918ac24dc.webp?v=1708925386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360ef76244b3707ad1eae8d98e855dcb0f29ceeb.webp?v=1708925388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a46887e447dbddb44c71c548a36ab3beebced799.webp?v=1708925390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad2eb65841f6d39fbc58fb48fbf3dd7673c6f923.webp?v=1708925393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dd546221516288b6a8377c0cbb315a623217b4.webp?v=1708925395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91e3c186c93086caa653696a7f5dd81dd17f3634.webp?v=1708925397","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d4f7ada626e55560bdaae15a530c426fff1546f.webp?v=1708925399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3d17dd6bc6d1bf2f6c62419e3ccaf1c7995380.webp?v=1708925402","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bff61252f77753e1495aeec366f12b3d8d1cf488.webp?v=1708925404","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f79ab430ff053964d7a938c8085b0d59d7fdd2.webp?v=1708925407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f0fc5743dec9af638317476f16912040a1ba07.webp?v=1708925409"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b82b5d5ac7277cfc3c28dadff50e60d2dbf11e8.webp?v=1708925374","options":["color"],"media":[{"alt":null,"id":23354613596259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b82b5d5ac7277cfc3c28dadff50e60d2dbf11e8.webp?v=1708925374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b82b5d5ac7277cfc3c28dadff50e60d2dbf11e8.webp?v=1708925374","width":2000},{"alt":null,"id":23354614022243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/683daafcf6c9a5671e32019aa2b6dfb32f122116.webp?v=1708925376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/683daafcf6c9a5671e32019aa2b6dfb32f122116.webp?v=1708925376","width":2000},{"alt":null,"id":23354614579299,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f425e7bbc79f0e27074a87824433fca79ed84e19.webp?v=1708925378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f425e7bbc79f0e27074a87824433fca79ed84e19.webp?v=1708925378","width":2000},{"alt":null,"id":23354615136355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/559f14637da83ed578311a53cbeb2f4fa43c9754.webp?v=1708925381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/559f14637da83ed578311a53cbeb2f4fa43c9754.webp?v=1708925381","width":2000},{"alt":null,"id":23354615627875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e005844d8e397a78f2e9228f8cc0a3b4fecc9e85.webp?v=1708925383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e005844d8e397a78f2e9228f8cc0a3b4fecc9e85.webp?v=1708925383","width":2000},{"alt":null,"id":23354616184931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b1c52cd4dc3d944f53e5d5854c74b918ac24dc.webp?v=1708925386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b1c52cd4dc3d944f53e5d5854c74b918ac24dc.webp?v=1708925386","width":2000},{"alt":null,"id":23354616774755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360ef76244b3707ad1eae8d98e855dcb0f29ceeb.webp?v=1708925388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/360ef76244b3707ad1eae8d98e855dcb0f29ceeb.webp?v=1708925388","width":2000},{"alt":null,"id":23354617299043,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a46887e447dbddb44c71c548a36ab3beebced799.webp?v=1708925390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a46887e447dbddb44c71c548a36ab3beebced799.webp?v=1708925390","width":2000},{"alt":null,"id":23354618118243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad2eb65841f6d39fbc58fb48fbf3dd7673c6f923.webp?v=1708925393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad2eb65841f6d39fbc58fb48fbf3dd7673c6f923.webp?v=1708925393","width":2000},{"alt":null,"id":23354618609763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dd546221516288b6a8377c0cbb315a623217b4.webp?v=1708925395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dd546221516288b6a8377c0cbb315a623217b4.webp?v=1708925395","width":2000},{"alt":null,"id":23354619002979,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91e3c186c93086caa653696a7f5dd81dd17f3634.webp?v=1708925397"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91e3c186c93086caa653696a7f5dd81dd17f3634.webp?v=1708925397","width":2000},{"alt":null,"id":23354619297891,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d4f7ada626e55560bdaae15a530c426fff1546f.webp?v=1708925399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d4f7ada626e55560bdaae15a530c426fff1546f.webp?v=1708925399","width":2000},{"alt":null,"id":23354619560035,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3d17dd6bc6d1bf2f6c62419e3ccaf1c7995380.webp?v=1708925402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb3d17dd6bc6d1bf2f6c62419e3ccaf1c7995380.webp?v=1708925402","width":2000},{"alt":null,"id":23354619887715,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bff61252f77753e1495aeec366f12b3d8d1cf488.webp?v=1708925404"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bff61252f77753e1495aeec366f12b3d8d1cf488.webp?v=1708925404","width":2000},{"alt":null,"id":23354620346467,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f79ab430ff053964d7a938c8085b0d59d7fdd2.webp?v=1708925407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72f79ab430ff053964d7a938c8085b0d59d7fdd2.webp?v=1708925407","width":2000},{"alt":null,"id":23354620772451,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f0fc5743dec9af638317476f16912040a1ba07.webp?v=1708925409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f0fc5743dec9af638317476f16912040a1ba07.webp?v=1708925409","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41311969411171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":30978158624867,"product_id":7189366341731,"position":5,"created_at":"2024-02-26T13:29:43+08:00","updated_at":"2024-02-26T13:29:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e005844d8e397a78f2e9228f8cc0a3b4fecc9e85.webp?v=1708925383","variant_ids":[41311969411171]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 蝙蝠俠出任務 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-SB06","featured_media":{"alt":null,"id":23354615627875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e005844d8e397a78f2e9228f8cc0a3b4fecc9e85.webp?v=1708925383"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41311969673315,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":30978157019235,"product_id":7189366341731,"position":2,"created_at":"2024-02-26T13:29:36+08:00","updated_at":"2024-02-26T13:29:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/683daafcf6c9a5671e32019aa2b6dfb32f122116.webp?v=1708925376","variant_ids":[41311969673315]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 蝙蝠俠出任務 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-SB06","featured_media":{"alt":null,"id":23354614022243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/683daafcf6c9a5671e32019aa2b6dfb32f122116.webp?v=1708925376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41311969411171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":30978158624867,"product_id":7189366341731,"position":5,"created_at":"2024-02-26T13:29:43+08:00","updated_at":"2024-02-26T13:29:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e005844d8e397a78f2e9228f8cc0a3b4fecc9e85.webp?v=1708925383","variant_ids":[41311969411171]},"available":true,"name":"iPhone 13 mini 犀牛盾SolidSuit (MagSafe 兼容)聯名設計款防摔背蓋手機殼 Batman - 蝙蝠俠出任務 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":1350,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-SB06","featured_media":{"alt":null,"id":23354615627875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e005844d8e397a78f2e9228f8cc0a3b4fecc9e85.webp?v=1708925383"}},"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: "停產" }