$product = {"id":7416378425443,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 史迪奇 - 熱帶音樂系列-慶祝","handle":"iphone-8-mod-nx-printable-yf04","description":null,"published_at":"2024-06-11T16:57:26+08:00","created_at":"2024-05-06T14:45:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","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":41919089115235,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31491983900771,"product_id":7416378425443,"position":10,"created_at":"2024-05-06T14:45:48+08:00","updated_at":"2024-05-06T14:45:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac040fadc097cfdc26d9deacf2f42704e811352d_db1131e7-ab31-4214-9309-6418891d4524.webp?v=1714977948","variant_ids":[41919089115235]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 史迪奇 - 熱帶音樂系列-慶祝 - 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":"NPB0105424-YF04","featured_media":{"alt":null,"id":23897397362787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac040fadc097cfdc26d9deacf2f42704e811352d_db1131e7-ab31-4214-9309-6418891d4524.webp?v=1714977948"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92c8b6e704b0f445860f88f8f883cc783c3feeb7_38334c06-5f42-4a6c-8dc8-29548310cae9.webp?v=1714977927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6f5b7ec519f10a4e5d07c40b407d1433c06c67_400fcc97-e039-459d-84b2-2961b6b7fd77.webp?v=1714977929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c628309351af1b79987c358f5eb3af581db8491_41b0c9f6-08e0-4a2a-a48d-f23bf6569fa2.webp?v=1714977932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43dc52c2d7084c938ba42d9fabcd0b621eea6324_20dda57e-4fcf-4271-bfa0-e5347da562ef.webp?v=1714977934","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf7c8407974325247418ce9a029dc310f2c4daa3_49a602f3-bc43-4141-be75-5254dd74efc9.webp?v=1714977936","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d7bbbbb66bab02e6a5e4a47ec1745f15d2e306_9292fe8c-6cf8-4f72-8d2f-c9296b09b2c8.webp?v=1714977938","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2721c4e2ddc1480b0c5933d4b979d45dd9084594_c085157f-acc9-4ca2-b28d-ad50544b8b5c.webp?v=1714977941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8047273b46ca98b0b9da1961d77b39ea83026aa4_15ff29e4-1258-4131-9c11-d4dae360d6da.webp?v=1714977943","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f4d3c00abd241f89695a1391143f1feed546b3_49b49703-ffff-4e6d-9466-a886124fca1b.webp?v=1714977946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac040fadc097cfdc26d9deacf2f42704e811352d_db1131e7-ab31-4214-9309-6418891d4524.webp?v=1714977948"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92c8b6e704b0f445860f88f8f883cc783c3feeb7_38334c06-5f42-4a6c-8dc8-29548310cae9.webp?v=1714977927","options":["color"],"media":[{"alt":null,"id":23897392644195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92c8b6e704b0f445860f88f8f883cc783c3feeb7_38334c06-5f42-4a6c-8dc8-29548310cae9.webp?v=1714977927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92c8b6e704b0f445860f88f8f883cc783c3feeb7_38334c06-5f42-4a6c-8dc8-29548310cae9.webp?v=1714977927","width":2000},{"alt":null,"id":23897393102947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6f5b7ec519f10a4e5d07c40b407d1433c06c67_400fcc97-e039-459d-84b2-2961b6b7fd77.webp?v=1714977929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6f5b7ec519f10a4e5d07c40b407d1433c06c67_400fcc97-e039-459d-84b2-2961b6b7fd77.webp?v=1714977929","width":2000},{"alt":null,"id":23897393856611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c628309351af1b79987c358f5eb3af581db8491_41b0c9f6-08e0-4a2a-a48d-f23bf6569fa2.webp?v=1714977932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c628309351af1b79987c358f5eb3af581db8491_41b0c9f6-08e0-4a2a-a48d-f23bf6569fa2.webp?v=1714977932","width":2000},{"alt":null,"id":23897394315363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43dc52c2d7084c938ba42d9fabcd0b621eea6324_20dda57e-4fcf-4271-bfa0-e5347da562ef.webp?v=1714977934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43dc52c2d7084c938ba42d9fabcd0b621eea6324_20dda57e-4fcf-4271-bfa0-e5347da562ef.webp?v=1714977934","width":2000},{"alt":null,"id":23897394741347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf7c8407974325247418ce9a029dc310f2c4daa3_49a602f3-bc43-4141-be75-5254dd74efc9.webp?v=1714977936"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf7c8407974325247418ce9a029dc310f2c4daa3_49a602f3-bc43-4141-be75-5254dd74efc9.webp?v=1714977936","width":2000},{"alt":null,"id":23897395200099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d7bbbbb66bab02e6a5e4a47ec1745f15d2e306_9292fe8c-6cf8-4f72-8d2f-c9296b09b2c8.webp?v=1714977938"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d7bbbbb66bab02e6a5e4a47ec1745f15d2e306_9292fe8c-6cf8-4f72-8d2f-c9296b09b2c8.webp?v=1714977938","width":2000},{"alt":null,"id":23897395920995,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2721c4e2ddc1480b0c5933d4b979d45dd9084594_c085157f-acc9-4ca2-b28d-ad50544b8b5c.webp?v=1714977941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2721c4e2ddc1480b0c5933d4b979d45dd9084594_c085157f-acc9-4ca2-b28d-ad50544b8b5c.webp?v=1714977941","width":2000},{"alt":null,"id":23897396510819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8047273b46ca98b0b9da1961d77b39ea83026aa4_15ff29e4-1258-4131-9c11-d4dae360d6da.webp?v=1714977943"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8047273b46ca98b0b9da1961d77b39ea83026aa4_15ff29e4-1258-4131-9c11-d4dae360d6da.webp?v=1714977943","width":2000},{"alt":null,"id":23897396904035,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f4d3c00abd241f89695a1391143f1feed546b3_49b49703-ffff-4e6d-9466-a886124fca1b.webp?v=1714977946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f4d3c00abd241f89695a1391143f1feed546b3_49b49703-ffff-4e6d-9466-a886124fca1b.webp?v=1714977946","width":2000},{"alt":null,"id":23897397362787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac040fadc097cfdc26d9deacf2f42704e811352d_db1131e7-ab31-4214-9309-6418891d4524.webp?v=1714977948"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac040fadc097cfdc26d9deacf2f42704e811352d_db1131e7-ab31-4214-9309-6418891d4524.webp?v=1714977948","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919089115235,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31491983900771,"product_id":7416378425443,"position":10,"created_at":"2024-05-06T14:45:48+08:00","updated_at":"2024-05-06T14:45:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac040fadc097cfdc26d9deacf2f42704e811352d_db1131e7-ab31-4214-9309-6418891d4524.webp?v=1714977948","variant_ids":[41919089115235]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 史迪奇 - 熱帶音樂系列-慶祝 - 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":"NPB0105424-YF04","featured_media":{"alt":null,"id":23897397362787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac040fadc097cfdc26d9deacf2f42704e811352d_db1131e7-ab31-4214-9309-6418891d4524.webp?v=1714977948"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919089115235,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31491983900771,"product_id":7416378425443,"position":10,"created_at":"2024-05-06T14:45:48+08:00","updated_at":"2024-05-06T14:45:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac040fadc097cfdc26d9deacf2f42704e811352d_db1131e7-ab31-4214-9309-6418891d4524.webp?v=1714977948","variant_ids":[41919089115235]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 史迪奇 - 熱帶音樂系列-慶祝 - 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":"NPB0105424-YF04","featured_media":{"alt":null,"id":23897397362787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac040fadc097cfdc26d9deacf2f42704e811352d_db1131e7-ab31-4214-9309-6418891d4524.webp?v=1714977948"}},"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: "停產" }