$product = {"id":7407774629987,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - Logo貼紙款","handle":"iphone-14-plus-mod-nx-printable-sb04","description":null,"published_at":"2024-06-11T16:23:02+08:00","created_at":"2024-05-03T10:50:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41878685941859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470359806051,"product_id":7407774629987,"position":2,"created_at":"2024-05-03T10:50:25+08:00","updated_at":"2024-05-03T10:50:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86da3eedd42ae80481ecfc08e44c0ceb2628fe9d_e01a35c9-cb08-4085-82ed-15d6c3ce79bb.webp?v=1714704625","variant_ids":[41878685941859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - Logo貼紙款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-SB04","featured_media":{"alt":null,"id":23875263037539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86da3eedd42ae80481ecfc08e44c0ceb2628fe9d_e01a35c9-cb08-4085-82ed-15d6c3ce79bb.webp?v=1714704625"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5678a2e1a07a620671b53d6fdb6d8da7c3a4bab1_1b9f7067-214d-47f0-a0c4-a329855dd8d8.webp?v=1714704622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86da3eedd42ae80481ecfc08e44c0ceb2628fe9d_e01a35c9-cb08-4085-82ed-15d6c3ce79bb.webp?v=1714704625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/646a0c1d053202288d1d3775b52eaf6404bc149b_e77b688e-703f-4049-bbd4-180d9cacf7d3.webp?v=1714704627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78ee5fa624f4753a5d38e9e433c8306f842a2438_c96f21c4-6f8a-4f8e-8c53-a59f6666fe23.webp?v=1714704630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1a17c3aefd6602fd0048399955e44a35d28bbb_94ae32a8-bd0b-476e-b92e-cbf6a7a5c84c.webp?v=1714704633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38dc3705fa3931873273bc23bca6554fdb888188_b6b7d71e-4eda-44ad-8562-523fc44bd107.webp?v=1714704636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d85b5da9feb288d9d7c5ce45c03ff2a0329b047_43adabef-79ab-4fe5-9463-028da1a14994.webp?v=1714704639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efa6c74b1a853842367d408957e2c391ae5f334_3fe6a994-731d-495f-8fef-3e5d6fbdaf07.webp?v=1714704641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7c0e8d9759b2dc99b569033df4426b7dabadbb0_5935a62c-7250-41a3-93f8-c3e3a04f43e6.webp?v=1714704644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f2adc95bf8286207d330bf8cd4d8711057aa266_07355648-c3be-4e6b-8aad-05ea6919559a.webp?v=1714704646"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5678a2e1a07a620671b53d6fdb6d8da7c3a4bab1_1b9f7067-214d-47f0-a0c4-a329855dd8d8.webp?v=1714704622","options":["color"],"media":[{"alt":null,"id":23875262218339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5678a2e1a07a620671b53d6fdb6d8da7c3a4bab1_1b9f7067-214d-47f0-a0c4-a329855dd8d8.webp?v=1714704622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5678a2e1a07a620671b53d6fdb6d8da7c3a4bab1_1b9f7067-214d-47f0-a0c4-a329855dd8d8.webp?v=1714704622","width":2000},{"alt":null,"id":23875263037539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86da3eedd42ae80481ecfc08e44c0ceb2628fe9d_e01a35c9-cb08-4085-82ed-15d6c3ce79bb.webp?v=1714704625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86da3eedd42ae80481ecfc08e44c0ceb2628fe9d_e01a35c9-cb08-4085-82ed-15d6c3ce79bb.webp?v=1714704625","width":2000},{"alt":null,"id":23875263725667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/646a0c1d053202288d1d3775b52eaf6404bc149b_e77b688e-703f-4049-bbd4-180d9cacf7d3.webp?v=1714704627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/646a0c1d053202288d1d3775b52eaf6404bc149b_e77b688e-703f-4049-bbd4-180d9cacf7d3.webp?v=1714704627","width":2000},{"alt":null,"id":23875266805859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78ee5fa624f4753a5d38e9e433c8306f842a2438_c96f21c4-6f8a-4f8e-8c53-a59f6666fe23.webp?v=1714704630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78ee5fa624f4753a5d38e9e433c8306f842a2438_c96f21c4-6f8a-4f8e-8c53-a59f6666fe23.webp?v=1714704630","width":2000},{"alt":null,"id":23875267395683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1a17c3aefd6602fd0048399955e44a35d28bbb_94ae32a8-bd0b-476e-b92e-cbf6a7a5c84c.webp?v=1714704633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b1a17c3aefd6602fd0048399955e44a35d28bbb_94ae32a8-bd0b-476e-b92e-cbf6a7a5c84c.webp?v=1714704633","width":2000},{"alt":null,"id":23875268477027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38dc3705fa3931873273bc23bca6554fdb888188_b6b7d71e-4eda-44ad-8562-523fc44bd107.webp?v=1714704636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38dc3705fa3931873273bc23bca6554fdb888188_b6b7d71e-4eda-44ad-8562-523fc44bd107.webp?v=1714704636","width":2000},{"alt":null,"id":23875269165155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d85b5da9feb288d9d7c5ce45c03ff2a0329b047_43adabef-79ab-4fe5-9463-028da1a14994.webp?v=1714704639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d85b5da9feb288d9d7c5ce45c03ff2a0329b047_43adabef-79ab-4fe5-9463-028da1a14994.webp?v=1714704639","width":2000},{"alt":null,"id":23875269689443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efa6c74b1a853842367d408957e2c391ae5f334_3fe6a994-731d-495f-8fef-3e5d6fbdaf07.webp?v=1714704641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7efa6c74b1a853842367d408957e2c391ae5f334_3fe6a994-731d-495f-8fef-3e5d6fbdaf07.webp?v=1714704641","width":2000},{"alt":null,"id":23875270475875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7c0e8d9759b2dc99b569033df4426b7dabadbb0_5935a62c-7250-41a3-93f8-c3e3a04f43e6.webp?v=1714704644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7c0e8d9759b2dc99b569033df4426b7dabadbb0_5935a62c-7250-41a3-93f8-c3e3a04f43e6.webp?v=1714704644","width":2000},{"alt":null,"id":23875270934627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f2adc95bf8286207d330bf8cd4d8711057aa266_07355648-c3be-4e6b-8aad-05ea6919559a.webp?v=1714704646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f2adc95bf8286207d330bf8cd4d8711057aa266_07355648-c3be-4e6b-8aad-05ea6919559a.webp?v=1714704646","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41878685941859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470359806051,"product_id":7407774629987,"position":2,"created_at":"2024-05-03T10:50:25+08:00","updated_at":"2024-05-03T10:50:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86da3eedd42ae80481ecfc08e44c0ceb2628fe9d_e01a35c9-cb08-4085-82ed-15d6c3ce79bb.webp?v=1714704625","variant_ids":[41878685941859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - Logo貼紙款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-SB04","featured_media":{"alt":null,"id":23875263037539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86da3eedd42ae80481ecfc08e44c0ceb2628fe9d_e01a35c9-cb08-4085-82ed-15d6c3ce79bb.webp?v=1714704625"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878685941859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470359806051,"product_id":7407774629987,"position":2,"created_at":"2024-05-03T10:50:25+08:00","updated_at":"2024-05-03T10:50:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86da3eedd42ae80481ecfc08e44c0ceb2628fe9d_e01a35c9-cb08-4085-82ed-15d6c3ce79bb.webp?v=1714704625","variant_ids":[41878685941859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - Logo貼紙款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-SB04","featured_media":{"alt":null,"id":23875263037539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86da3eedd42ae80481ecfc08e44c0ceb2628fe9d_e01a35c9-cb08-4085-82ed-15d6c3ce79bb.webp?v=1714704625"}},"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: "停產" }