$product = {"id":7415001317475,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Weiweiboy - 可愛大龍王","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-eo06","description":null,"published_at":"2024-06-11T17:55:18+08:00","created_at":"2024-05-05T20:04:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-weiweiboy","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41910822535267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-EO06","requires_shipping":true,"taxable":true,"featured_image":{"id":31487894749283,"product_id":7415001317475,"position":6,"created_at":"2024-05-05T20:04:24+08:00","updated_at":"2024-05-05T20:04:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563c5e528742217cec803d354582781f78767d0a_b4cc7d35-e60f-46b5-9f86-68580af4533b.webp?v=1714910664","variant_ids":[41910822535267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Weiweiboy - 可愛大龍王 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-EO06","featured_media":{"alt":null,"id":23893238775907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563c5e528742217cec803d354582781f78767d0a_b4cc7d35-e60f-46b5-9f86-68580af4533b.webp?v=1714910664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5f28f99f03669b6534eea269efa77e8d6c7688_5ac057ab-aa50-42a8-a6d4-5ba6944b08e9.webp?v=1714910643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c7c166bef82927d48d7c6b21ef309ee5610f5d_e18f7163-e39e-4e73-87b9-08bb887861d6.webp?v=1714910654","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf8c48fe24aff7fa4bac3c44d65528603f57aa1_4401126c-4f7f-4c66-a369-dc8a5e41c059.webp?v=1714910656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096f48720df96fbdf9c79ffc311d4df81838a6d6_cec45615-5db4-4ac7-8d99-743ce40487c6.webp?v=1714910659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f103a75524e20360d4a1019c8996e9b7c96792e_f6e51e1e-8ddc-4d91-8582-1b23fda9f6e2.webp?v=1714910661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563c5e528742217cec803d354582781f78767d0a_b4cc7d35-e60f-46b5-9f86-68580af4533b.webp?v=1714910664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb1393e3a258e5c5743c7c10904ed5d5f7fe2470_6f131041-dfbb-4c3c-8adc-1810d3b52f0e.webp?v=1714910666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f46d27e8f4eb0237570723d7ad71b41c9a0ceb5_c9bfc97c-baa2-493c-a08f-101728fd14a1.webp?v=1714910669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87cb85e168ee06479da2ef16413f50d9e8c6acce_79d70de3-938d-4817-92fe-0fbdb712c8e3.webp?v=1714910671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdcf8255f9b88764bc047bd72427710eda53dcc8_8eba2684-9a96-4209-90b7-e12e576c4cb5.webp?v=1714910674","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a47f2133fc38d6abecaa0fdc352e9112c13a094_1f5550d9-e9d3-4b13-831f-f1bb4645ae0d.webp?v=1714910676"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5f28f99f03669b6534eea269efa77e8d6c7688_5ac057ab-aa50-42a8-a6d4-5ba6944b08e9.webp?v=1714910643","options":["color"],"media":[{"alt":null,"id":23893234843747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5f28f99f03669b6534eea269efa77e8d6c7688_5ac057ab-aa50-42a8-a6d4-5ba6944b08e9.webp?v=1714910643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b5f28f99f03669b6534eea269efa77e8d6c7688_5ac057ab-aa50-42a8-a6d4-5ba6944b08e9.webp?v=1714910643","width":2000},{"alt":null,"id":23893236580451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c7c166bef82927d48d7c6b21ef309ee5610f5d_e18f7163-e39e-4e73-87b9-08bb887861d6.webp?v=1714910654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c7c166bef82927d48d7c6b21ef309ee5610f5d_e18f7163-e39e-4e73-87b9-08bb887861d6.webp?v=1714910654","width":2000},{"alt":null,"id":23893237104739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf8c48fe24aff7fa4bac3c44d65528603f57aa1_4401126c-4f7f-4c66-a369-dc8a5e41c059.webp?v=1714910656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf8c48fe24aff7fa4bac3c44d65528603f57aa1_4401126c-4f7f-4c66-a369-dc8a5e41c059.webp?v=1714910656","width":2000},{"alt":null,"id":23893237923939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096f48720df96fbdf9c79ffc311d4df81838a6d6_cec45615-5db4-4ac7-8d99-743ce40487c6.webp?v=1714910659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/096f48720df96fbdf9c79ffc311d4df81838a6d6_cec45615-5db4-4ac7-8d99-743ce40487c6.webp?v=1714910659","width":2000},{"alt":null,"id":23893238317155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f103a75524e20360d4a1019c8996e9b7c96792e_f6e51e1e-8ddc-4d91-8582-1b23fda9f6e2.webp?v=1714910661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f103a75524e20360d4a1019c8996e9b7c96792e_f6e51e1e-8ddc-4d91-8582-1b23fda9f6e2.webp?v=1714910661","width":2000},{"alt":null,"id":23893238775907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563c5e528742217cec803d354582781f78767d0a_b4cc7d35-e60f-46b5-9f86-68580af4533b.webp?v=1714910664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563c5e528742217cec803d354582781f78767d0a_b4cc7d35-e60f-46b5-9f86-68580af4533b.webp?v=1714910664","width":2000},{"alt":null,"id":23893239201891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb1393e3a258e5c5743c7c10904ed5d5f7fe2470_6f131041-dfbb-4c3c-8adc-1810d3b52f0e.webp?v=1714910666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb1393e3a258e5c5743c7c10904ed5d5f7fe2470_6f131041-dfbb-4c3c-8adc-1810d3b52f0e.webp?v=1714910666","width":2000},{"alt":null,"id":23893239758947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f46d27e8f4eb0237570723d7ad71b41c9a0ceb5_c9bfc97c-baa2-493c-a08f-101728fd14a1.webp?v=1714910669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f46d27e8f4eb0237570723d7ad71b41c9a0ceb5_c9bfc97c-baa2-493c-a08f-101728fd14a1.webp?v=1714910669","width":2000},{"alt":null,"id":23893240348771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87cb85e168ee06479da2ef16413f50d9e8c6acce_79d70de3-938d-4817-92fe-0fbdb712c8e3.webp?v=1714910671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87cb85e168ee06479da2ef16413f50d9e8c6acce_79d70de3-938d-4817-92fe-0fbdb712c8e3.webp?v=1714910671","width":2000},{"alt":null,"id":23893241200739,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdcf8255f9b88764bc047bd72427710eda53dcc8_8eba2684-9a96-4209-90b7-e12e576c4cb5.webp?v=1714910674"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdcf8255f9b88764bc047bd72427710eda53dcc8_8eba2684-9a96-4209-90b7-e12e576c4cb5.webp?v=1714910674","width":2000},{"alt":null,"id":23893241921635,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a47f2133fc38d6abecaa0fdc352e9112c13a094_1f5550d9-e9d3-4b13-831f-f1bb4645ae0d.webp?v=1714910676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a47f2133fc38d6abecaa0fdc352e9112c13a094_1f5550d9-e9d3-4b13-831f-f1bb4645ae0d.webp?v=1714910676","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910822535267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-EO06","requires_shipping":true,"taxable":true,"featured_image":{"id":31487894749283,"product_id":7415001317475,"position":6,"created_at":"2024-05-05T20:04:24+08:00","updated_at":"2024-05-05T20:04:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563c5e528742217cec803d354582781f78767d0a_b4cc7d35-e60f-46b5-9f86-68580af4533b.webp?v=1714910664","variant_ids":[41910822535267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Weiweiboy - 可愛大龍王 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-EO06","featured_media":{"alt":null,"id":23893238775907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563c5e528742217cec803d354582781f78767d0a_b4cc7d35-e60f-46b5-9f86-68580af4533b.webp?v=1714910664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910822535267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-EO06","requires_shipping":true,"taxable":true,"featured_image":{"id":31487894749283,"product_id":7415001317475,"position":6,"created_at":"2024-05-05T20:04:24+08:00","updated_at":"2024-05-05T20:04:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563c5e528742217cec803d354582781f78767d0a_b4cc7d35-e60f-46b5-9f86-68580af4533b.webp?v=1714910664","variant_ids":[41910822535267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Weiweiboy - 可愛大龍王 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-EO06","featured_media":{"alt":null,"id":23893238775907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/563c5e528742217cec803d354582781f78767d0a_b4cc7d35-e60f-46b5-9f86-68580af4533b.webp?v=1714910664"}},"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: "停產" }