$product = {"id":4174599815267,"title":"iPhone 11 Pro Max SolidSuit 咻咻熊 一起吃飯吧!","handle":"iphone-11-pro-max-solidsuit-classic-fw03","description":"","published_at":"2020-01-06T11:22:48+08:00","created_at":"2019-10-03T21:23:33+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":42960933978211,"title":"Black \/ Option2 Value \/ Option3 Value","option1":"Black","option2":"Option2 Value","option3":"Option3 Value","sku":"SST0114952-FW03","requires_shipping":true,"taxable":true,"featured_image":{"id":29940892958819,"product_id":4174599815267,"position":1,"created_at":"2023-03-28T15:42:02+08:00","updated_at":"2023-03-28T15:42:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322","variant_ids":[42960933978211,42960934010979]},"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-FW03","featured_media":{"alt":null,"id":22295462379619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":42960934010979,"title":"Ash Grey \/ Option2 Value \/ Option3 Value","option1":"Ash Grey","option2":"Option2 Value","option3":"Option3 Value","sku":"SST01149O8-FW03","requires_shipping":true,"taxable":true,"featured_image":{"id":29940892958819,"product_id":4174599815267,"position":1,"created_at":"2023-03-28T15:42:02+08:00","updated_at":"2023-03-28T15:42:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322","variant_ids":[42960933978211,42960934010979]},"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-FW03","featured_media":{"alt":null,"id":22295462379619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1a82cb43edb6c2440369f78e3667829f96343b.webp?v=1783404716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8c937920c4437c8afd0e67ad2f34d7c3cfe0e86.webp?v=1783404717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06e324d7fe53cd6b376cff4dd2f452e6e3e4cd24.webp?v=1783404718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1a82cb43edb6c2440369f78e3667829f96343b_08e5c0ce-e496-45e0-a183-f39417b4270a.webp?v=1783411080","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8c937920c4437c8afd0e67ad2f34d7c3cfe0e86_30bf7013-f10f-4864-89a3-ceed094f46ac.webp?v=1783411081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06e324d7fe53cd6b376cff4dd2f452e6e3e4cd24_d1f3d475-be3a-4c61-a3f6-fdce5b761467.webp?v=1783411082","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1a82cb43edb6c2440369f78e3667829f96343b_81e38175-5f4e-4003-abbe-fcc26c2606d0.webp?v=1783411129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8c937920c4437c8afd0e67ad2f34d7c3cfe0e86_c8ce9f87-2e3e-41eb-b94b-7ce17c253dba.webp?v=1783411130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06e324d7fe53cd6b376cff4dd2f452e6e3e4cd24_e0e0f67c-e3f7-49cf-9b83-8578f7915f11.webp?v=1783411131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1a82cb43edb6c2440369f78e3667829f96343b_4844940d-d2e0-4240-af98-35c45b3b9786.webp?v=1783411151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8c937920c4437c8afd0e67ad2f34d7c3cfe0e86_6865a44b-8b5e-43f3-a61f-3d4a3a8f6674.webp?v=1783411152","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06e324d7fe53cd6b376cff4dd2f452e6e3e4cd24_4e9f0a41-c1e4-4eee-b8cb-180ca28bf342.webp?v=1783411153"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322","options":["color","Option2 Name","Option3 Name"],"media":[{"alt":null,"id":22295462379619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322","width":2000},{"alt":null,"id":27699876560995,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1a82cb43edb6c2440369f78e3667829f96343b.webp?v=1783404716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1a82cb43edb6c2440369f78e3667829f96343b.webp?v=1783404716","width":2000},{"alt":null,"id":27699876790371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8c937920c4437c8afd0e67ad2f34d7c3cfe0e86.webp?v=1783404717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8c937920c4437c8afd0e67ad2f34d7c3cfe0e86.webp?v=1783404717","width":2000},{"alt":null,"id":27699876954211,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06e324d7fe53cd6b376cff4dd2f452e6e3e4cd24.webp?v=1783404718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06e324d7fe53cd6b376cff4dd2f452e6e3e4cd24.webp?v=1783404718","width":2000},{"alt":null,"id":27702258040931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1a82cb43edb6c2440369f78e3667829f96343b_08e5c0ce-e496-45e0-a183-f39417b4270a.webp?v=1783411080"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1a82cb43edb6c2440369f78e3667829f96343b_08e5c0ce-e496-45e0-a183-f39417b4270a.webp?v=1783411080","width":2000},{"alt":null,"id":27702258499683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8c937920c4437c8afd0e67ad2f34d7c3cfe0e86_30bf7013-f10f-4864-89a3-ceed094f46ac.webp?v=1783411081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8c937920c4437c8afd0e67ad2f34d7c3cfe0e86_30bf7013-f10f-4864-89a3-ceed094f46ac.webp?v=1783411081","width":2000},{"alt":null,"id":27702259023971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06e324d7fe53cd6b376cff4dd2f452e6e3e4cd24_d1f3d475-be3a-4c61-a3f6-fdce5b761467.webp?v=1783411082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06e324d7fe53cd6b376cff4dd2f452e6e3e4cd24_d1f3d475-be3a-4c61-a3f6-fdce5b761467.webp?v=1783411082","width":2000},{"alt":null,"id":27702272262243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1a82cb43edb6c2440369f78e3667829f96343b_81e38175-5f4e-4003-abbe-fcc26c2606d0.webp?v=1783411129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1a82cb43edb6c2440369f78e3667829f96343b_81e38175-5f4e-4003-abbe-fcc26c2606d0.webp?v=1783411129","width":2000},{"alt":null,"id":27702272458851,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8c937920c4437c8afd0e67ad2f34d7c3cfe0e86_c8ce9f87-2e3e-41eb-b94b-7ce17c253dba.webp?v=1783411130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8c937920c4437c8afd0e67ad2f34d7c3cfe0e86_c8ce9f87-2e3e-41eb-b94b-7ce17c253dba.webp?v=1783411130","width":2000},{"alt":null,"id":27702272720995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06e324d7fe53cd6b376cff4dd2f452e6e3e4cd24_e0e0f67c-e3f7-49cf-9b83-8578f7915f11.webp?v=1783411131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06e324d7fe53cd6b376cff4dd2f452e6e3e4cd24_e0e0f67c-e3f7-49cf-9b83-8578f7915f11.webp?v=1783411131","width":2000},{"alt":null,"id":27702281011299,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1a82cb43edb6c2440369f78e3667829f96343b_4844940d-d2e0-4240-af98-35c45b3b9786.webp?v=1783411151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad1a82cb43edb6c2440369f78e3667829f96343b_4844940d-d2e0-4240-af98-35c45b3b9786.webp?v=1783411151","width":2000},{"alt":null,"id":27702281338979,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8c937920c4437c8afd0e67ad2f34d7c3cfe0e86_6865a44b-8b5e-43f3-a61f-3d4a3a8f6674.webp?v=1783411152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8c937920c4437c8afd0e67ad2f34d7c3cfe0e86_6865a44b-8b5e-43f3-a61f-3d4a3a8f6674.webp?v=1783411152","width":2000},{"alt":null,"id":27702281568355,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06e324d7fe53cd6b376cff4dd2f452e6e3e4cd24_4e9f0a41-c1e4-4eee-b8cb-180ca28bf342.webp?v=1783411153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06e324d7fe53cd6b376cff4dd2f452e6e3e4cd24_4e9f0a41-c1e4-4eee-b8cb-180ca28bf342.webp?v=1783411153","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $isMerge = null; $variants = [{"id":42960933978211,"title":"Black \/ Option2 Value \/ Option3 Value","option1":"Black","option2":"Option2 Value","option3":"Option3 Value","sku":"SST0114952-FW03","requires_shipping":true,"taxable":true,"featured_image":{"id":29940892958819,"product_id":4174599815267,"position":1,"created_at":"2023-03-28T15:42:02+08:00","updated_at":"2023-03-28T15:42:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322","variant_ids":[42960933978211,42960934010979]},"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-FW03","featured_media":{"alt":null,"id":22295462379619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":42960934010979,"title":"Ash Grey \/ Option2 Value \/ Option3 Value","option1":"Ash Grey","option2":"Option2 Value","option3":"Option3 Value","sku":"SST01149O8-FW03","requires_shipping":true,"taxable":true,"featured_image":{"id":29940892958819,"product_id":4174599815267,"position":1,"created_at":"2023-03-28T15:42:02+08:00","updated_at":"2023-03-28T15:42:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322","variant_ids":[42960933978211,42960934010979]},"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-FW03","featured_media":{"alt":null,"id":22295462379619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":42960933978211,"title":"Black \/ Option2 Value \/ Option3 Value","option1":"Black","option2":"Option2 Value","option3":"Option3 Value","sku":"SST0114952-FW03","requires_shipping":true,"taxable":true,"featured_image":{"id":29940892958819,"product_id":4174599815267,"position":1,"created_at":"2023-03-28T15:42:02+08:00","updated_at":"2023-03-28T15:42:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322","variant_ids":[42960933978211,42960934010979]},"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-FW03","featured_media":{"alt":null,"id":22295462379619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/products\/product-SST0114953-FW03_3226971d-53b9-4664-9638-cb4644fb83f9.png?v=1679989322"}},"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: "停產" }