$product = {"id":7407899443299,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - Bedtime Bear","handle":"iphone-14-plus-mod-nx-printable-yb04","description":null,"published_at":"2024-06-11T16:25:59+08:00","created_at":"2024-05-03T11:12:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-carebears","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41880257167459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470650654819,"product_id":7407899443299,"position":4,"created_at":"2024-05-03T11:12:12+08:00","updated_at":"2024-05-03T11:12:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a5d8343ee983921c8a10ff278a0a595c2d1b75c_16a3a608-8790-4a05-8827-44f1e61f5a41.webp?v=1714705932","variant_ids":[41880257167459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - Bedtime Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-YB04","featured_media":{"alt":null,"id":23875554607203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a5d8343ee983921c8a10ff278a0a595c2d1b75c_16a3a608-8790-4a05-8827-44f1e61f5a41.webp?v=1714705932"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8be0121a6ad1257cbdb38cbd9d726d2eea78db4a_a8cad232-15ac-47f1-9eee-44359391c356.webp?v=1714705925","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df01360eb5c57193fa6600f44282a37a5b7fbf8c_c9ac88b9-20a0-4003-9de5-6e23fc9a36f1.webp?v=1714705927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0fcd6700534b9379305d99bcead40a189ec0413_d2ef3828-14a8-4c17-9240-e4e31cd3a99e.webp?v=1714705930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a5d8343ee983921c8a10ff278a0a595c2d1b75c_16a3a608-8790-4a05-8827-44f1e61f5a41.webp?v=1714705932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3848e0bc90563d02b67d3c05342bc6720857258a_866d6bac-195d-48b5-8edb-7da1d9558ac6.webp?v=1714705935","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da2ec1edb380b3885476bb6d50ef6eeede751ab8_382e0211-0393-4887-a05b-0a10e7f434cb.webp?v=1714705937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c338aedcc473c66ba51036228a0b0efb581de2c2_fcbe5145-6e46-4730-8c59-5633c86a653d.webp?v=1714705939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/337e0e9144dd5cd0b6f510a060b0de303320d8ff_ee2ca9fa-5969-40eb-bd86-8941e49f28fd.webp?v=1714705941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80ad3092bf2a9fec3c36453da565a7e41c8787e5_c856d17b-6e1a-4354-bd2d-613f0bb59ce1.webp?v=1714705944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4b04af905217ac1030303c853014ef2c60f31b_fb4ef11e-f00b-4d43-a22a-76aee22aad32.webp?v=1714705946"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8be0121a6ad1257cbdb38cbd9d726d2eea78db4a_a8cad232-15ac-47f1-9eee-44359391c356.webp?v=1714705925","options":["color"],"media":[{"alt":null,"id":23875552968803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8be0121a6ad1257cbdb38cbd9d726d2eea78db4a_a8cad232-15ac-47f1-9eee-44359391c356.webp?v=1714705925"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8be0121a6ad1257cbdb38cbd9d726d2eea78db4a_a8cad232-15ac-47f1-9eee-44359391c356.webp?v=1714705925","width":2000},{"alt":null,"id":23875553362019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df01360eb5c57193fa6600f44282a37a5b7fbf8c_c9ac88b9-20a0-4003-9de5-6e23fc9a36f1.webp?v=1714705927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df01360eb5c57193fa6600f44282a37a5b7fbf8c_c9ac88b9-20a0-4003-9de5-6e23fc9a36f1.webp?v=1714705927","width":2000},{"alt":null,"id":23875554115683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0fcd6700534b9379305d99bcead40a189ec0413_d2ef3828-14a8-4c17-9240-e4e31cd3a99e.webp?v=1714705930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0fcd6700534b9379305d99bcead40a189ec0413_d2ef3828-14a8-4c17-9240-e4e31cd3a99e.webp?v=1714705930","width":2000},{"alt":null,"id":23875554607203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a5d8343ee983921c8a10ff278a0a595c2d1b75c_16a3a608-8790-4a05-8827-44f1e61f5a41.webp?v=1714705932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a5d8343ee983921c8a10ff278a0a595c2d1b75c_16a3a608-8790-4a05-8827-44f1e61f5a41.webp?v=1714705932","width":2000},{"alt":null,"id":23875555262563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3848e0bc90563d02b67d3c05342bc6720857258a_866d6bac-195d-48b5-8edb-7da1d9558ac6.webp?v=1714705935"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3848e0bc90563d02b67d3c05342bc6720857258a_866d6bac-195d-48b5-8edb-7da1d9558ac6.webp?v=1714705935","width":2000},{"alt":null,"id":23875555721315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da2ec1edb380b3885476bb6d50ef6eeede751ab8_382e0211-0393-4887-a05b-0a10e7f434cb.webp?v=1714705937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da2ec1edb380b3885476bb6d50ef6eeede751ab8_382e0211-0393-4887-a05b-0a10e7f434cb.webp?v=1714705937","width":2000},{"alt":null,"id":23875556212835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c338aedcc473c66ba51036228a0b0efb581de2c2_fcbe5145-6e46-4730-8c59-5633c86a653d.webp?v=1714705939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c338aedcc473c66ba51036228a0b0efb581de2c2_fcbe5145-6e46-4730-8c59-5633c86a653d.webp?v=1714705939","width":2000},{"alt":null,"id":23875556737123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/337e0e9144dd5cd0b6f510a060b0de303320d8ff_ee2ca9fa-5969-40eb-bd86-8941e49f28fd.webp?v=1714705941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/337e0e9144dd5cd0b6f510a060b0de303320d8ff_ee2ca9fa-5969-40eb-bd86-8941e49f28fd.webp?v=1714705941","width":2000},{"alt":null,"id":23875557163107,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80ad3092bf2a9fec3c36453da565a7e41c8787e5_c856d17b-6e1a-4354-bd2d-613f0bb59ce1.webp?v=1714705944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80ad3092bf2a9fec3c36453da565a7e41c8787e5_c856d17b-6e1a-4354-bd2d-613f0bb59ce1.webp?v=1714705944","width":2000},{"alt":null,"id":23875557621859,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4b04af905217ac1030303c853014ef2c60f31b_fb4ef11e-f00b-4d43-a22a-76aee22aad32.webp?v=1714705946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4b04af905217ac1030303c853014ef2c60f31b_fb4ef11e-f00b-4d43-a22a-76aee22aad32.webp?v=1714705946","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880257167459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470650654819,"product_id":7407899443299,"position":4,"created_at":"2024-05-03T11:12:12+08:00","updated_at":"2024-05-03T11:12:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a5d8343ee983921c8a10ff278a0a595c2d1b75c_16a3a608-8790-4a05-8827-44f1e61f5a41.webp?v=1714705932","variant_ids":[41880257167459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - Bedtime Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-YB04","featured_media":{"alt":null,"id":23875554607203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a5d8343ee983921c8a10ff278a0a595c2d1b75c_16a3a608-8790-4a05-8827-44f1e61f5a41.webp?v=1714705932"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880257167459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470650654819,"product_id":7407899443299,"position":4,"created_at":"2024-05-03T11:12:12+08:00","updated_at":"2024-05-03T11:12:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a5d8343ee983921c8a10ff278a0a595c2d1b75c_16a3a608-8790-4a05-8827-44f1e61f5a41.webp?v=1714705932","variant_ids":[41880257167459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - Bedtime Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-YB04","featured_media":{"alt":null,"id":23875554607203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a5d8343ee983921c8a10ff278a0a595c2d1b75c_16a3a608-8790-4a05-8827-44f1e61f5a41.webp?v=1714705932"}},"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: "停產" }