$product = {"id":7884160467043,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) 坂本日常 坂本商店 - 全面貼標","handle":"iphone-13-mini-solidsuit-classic-magsafe-ifc16","description":null,"published_at":"2025-09-19T10:05:12+08:00","created_at":"2025-09-16T12:17:39+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-sakamoto-days","device-iPhone 13 Mini","merge","reseller-sakamoto-days"],"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":43697275109475,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-IFC16","requires_shipping":true,"taxable":true,"featured_image":{"id":34474901799011,"product_id":7884160467043,"position":7,"created_at":"2025-09-16T12:17:48+08:00","updated_at":"2025-09-16T12:17:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9cb6da40c9282982a751c4f061726e8bec34b50.webp?v=1757996270","variant_ids":[43697275109475]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 坂本日常 坂本商店 - 全面貼標 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-IFC16","featured_media":{"alt":null,"id":26046507614307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9cb6da40c9282982a751c4f061726e8bec34b50.webp?v=1757996270"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43697275142243,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-IFC16","requires_shipping":true,"taxable":true,"featured_image":{"id":34474900684899,"product_id":7884160467043,"position":1,"created_at":"2025-09-16T12:17:44+08:00","updated_at":"2025-09-16T12:17:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c20309010e85d086f7d682cf77e5eb96b1ab9bb.webp?v=1757996266","variant_ids":[43697275142243]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 坂本日常 坂本商店 - 全面貼標 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-IFC16","featured_media":{"alt":null,"id":26046506500195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c20309010e85d086f7d682cf77e5eb96b1ab9bb.webp?v=1757996266"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43697275371619,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01228Z9-IFC16","requires_shipping":true,"taxable":true,"featured_image":{"id":34474902487139,"product_id":7884160467043,"position":10,"created_at":"2025-09-16T12:17:50+08:00","updated_at":"2025-09-16T12:17:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92e30898a03d99aa1f8a0eccf19d8697d5214223.webp?v=1757996272","variant_ids":[43697275371619]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 坂本日常 坂本商店 - 全面貼標 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z9-IFC16","featured_media":{"alt":null,"id":26046508302435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92e30898a03d99aa1f8a0eccf19d8697d5214223.webp?v=1757996272"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c20309010e85d086f7d682cf77e5eb96b1ab9bb.webp?v=1757996266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ef9b6a5d41d2adb2353fefadf5ad4d9cbdfbe0.webp?v=1757996267","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071a9a9e3f2cc310d2570197840e9eae46c6cf3d.webp?v=1757996267","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4e0b0c0df51593e9ea1bd645c973054355da33.webp?v=1757996268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096d4fd40c75757241c3495448e7ac44ba20ed4c.webp?v=1757996268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fe69020369272b067a27626b3739e19c995458e.webp?v=1757996269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9cb6da40c9282982a751c4f061726e8bec34b50.webp?v=1757996270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca01456c97f168cdf9c1d9617d95731ca5b10f2f.webp?v=1757996271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce088057b9f347563e545770ed2b66b24fd02f5.webp?v=1757996271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92e30898a03d99aa1f8a0eccf19d8697d5214223.webp?v=1757996272"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c20309010e85d086f7d682cf77e5eb96b1ab9bb.webp?v=1757996266","options":["color"],"media":[{"alt":null,"id":26046506500195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c20309010e85d086f7d682cf77e5eb96b1ab9bb.webp?v=1757996266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c20309010e85d086f7d682cf77e5eb96b1ab9bb.webp?v=1757996266","width":2000},{"alt":null,"id":26046506598499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ef9b6a5d41d2adb2353fefadf5ad4d9cbdfbe0.webp?v=1757996267"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ef9b6a5d41d2adb2353fefadf5ad4d9cbdfbe0.webp?v=1757996267","width":2000},{"alt":null,"id":26046506991715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071a9a9e3f2cc310d2570197840e9eae46c6cf3d.webp?v=1757996267"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/071a9a9e3f2cc310d2570197840e9eae46c6cf3d.webp?v=1757996267","width":2000},{"alt":null,"id":26046507090019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4e0b0c0df51593e9ea1bd645c973054355da33.webp?v=1757996268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe4e0b0c0df51593e9ea1bd645c973054355da33.webp?v=1757996268","width":2000},{"alt":null,"id":26046507188323,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096d4fd40c75757241c3495448e7ac44ba20ed4c.webp?v=1757996268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096d4fd40c75757241c3495448e7ac44ba20ed4c.webp?v=1757996268","width":2000},{"alt":null,"id":26046507286627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fe69020369272b067a27626b3739e19c995458e.webp?v=1757996269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fe69020369272b067a27626b3739e19c995458e.webp?v=1757996269","width":2000},{"alt":null,"id":26046507614307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9cb6da40c9282982a751c4f061726e8bec34b50.webp?v=1757996270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9cb6da40c9282982a751c4f061726e8bec34b50.webp?v=1757996270","width":2000},{"alt":null,"id":26046507778147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca01456c97f168cdf9c1d9617d95731ca5b10f2f.webp?v=1757996271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca01456c97f168cdf9c1d9617d95731ca5b10f2f.webp?v=1757996271","width":2000},{"alt":null,"id":26046507941987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce088057b9f347563e545770ed2b66b24fd02f5.webp?v=1757996271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce088057b9f347563e545770ed2b66b24fd02f5.webp?v=1757996271","width":2000},{"alt":null,"id":26046508302435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92e30898a03d99aa1f8a0eccf19d8697d5214223.webp?v=1757996272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92e30898a03d99aa1f8a0eccf19d8697d5214223.webp?v=1757996272","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43697275109475,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-IFC16","requires_shipping":true,"taxable":true,"featured_image":{"id":34474901799011,"product_id":7884160467043,"position":7,"created_at":"2025-09-16T12:17:48+08:00","updated_at":"2025-09-16T12:17:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9cb6da40c9282982a751c4f061726e8bec34b50.webp?v=1757996270","variant_ids":[43697275109475]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 坂本日常 坂本商店 - 全面貼標 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-IFC16","featured_media":{"alt":null,"id":26046507614307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9cb6da40c9282982a751c4f061726e8bec34b50.webp?v=1757996270"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43697275142243,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-IFC16","requires_shipping":true,"taxable":true,"featured_image":{"id":34474900684899,"product_id":7884160467043,"position":1,"created_at":"2025-09-16T12:17:44+08:00","updated_at":"2025-09-16T12:17:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c20309010e85d086f7d682cf77e5eb96b1ab9bb.webp?v=1757996266","variant_ids":[43697275142243]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 坂本日常 坂本商店 - 全面貼標 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-IFC16","featured_media":{"alt":null,"id":26046506500195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c20309010e85d086f7d682cf77e5eb96b1ab9bb.webp?v=1757996266"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43697275371619,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01228Z9-IFC16","requires_shipping":true,"taxable":true,"featured_image":{"id":34474902487139,"product_id":7884160467043,"position":10,"created_at":"2025-09-16T12:17:50+08:00","updated_at":"2025-09-16T12:17:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92e30898a03d99aa1f8a0eccf19d8697d5214223.webp?v=1757996272","variant_ids":[43697275371619]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 坂本日常 坂本商店 - 全面貼標 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z9-IFC16","featured_media":{"alt":null,"id":26046508302435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92e30898a03d99aa1f8a0eccf19d8697d5214223.webp?v=1757996272"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43697275109475,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-IFC16","requires_shipping":true,"taxable":true,"featured_image":{"id":34474901799011,"product_id":7884160467043,"position":7,"created_at":"2025-09-16T12:17:48+08:00","updated_at":"2025-09-16T12:17:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9cb6da40c9282982a751c4f061726e8bec34b50.webp?v=1757996270","variant_ids":[43697275109475]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 坂本日常 坂本商店 - 全面貼標 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-IFC16","featured_media":{"alt":null,"id":26046507614307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9cb6da40c9282982a751c4f061726e8bec34b50.webp?v=1757996270"}},"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: "停產" }