$product = {"id":7411414106211,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - Bedtime Bear","handle":"iphone-14-plus-mod-nx-magsafe-printable-yb04","description":null,"published_at":"2024-06-11T17:44:20+08:00","created_at":"2024-05-05T00:25:06+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41898577395811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480365613155,"product_id":7411414106211,"position":3,"created_at":"2024-05-05T00:25:13+08:00","updated_at":"2024-05-05T00:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e4a5e3dcfc7006e91596a6ec516c2c31bab3d5_2a679a1b-1f1e-4134-871f-26bfa13b5b3a.webp?v=1714839913","variant_ids":[41898577395811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - Bedtime Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YB04","featured_media":{"alt":null,"id":23885617430627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e4a5e3dcfc7006e91596a6ec516c2c31bab3d5_2a679a1b-1f1e-4134-871f-26bfa13b5b3a.webp?v=1714839913"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/359128932e8ceb2b9e215ba645c08a81096b2865_e0e95a9b-e373-4e42-be90-2f9b4cd4cef7.webp?v=1714839908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f827443fbc49b0294dfc3bdc670f7e219465ec1_78e2b665-1a91-4040-8196-04de5f2a5eff.webp?v=1714839911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e4a5e3dcfc7006e91596a6ec516c2c31bab3d5_2a679a1b-1f1e-4134-871f-26bfa13b5b3a.webp?v=1714839913","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf4bc33b368dec3fca54803f4d1bdb304845d4e_73e0cbf4-fa57-4d4f-9731-3cccf128a4a3.webp?v=1714839915","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ae72366cd30f6174dc67161cc9313c32a113441_24e4e4db-1192-4d15-870d-8059acf0a806.webp?v=1714839917","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b8968f7d4f2a5e323b68486bf0a3ce5420d63e_b457631f-a8d9-423b-88fa-3079a36110de.webp?v=1714839920","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac72816eb3a1cb3bc352463a41349afdc0d78924_864b2a0d-4840-4960-b415-02462a2dc3b9.webp?v=1714839922","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2345bd9457e9653aa0cb2f4038f97d0779d3d6d_d789e510-b51e-4304-9c2a-80463fd1d8b1.webp?v=1714839924","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/518b9a7686c4c8f6aab4b5da1a2c45bd7789ffb3_9eb7e26b-332d-4710-a575-c673b1f46e19.webp?v=1714839926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f57132bc48f2f910abb26bcd3806bc3eede468f9_242628ae-e1a1-448f-b31f-fd75fc214946.webp?v=1714839929"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/359128932e8ceb2b9e215ba645c08a81096b2865_e0e95a9b-e373-4e42-be90-2f9b4cd4cef7.webp?v=1714839908","options":["color"],"media":[{"alt":null,"id":23885616480355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/359128932e8ceb2b9e215ba645c08a81096b2865_e0e95a9b-e373-4e42-be90-2f9b4cd4cef7.webp?v=1714839908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/359128932e8ceb2b9e215ba645c08a81096b2865_e0e95a9b-e373-4e42-be90-2f9b4cd4cef7.webp?v=1714839908","width":2000},{"alt":null,"id":23885616775267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f827443fbc49b0294dfc3bdc670f7e219465ec1_78e2b665-1a91-4040-8196-04de5f2a5eff.webp?v=1714839911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f827443fbc49b0294dfc3bdc670f7e219465ec1_78e2b665-1a91-4040-8196-04de5f2a5eff.webp?v=1714839911","width":2000},{"alt":null,"id":23885617430627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e4a5e3dcfc7006e91596a6ec516c2c31bab3d5_2a679a1b-1f1e-4134-871f-26bfa13b5b3a.webp?v=1714839913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e4a5e3dcfc7006e91596a6ec516c2c31bab3d5_2a679a1b-1f1e-4134-871f-26bfa13b5b3a.webp?v=1714839913","width":2000},{"alt":null,"id":23885617791075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf4bc33b368dec3fca54803f4d1bdb304845d4e_73e0cbf4-fa57-4d4f-9731-3cccf128a4a3.webp?v=1714839915"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf4bc33b368dec3fca54803f4d1bdb304845d4e_73e0cbf4-fa57-4d4f-9731-3cccf128a4a3.webp?v=1714839915","width":2000},{"alt":null,"id":23885618282595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ae72366cd30f6174dc67161cc9313c32a113441_24e4e4db-1192-4d15-870d-8059acf0a806.webp?v=1714839917"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ae72366cd30f6174dc67161cc9313c32a113441_24e4e4db-1192-4d15-870d-8059acf0a806.webp?v=1714839917","width":2000},{"alt":null,"id":23885618872419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b8968f7d4f2a5e323b68486bf0a3ce5420d63e_b457631f-a8d9-423b-88fa-3079a36110de.webp?v=1714839920"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b8968f7d4f2a5e323b68486bf0a3ce5420d63e_b457631f-a8d9-423b-88fa-3079a36110de.webp?v=1714839920","width":2000},{"alt":null,"id":23885619396707,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac72816eb3a1cb3bc352463a41349afdc0d78924_864b2a0d-4840-4960-b415-02462a2dc3b9.webp?v=1714839922"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac72816eb3a1cb3bc352463a41349afdc0d78924_864b2a0d-4840-4960-b415-02462a2dc3b9.webp?v=1714839922","width":2000},{"alt":null,"id":23885619888227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2345bd9457e9653aa0cb2f4038f97d0779d3d6d_d789e510-b51e-4304-9c2a-80463fd1d8b1.webp?v=1714839924"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2345bd9457e9653aa0cb2f4038f97d0779d3d6d_d789e510-b51e-4304-9c2a-80463fd1d8b1.webp?v=1714839924","width":2000},{"alt":null,"id":23885620248675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/518b9a7686c4c8f6aab4b5da1a2c45bd7789ffb3_9eb7e26b-332d-4710-a575-c673b1f46e19.webp?v=1714839926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/518b9a7686c4c8f6aab4b5da1a2c45bd7789ffb3_9eb7e26b-332d-4710-a575-c673b1f46e19.webp?v=1714839926","width":2000},{"alt":null,"id":23885620904035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f57132bc48f2f910abb26bcd3806bc3eede468f9_242628ae-e1a1-448f-b31f-fd75fc214946.webp?v=1714839929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f57132bc48f2f910abb26bcd3806bc3eede468f9_242628ae-e1a1-448f-b31f-fd75fc214946.webp?v=1714839929","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898577395811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480365613155,"product_id":7411414106211,"position":3,"created_at":"2024-05-05T00:25:13+08:00","updated_at":"2024-05-05T00:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e4a5e3dcfc7006e91596a6ec516c2c31bab3d5_2a679a1b-1f1e-4134-871f-26bfa13b5b3a.webp?v=1714839913","variant_ids":[41898577395811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - Bedtime Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YB04","featured_media":{"alt":null,"id":23885617430627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e4a5e3dcfc7006e91596a6ec516c2c31bab3d5_2a679a1b-1f1e-4134-871f-26bfa13b5b3a.webp?v=1714839913"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898577395811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480365613155,"product_id":7411414106211,"position":3,"created_at":"2024-05-05T00:25:13+08:00","updated_at":"2024-05-05T00:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e4a5e3dcfc7006e91596a6ec516c2c31bab3d5_2a679a1b-1f1e-4134-871f-26bfa13b5b3a.webp?v=1714839913","variant_ids":[41898577395811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - Bedtime Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YB04","featured_media":{"alt":null,"id":23885617430627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e4a5e3dcfc7006e91596a6ec516c2c31bab3d5_2a679a1b-1f1e-4134-871f-26bfa13b5b3a.webp?v=1714839913"}},"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: "停產" }