$product = {"id":4174602272867,"title":"iPhone 11 Pro Max SolidSuit 咻咻熊 牽牽","handle":"iphone-11-pro-max-solidsuit-classic-fw11","description":"","published_at":"2020-01-06T11:22:38+08:00","created_at":"2019-10-03T21:25:09+08:00","vendor":"Rhinoshield","type":"設計師SolidSuit專區-咻咻熊","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiuxiubear","device-iPhone 11 Pro Max","merge","reseller-xiuxiubear"],"price":83000,"price_min":83000,"price_max":83000,"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":42961100243043,"title":"Black \/ Option2 Value \/ Option3 Value","option1":"Black","option2":"Option2 Value","option3":"Option3 Value","sku":"SST0114952-FW11","requires_shipping":true,"taxable":true,"featured_image":{"id":29940863631459,"product_id":4174602272867,"position":1,"created_at":"2023-03-28T15:37:11+08:00","updated_at":"2023-03-28T15:37:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031","variant_ids":[42961100243043,42961100275811]},"available":true,"name":"iPhone 11 Pro Max SolidSuit 咻咻熊 牽牽 - Black \/ Option2 Value \/ Option3 Value","public_title":"Black \/ Option2 Value \/ Option3 Value","options":["Black","Option2 Value","Option3 Value"],"price":83000,"weight":100,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114952-FW11","featured_media":{"alt":null,"id":22295433052259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":42961100275811,"title":"Ash Grey \/ Option2 Value \/ Option3 Value","option1":"Ash Grey","option2":"Option2 Value","option3":"Option3 Value","sku":"SST01149O8-FW11","requires_shipping":true,"taxable":true,"featured_image":{"id":29940863631459,"product_id":4174602272867,"position":1,"created_at":"2023-03-28T15:37:11+08:00","updated_at":"2023-03-28T15:37:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031","variant_ids":[42961100243043,42961100275811]},"available":true,"name":"iPhone 11 Pro Max SolidSuit 咻咻熊 牽牽 - Ash Grey \/ Option2 Value \/ Option3 Value","public_title":"Ash Grey \/ Option2 Value \/ Option3 Value","options":["Ash Grey","Option2 Value","Option3 Value"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01149O8-FW11","featured_media":{"alt":null,"id":22295433052259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89cd6f6b206f1bfe87c98442caafdea74ef3f7b.webp?v=1783404715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8dc283834e89d7ca1371fd9b0b84bd19e85d73.webp?v=1783404716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eccb50d33da83e8d9dd8707cde3d66128297b008.webp?v=1783404717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89cd6f6b206f1bfe87c98442caafdea74ef3f7b_8cc68460-9281-431a-820a-a37581a2ffad.webp?v=1783411077","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8dc283834e89d7ca1371fd9b0b84bd19e85d73_baf2eb6a-9db4-4e86-86f9-61c0b2295a10.webp?v=1783411078","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eccb50d33da83e8d9dd8707cde3d66128297b008_7d851457-8b7a-48c3-9fd4-16e7558b9e82.webp?v=1783411079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89cd6f6b206f1bfe87c98442caafdea74ef3f7b_b1ee781d-88a6-453f-8299-67ed87268bdb.webp?v=1783411129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8dc283834e89d7ca1371fd9b0b84bd19e85d73_d1239b1e-d9af-45cd-89e6-0237f7aed7d2.webp?v=1783411129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eccb50d33da83e8d9dd8707cde3d66128297b008_eb5ce3ab-940b-495b-9aba-ef52df2a71c9.webp?v=1783411130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89cd6f6b206f1bfe87c98442caafdea74ef3f7b_72c3705d-f402-47d2-8d0c-5e22780e0523.webp?v=1783411150","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8dc283834e89d7ca1371fd9b0b84bd19e85d73_c2e44980-8b5d-4426-9051-0d4eb312a2e2.webp?v=1783411151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eccb50d33da83e8d9dd8707cde3d66128297b008_715251b5-a08b-4a9a-bebe-ecdc70325309.webp?v=1783411152"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031","options":["color","Option2 Name","Option3 Name"],"media":[{"alt":null,"id":22295433052259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031","width":2000},{"alt":null,"id":27699875938403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89cd6f6b206f1bfe87c98442caafdea74ef3f7b.webp?v=1783404715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89cd6f6b206f1bfe87c98442caafdea74ef3f7b.webp?v=1783404715","width":2000},{"alt":null,"id":27699876298851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8dc283834e89d7ca1371fd9b0b84bd19e85d73.webp?v=1783404716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8dc283834e89d7ca1371fd9b0b84bd19e85d73.webp?v=1783404716","width":2000},{"alt":null,"id":27699876593763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eccb50d33da83e8d9dd8707cde3d66128297b008.webp?v=1783404717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eccb50d33da83e8d9dd8707cde3d66128297b008.webp?v=1783404717","width":2000},{"alt":null,"id":27702256599139,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89cd6f6b206f1bfe87c98442caafdea74ef3f7b_8cc68460-9281-431a-820a-a37581a2ffad.webp?v=1783411077"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89cd6f6b206f1bfe87c98442caafdea74ef3f7b_8cc68460-9281-431a-820a-a37581a2ffad.webp?v=1783411077","width":2000},{"alt":null,"id":27702257320035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8dc283834e89d7ca1371fd9b0b84bd19e85d73_baf2eb6a-9db4-4e86-86f9-61c0b2295a10.webp?v=1783411078"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8dc283834e89d7ca1371fd9b0b84bd19e85d73_baf2eb6a-9db4-4e86-86f9-61c0b2295a10.webp?v=1783411078","width":2000},{"alt":null,"id":27702257746019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eccb50d33da83e8d9dd8707cde3d66128297b008_7d851457-8b7a-48c3-9fd4-16e7558b9e82.webp?v=1783411079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eccb50d33da83e8d9dd8707cde3d66128297b008_7d851457-8b7a-48c3-9fd4-16e7558b9e82.webp?v=1783411079","width":2000},{"alt":null,"id":27702271869027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89cd6f6b206f1bfe87c98442caafdea74ef3f7b_b1ee781d-88a6-453f-8299-67ed87268bdb.webp?v=1783411129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89cd6f6b206f1bfe87c98442caafdea74ef3f7b_b1ee781d-88a6-453f-8299-67ed87268bdb.webp?v=1783411129","width":2000},{"alt":null,"id":27702272196707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8dc283834e89d7ca1371fd9b0b84bd19e85d73_d1239b1e-d9af-45cd-89e6-0237f7aed7d2.webp?v=1783411129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8dc283834e89d7ca1371fd9b0b84bd19e85d73_d1239b1e-d9af-45cd-89e6-0237f7aed7d2.webp?v=1783411129","width":2000},{"alt":null,"id":27702272426083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eccb50d33da83e8d9dd8707cde3d66128297b008_eb5ce3ab-940b-495b-9aba-ef52df2a71c9.webp?v=1783411130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eccb50d33da83e8d9dd8707cde3d66128297b008_eb5ce3ab-940b-495b-9aba-ef52df2a71c9.webp?v=1783411130","width":2000},{"alt":null,"id":27702280061027,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89cd6f6b206f1bfe87c98442caafdea74ef3f7b_72c3705d-f402-47d2-8d0c-5e22780e0523.webp?v=1783411150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89cd6f6b206f1bfe87c98442caafdea74ef3f7b_72c3705d-f402-47d2-8d0c-5e22780e0523.webp?v=1783411150","width":2000},{"alt":null,"id":27702280847459,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8dc283834e89d7ca1371fd9b0b84bd19e85d73_c2e44980-8b5d-4426-9051-0d4eb312a2e2.webp?v=1783411151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f8dc283834e89d7ca1371fd9b0b84bd19e85d73_c2e44980-8b5d-4426-9051-0d4eb312a2e2.webp?v=1783411151","width":2000},{"alt":null,"id":27702281437283,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eccb50d33da83e8d9dd8707cde3d66128297b008_715251b5-a08b-4a9a-bebe-ecdc70325309.webp?v=1783411152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eccb50d33da83e8d9dd8707cde3d66128297b008_715251b5-a08b-4a9a-bebe-ecdc70325309.webp?v=1783411152","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $isMerge = null; $variants = [{"id":42961100243043,"title":"Black \/ Option2 Value \/ Option3 Value","option1":"Black","option2":"Option2 Value","option3":"Option3 Value","sku":"SST0114952-FW11","requires_shipping":true,"taxable":true,"featured_image":{"id":29940863631459,"product_id":4174602272867,"position":1,"created_at":"2023-03-28T15:37:11+08:00","updated_at":"2023-03-28T15:37:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031","variant_ids":[42961100243043,42961100275811]},"available":true,"name":"iPhone 11 Pro Max SolidSuit 咻咻熊 牽牽 - Black \/ Option2 Value \/ Option3 Value","public_title":"Black \/ Option2 Value \/ Option3 Value","options":["Black","Option2 Value","Option3 Value"],"price":83000,"weight":100,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114952-FW11","featured_media":{"alt":null,"id":22295433052259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":42961100275811,"title":"Ash Grey \/ Option2 Value \/ Option3 Value","option1":"Ash Grey","option2":"Option2 Value","option3":"Option3 Value","sku":"SST01149O8-FW11","requires_shipping":true,"taxable":true,"featured_image":{"id":29940863631459,"product_id":4174602272867,"position":1,"created_at":"2023-03-28T15:37:11+08:00","updated_at":"2023-03-28T15:37:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031","variant_ids":[42961100243043,42961100275811]},"available":true,"name":"iPhone 11 Pro Max SolidSuit 咻咻熊 牽牽 - Ash Grey \/ Option2 Value \/ Option3 Value","public_title":"Ash Grey \/ Option2 Value \/ Option3 Value","options":["Ash Grey","Option2 Value","Option3 Value"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01149O8-FW11","featured_media":{"alt":null,"id":22295433052259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":42961100243043,"title":"Black \/ Option2 Value \/ Option3 Value","option1":"Black","option2":"Option2 Value","option3":"Option3 Value","sku":"SST0114952-FW11","requires_shipping":true,"taxable":true,"featured_image":{"id":29940863631459,"product_id":4174602272867,"position":1,"created_at":"2023-03-28T15:37:11+08:00","updated_at":"2023-03-28T15:37:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031","variant_ids":[42961100243043,42961100275811]},"available":true,"name":"iPhone 11 Pro Max SolidSuit 咻咻熊 牽牽 - Black \/ Option2 Value \/ Option3 Value","public_title":"Black \/ Option2 Value \/ Option3 Value","options":["Black","Option2 Value","Option3 Value"],"price":83000,"weight":100,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0114952-FW11","featured_media":{"alt":null,"id":22295433052259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW11_6faeada5-0e05-4bc3-bd11-a8c07873be34.png?v=1679989031"}},"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: "停產" }