$product = {"id":7416393171043,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - 熊滿星空","handle":"iphone-8-mod-nx-printable-yb09","description":null,"published_at":"2024-06-11T16:57:50+08:00","created_at":"2024-05-06T14:48: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 8","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":41919252070499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31492018765923,"product_id":7416393171043,"position":8,"created_at":"2024-05-06T14:48:21+08:00","updated_at":"2024-05-06T14:48:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbc0bc4ef8fb9d8c5c72390f86203fe5d6ef5d7_addc5a5c-adfc-45c1-a038-9c68efce1412.webp?v=1714978101","variant_ids":[41919252070499]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - 熊滿星空 - 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":"NPB0105424-YB09","featured_media":{"alt":null,"id":23897432686691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbc0bc4ef8fb9d8c5c72390f86203fe5d6ef5d7_addc5a5c-adfc-45c1-a038-9c68efce1412.webp?v=1714978101"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e89bcf8467371909739cac2845df0f09d888ce8_664ad626-b3bd-4615-949d-634e22a11c22.webp?v=1714978084","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa0480deb3c6e2d1cd2e4f8058035ff5d5dde132_9ecde94e-29c3-455f-802d-172806f463c0.webp?v=1714978087","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1dc5c2f6753d2e7cfd18758abfedaa12eed2f4_698c4096-3712-4d5e-a637-9915d5d66dd3.webp?v=1714978089","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f377d7b28f4c4bebc9b71f093f908292cb383bd_b9ab092d-8ccb-4e2c-b0f1-cc6424e71f9e.webp?v=1714978091","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0e80c48ccba4c2307eadc8c53fd1499b4a22faa_e1a9a986-0f29-447d-a064-d1a6035c344d.webp?v=1714978094","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16b0d4edb93817a5684daf3d739b080a7eb6de78_e8f28394-288b-4013-ab34-3f38cd2f0628.webp?v=1714978096","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6442f454236bfb3605d4b0582262be3fd956bbce_b9926427-9dc3-4e51-b4cb-a20f7b2a10c8.webp?v=1714978099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbc0bc4ef8fb9d8c5c72390f86203fe5d6ef5d7_addc5a5c-adfc-45c1-a038-9c68efce1412.webp?v=1714978101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b561ff365e31911587943e4abcab519fae1957_53637cc1-2559-404f-b3cb-e592d32f5d42.webp?v=1714978104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3275ee521d9f5ebcbfa61d8a1cde1ac7b1bc6645_d6e5febf-594c-4b61-8e20-a86fa1250c77.webp?v=1714978106"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e89bcf8467371909739cac2845df0f09d888ce8_664ad626-b3bd-4615-949d-634e22a11c22.webp?v=1714978084","options":["color"],"media":[{"alt":null,"id":23897429082211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e89bcf8467371909739cac2845df0f09d888ce8_664ad626-b3bd-4615-949d-634e22a11c22.webp?v=1714978084"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e89bcf8467371909739cac2845df0f09d888ce8_664ad626-b3bd-4615-949d-634e22a11c22.webp?v=1714978084","width":2000},{"alt":null,"id":23897429704803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa0480deb3c6e2d1cd2e4f8058035ff5d5dde132_9ecde94e-29c3-455f-802d-172806f463c0.webp?v=1714978087"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa0480deb3c6e2d1cd2e4f8058035ff5d5dde132_9ecde94e-29c3-455f-802d-172806f463c0.webp?v=1714978087","width":2000},{"alt":null,"id":23897430098019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1dc5c2f6753d2e7cfd18758abfedaa12eed2f4_698c4096-3712-4d5e-a637-9915d5d66dd3.webp?v=1714978089"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1dc5c2f6753d2e7cfd18758abfedaa12eed2f4_698c4096-3712-4d5e-a637-9915d5d66dd3.webp?v=1714978089","width":2000},{"alt":null,"id":23897430491235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f377d7b28f4c4bebc9b71f093f908292cb383bd_b9ab092d-8ccb-4e2c-b0f1-cc6424e71f9e.webp?v=1714978091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f377d7b28f4c4bebc9b71f093f908292cb383bd_b9ab092d-8ccb-4e2c-b0f1-cc6424e71f9e.webp?v=1714978091","width":2000},{"alt":null,"id":23897430884451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0e80c48ccba4c2307eadc8c53fd1499b4a22faa_e1a9a986-0f29-447d-a064-d1a6035c344d.webp?v=1714978094"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0e80c48ccba4c2307eadc8c53fd1499b4a22faa_e1a9a986-0f29-447d-a064-d1a6035c344d.webp?v=1714978094","width":2000},{"alt":null,"id":23897431801955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16b0d4edb93817a5684daf3d739b080a7eb6de78_e8f28394-288b-4013-ab34-3f38cd2f0628.webp?v=1714978096"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16b0d4edb93817a5684daf3d739b080a7eb6de78_e8f28394-288b-4013-ab34-3f38cd2f0628.webp?v=1714978096","width":2000},{"alt":null,"id":23897432293475,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6442f454236bfb3605d4b0582262be3fd956bbce_b9926427-9dc3-4e51-b4cb-a20f7b2a10c8.webp?v=1714978099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6442f454236bfb3605d4b0582262be3fd956bbce_b9926427-9dc3-4e51-b4cb-a20f7b2a10c8.webp?v=1714978099","width":2000},{"alt":null,"id":23897432686691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbc0bc4ef8fb9d8c5c72390f86203fe5d6ef5d7_addc5a5c-adfc-45c1-a038-9c68efce1412.webp?v=1714978101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbc0bc4ef8fb9d8c5c72390f86203fe5d6ef5d7_addc5a5c-adfc-45c1-a038-9c68efce1412.webp?v=1714978101","width":2000},{"alt":null,"id":23897433047139,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b561ff365e31911587943e4abcab519fae1957_53637cc1-2559-404f-b3cb-e592d32f5d42.webp?v=1714978104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b561ff365e31911587943e4abcab519fae1957_53637cc1-2559-404f-b3cb-e592d32f5d42.webp?v=1714978104","width":2000},{"alt":null,"id":23897433309283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3275ee521d9f5ebcbfa61d8a1cde1ac7b1bc6645_d6e5febf-594c-4b61-8e20-a86fa1250c77.webp?v=1714978106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3275ee521d9f5ebcbfa61d8a1cde1ac7b1bc6645_d6e5febf-594c-4b61-8e20-a86fa1250c77.webp?v=1714978106","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919252070499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31492018765923,"product_id":7416393171043,"position":8,"created_at":"2024-05-06T14:48:21+08:00","updated_at":"2024-05-06T14:48:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbc0bc4ef8fb9d8c5c72390f86203fe5d6ef5d7_addc5a5c-adfc-45c1-a038-9c68efce1412.webp?v=1714978101","variant_ids":[41919252070499]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - 熊滿星空 - 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":"NPB0105424-YB09","featured_media":{"alt":null,"id":23897432686691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbc0bc4ef8fb9d8c5c72390f86203fe5d6ef5d7_addc5a5c-adfc-45c1-a038-9c68efce1412.webp?v=1714978101"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919252070499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31492018765923,"product_id":7416393171043,"position":8,"created_at":"2024-05-06T14:48:21+08:00","updated_at":"2024-05-06T14:48:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbc0bc4ef8fb9d8c5c72390f86203fe5d6ef5d7_addc5a5c-adfc-45c1-a038-9c68efce1412.webp?v=1714978101","variant_ids":[41919252070499]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - 熊滿星空 - 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":"NPB0105424-YB09","featured_media":{"alt":null,"id":23897432686691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdbc0bc4ef8fb9d8c5c72390f86203fe5d6ef5d7_addc5a5c-adfc-45c1-a038-9c68efce1412.webp?v=1714978101"}},"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: "停產" }