$product = {"id":7411312984163,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - 雲朵綿綿","handle":"iphone-14-plus-mod-nx-magsafe-printable-yb10","description":null,"published_at":"2024-06-11T17:41:33+08:00","created_at":"2024-05-05T00:05:35+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":41897314975843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480118509667,"product_id":7411312984163,"position":10,"created_at":"2024-05-05T00:05:59+08:00","updated_at":"2024-05-05T00:05:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeaa961a0ba06dc5446d36792f604c2dffc7d363_af66e0ec-885d-41d4-b8d6-117a0a122886.webp?v=1714838759","variant_ids":[41897314975843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - 雲朵綿綿 - 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-YB10","featured_media":{"alt":null,"id":23885369344099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeaa961a0ba06dc5446d36792f604c2dffc7d363_af66e0ec-885d-41d4-b8d6-117a0a122886.webp?v=1714838759"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20dad37524cb58bfaece45c74bb1d097a6c95395_511f6692-7e2f-42f7-bd65-c782578a4c28.webp?v=1714838738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35f28172c97661f8a880f6be7711e5dc84c08760_e37144c1-558f-413d-820f-31bb971eb8dc.webp?v=1714838740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a61107e9fa2e378f80cdd7d74a75fd0e0bd69a_c899794d-d2a5-4f20-9361-427838c26bd0.webp?v=1714838743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/151d920bd5a4530cedb2a502f30f21b9bcbddf6c_791f27ee-c546-4429-857b-c0b18b60a0a1.webp?v=1714838745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e503946823b239fa83e5581c3e507a6fd336d559_2a2b0376-6082-4124-ba75-ef4e10cc154a.webp?v=1714838747","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3985492815cb880019912c9fb204f2bc058acc28_8e86ec1e-379b-49e8-8fae-70378f1a8e6b.webp?v=1714838750","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/945f78440077f7425c41d87aa0d000e18efe8795_58b8045c-b766-4379-8f57-cf5fbf3faca7.webp?v=1714838752","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e18cbd935fbe5d1a99fac854592ae53e913d6c3_0b24cdff-42e0-4862-8316-ced3d01db459.webp?v=1714838754","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5af63ce3aeb42d3ae4a8ebc47831c76131c9dc2_aa91c9bd-30da-4c58-8ac2-f9fe985c7ef5.webp?v=1714838757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeaa961a0ba06dc5446d36792f604c2dffc7d363_af66e0ec-885d-41d4-b8d6-117a0a122886.webp?v=1714838759"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20dad37524cb58bfaece45c74bb1d097a6c95395_511f6692-7e2f-42f7-bd65-c782578a4c28.webp?v=1714838738","options":["color"],"media":[{"alt":null,"id":23885365149795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20dad37524cb58bfaece45c74bb1d097a6c95395_511f6692-7e2f-42f7-bd65-c782578a4c28.webp?v=1714838738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20dad37524cb58bfaece45c74bb1d097a6c95395_511f6692-7e2f-42f7-bd65-c782578a4c28.webp?v=1714838738","width":2000},{"alt":null,"id":23885365641315,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35f28172c97661f8a880f6be7711e5dc84c08760_e37144c1-558f-413d-820f-31bb971eb8dc.webp?v=1714838740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35f28172c97661f8a880f6be7711e5dc84c08760_e37144c1-558f-413d-820f-31bb971eb8dc.webp?v=1714838740","width":2000},{"alt":null,"id":23885366100067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a61107e9fa2e378f80cdd7d74a75fd0e0bd69a_c899794d-d2a5-4f20-9361-427838c26bd0.webp?v=1714838743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18a61107e9fa2e378f80cdd7d74a75fd0e0bd69a_c899794d-d2a5-4f20-9361-427838c26bd0.webp?v=1714838743","width":2000},{"alt":null,"id":23885366689891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/151d920bd5a4530cedb2a502f30f21b9bcbddf6c_791f27ee-c546-4429-857b-c0b18b60a0a1.webp?v=1714838745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/151d920bd5a4530cedb2a502f30f21b9bcbddf6c_791f27ee-c546-4429-857b-c0b18b60a0a1.webp?v=1714838745","width":2000},{"alt":null,"id":23885367050339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e503946823b239fa83e5581c3e507a6fd336d559_2a2b0376-6082-4124-ba75-ef4e10cc154a.webp?v=1714838747"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e503946823b239fa83e5581c3e507a6fd336d559_2a2b0376-6082-4124-ba75-ef4e10cc154a.webp?v=1714838747","width":2000},{"alt":null,"id":23885367410787,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3985492815cb880019912c9fb204f2bc058acc28_8e86ec1e-379b-49e8-8fae-70378f1a8e6b.webp?v=1714838750"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3985492815cb880019912c9fb204f2bc058acc28_8e86ec1e-379b-49e8-8fae-70378f1a8e6b.webp?v=1714838750","width":2000},{"alt":null,"id":23885367935075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/945f78440077f7425c41d87aa0d000e18efe8795_58b8045c-b766-4379-8f57-cf5fbf3faca7.webp?v=1714838752"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/945f78440077f7425c41d87aa0d000e18efe8795_58b8045c-b766-4379-8f57-cf5fbf3faca7.webp?v=1714838752","width":2000},{"alt":null,"id":23885368295523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e18cbd935fbe5d1a99fac854592ae53e913d6c3_0b24cdff-42e0-4862-8316-ced3d01db459.webp?v=1714838754"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e18cbd935fbe5d1a99fac854592ae53e913d6c3_0b24cdff-42e0-4862-8316-ced3d01db459.webp?v=1714838754","width":2000},{"alt":null,"id":23885368918115,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5af63ce3aeb42d3ae4a8ebc47831c76131c9dc2_aa91c9bd-30da-4c58-8ac2-f9fe985c7ef5.webp?v=1714838757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5af63ce3aeb42d3ae4a8ebc47831c76131c9dc2_aa91c9bd-30da-4c58-8ac2-f9fe985c7ef5.webp?v=1714838757","width":2000},{"alt":null,"id":23885369344099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeaa961a0ba06dc5446d36792f604c2dffc7d363_af66e0ec-885d-41d4-b8d6-117a0a122886.webp?v=1714838759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeaa961a0ba06dc5446d36792f604c2dffc7d363_af66e0ec-885d-41d4-b8d6-117a0a122886.webp?v=1714838759","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897314975843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480118509667,"product_id":7411312984163,"position":10,"created_at":"2024-05-05T00:05:59+08:00","updated_at":"2024-05-05T00:05:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeaa961a0ba06dc5446d36792f604c2dffc7d363_af66e0ec-885d-41d4-b8d6-117a0a122886.webp?v=1714838759","variant_ids":[41897314975843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - 雲朵綿綿 - 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-YB10","featured_media":{"alt":null,"id":23885369344099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeaa961a0ba06dc5446d36792f604c2dffc7d363_af66e0ec-885d-41d4-b8d6-117a0a122886.webp?v=1714838759"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897314975843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480118509667,"product_id":7411312984163,"position":10,"created_at":"2024-05-05T00:05:59+08:00","updated_at":"2024-05-05T00:05:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeaa961a0ba06dc5446d36792f604c2dffc7d363_af66e0ec-885d-41d4-b8d6-117a0a122886.webp?v=1714838759","variant_ids":[41897314975843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - 雲朵綿綿 - 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-YB10","featured_media":{"alt":null,"id":23885369344099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeaa961a0ba06dc5446d36792f604c2dffc7d363_af66e0ec-885d-41d4-b8d6-117a0a122886.webp?v=1714838759"}},"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: "停產" }