$product = {"id":7408524492899,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 小丑女與小丑","handle":"iphone-12-pro-max-mod-nx-printable-sb18","description":null,"published_at":"2024-06-11T16:39:40+08:00","created_at":"2024-05-03T15:43:32+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 12 pro max","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":41886461395043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31472499589219,"product_id":7408524492899,"position":6,"created_at":"2024-05-03T15:43:46+08:00","updated_at":"2024-05-03T15:43:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99370404bdb263e7b9a8d576222bb1dfc960c1a_f00988ee-edbd-4b33-a821-32a4868daa4a.webp?v=1714722226","variant_ids":[41886461395043]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 小丑女與小丑 - 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":"NPB0118724-SB18","featured_media":{"alt":null,"id":23877416943715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99370404bdb263e7b9a8d576222bb1dfc960c1a_f00988ee-edbd-4b33-a821-32a4868daa4a.webp?v=1714722226"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee9b11df22a585591859d7a4a8dbe2f7bf9e881_5a3edbe6-48c2-427b-9c87-cad69d5d76c5.webp?v=1714722215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a43f2e7a5f0d77907bec29871d30db92d1a3aee_62539f61-5ed9-47b2-aede-801137fea55b.webp?v=1714722217","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24970c92ef5684a9d467f69de16ba637cb4ff362_b35e7e5b-56c3-47be-8bfd-4bd909cac9e3.webp?v=1714722219","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdae6f5d045951bab44668964f3d90063526443d_eecb7087-1f5c-45e4-87a0-3beeee4b4cb1.webp?v=1714722222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/739b9fb4a4ac80b957301d59b307a2af728fec3f_9a03c5e9-fc72-4ea7-953f-58da0e502396.webp?v=1714722224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99370404bdb263e7b9a8d576222bb1dfc960c1a_f00988ee-edbd-4b33-a821-32a4868daa4a.webp?v=1714722226","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db62c9e51b27c6bf66ce8cc0e843bbf41debb16_e63960b4-20ea-4593-bafa-83d24d934290.webp?v=1714722229","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320c995b56661c081f3896c7b0f2a859212b334d_51367c05-b35b-41b9-9eee-4ce8a8ac9616.webp?v=1714722231","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e692cf87e407ec157daca6a1be18b8f4dd5008ba_d04264b6-69ad-4a8f-a010-9be660f0124d.webp?v=1714722233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8857cab255abb23a5d556725c0c37de36e0760fc_090c61ef-b883-4dd7-90c2-e537fc86bb2e.webp?v=1714722236"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee9b11df22a585591859d7a4a8dbe2f7bf9e881_5a3edbe6-48c2-427b-9c87-cad69d5d76c5.webp?v=1714722215","options":["color"],"media":[{"alt":null,"id":23877414027363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee9b11df22a585591859d7a4a8dbe2f7bf9e881_5a3edbe6-48c2-427b-9c87-cad69d5d76c5.webp?v=1714722215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee9b11df22a585591859d7a4a8dbe2f7bf9e881_5a3edbe6-48c2-427b-9c87-cad69d5d76c5.webp?v=1714722215","width":2000},{"alt":null,"id":23877414453347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a43f2e7a5f0d77907bec29871d30db92d1a3aee_62539f61-5ed9-47b2-aede-801137fea55b.webp?v=1714722217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a43f2e7a5f0d77907bec29871d30db92d1a3aee_62539f61-5ed9-47b2-aede-801137fea55b.webp?v=1714722217","width":2000},{"alt":null,"id":23877415043171,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24970c92ef5684a9d467f69de16ba637cb4ff362_b35e7e5b-56c3-47be-8bfd-4bd909cac9e3.webp?v=1714722219"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24970c92ef5684a9d467f69de16ba637cb4ff362_b35e7e5b-56c3-47be-8bfd-4bd909cac9e3.webp?v=1714722219","width":2000},{"alt":null,"id":23877415731299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdae6f5d045951bab44668964f3d90063526443d_eecb7087-1f5c-45e4-87a0-3beeee4b4cb1.webp?v=1714722222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdae6f5d045951bab44668964f3d90063526443d_eecb7087-1f5c-45e4-87a0-3beeee4b4cb1.webp?v=1714722222","width":2000},{"alt":null,"id":23877416386659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/739b9fb4a4ac80b957301d59b307a2af728fec3f_9a03c5e9-fc72-4ea7-953f-58da0e502396.webp?v=1714722224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/739b9fb4a4ac80b957301d59b307a2af728fec3f_9a03c5e9-fc72-4ea7-953f-58da0e502396.webp?v=1714722224","width":2000},{"alt":null,"id":23877416943715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99370404bdb263e7b9a8d576222bb1dfc960c1a_f00988ee-edbd-4b33-a821-32a4868daa4a.webp?v=1714722226"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99370404bdb263e7b9a8d576222bb1dfc960c1a_f00988ee-edbd-4b33-a821-32a4868daa4a.webp?v=1714722226","width":2000},{"alt":null,"id":23877417435235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db62c9e51b27c6bf66ce8cc0e843bbf41debb16_e63960b4-20ea-4593-bafa-83d24d934290.webp?v=1714722229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7db62c9e51b27c6bf66ce8cc0e843bbf41debb16_e63960b4-20ea-4593-bafa-83d24d934290.webp?v=1714722229","width":2000},{"alt":null,"id":23877417828451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320c995b56661c081f3896c7b0f2a859212b334d_51367c05-b35b-41b9-9eee-4ce8a8ac9616.webp?v=1714722231"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/320c995b56661c081f3896c7b0f2a859212b334d_51367c05-b35b-41b9-9eee-4ce8a8ac9616.webp?v=1714722231","width":2000},{"alt":null,"id":23877418647651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e692cf87e407ec157daca6a1be18b8f4dd5008ba_d04264b6-69ad-4a8f-a010-9be660f0124d.webp?v=1714722233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e692cf87e407ec157daca6a1be18b8f4dd5008ba_d04264b6-69ad-4a8f-a010-9be660f0124d.webp?v=1714722233","width":2000},{"alt":null,"id":23877419106403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8857cab255abb23a5d556725c0c37de36e0760fc_090c61ef-b883-4dd7-90c2-e537fc86bb2e.webp?v=1714722236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8857cab255abb23a5d556725c0c37de36e0760fc_090c61ef-b883-4dd7-90c2-e537fc86bb2e.webp?v=1714722236","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886461395043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31472499589219,"product_id":7408524492899,"position":6,"created_at":"2024-05-03T15:43:46+08:00","updated_at":"2024-05-03T15:43:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99370404bdb263e7b9a8d576222bb1dfc960c1a_f00988ee-edbd-4b33-a821-32a4868daa4a.webp?v=1714722226","variant_ids":[41886461395043]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 小丑女與小丑 - 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":"NPB0118724-SB18","featured_media":{"alt":null,"id":23877416943715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99370404bdb263e7b9a8d576222bb1dfc960c1a_f00988ee-edbd-4b33-a821-32a4868daa4a.webp?v=1714722226"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886461395043,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31472499589219,"product_id":7408524492899,"position":6,"created_at":"2024-05-03T15:43:46+08:00","updated_at":"2024-05-03T15:43:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99370404bdb263e7b9a8d576222bb1dfc960c1a_f00988ee-edbd-4b33-a821-32a4868daa4a.webp?v=1714722226","variant_ids":[41886461395043]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 小丑女與小丑 - 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":"NPB0118724-SB18","featured_media":{"alt":null,"id":23877416943715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99370404bdb263e7b9a8d576222bb1dfc960c1a_f00988ee-edbd-4b33-a821-32a4868daa4a.webp?v=1714722226"}},"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: "停產" }