$product = {"id":7411339853923,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Weiweiboy - 讓世界再可愛一點","handle":"iphone-14-plus-mod-nx-magsafe-printable-eo02","description":null,"published_at":"2024-06-11T17:42:17+08:00","created_at":"2024-05-05T00:10:32+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 14 Plus","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":41897651208291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-EO02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480178835555,"product_id":7411339853923,"position":4,"created_at":"2024-05-05T00:10:44+08:00","updated_at":"2024-05-05T00:10:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfabe8046d898588c6de519f904170b067722fed_b7849408-62fd-413a-8b17-e5eebdd4443e.webp?v=1714839044","variant_ids":[41897651208291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 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":"MPB0126124-EO02","featured_media":{"alt":null,"id":23885429768291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfabe8046d898588c6de519f904170b067722fed_b7849408-62fd-413a-8b17-e5eebdd4443e.webp?v=1714839044"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5a2ab84e737dfca5a7557629afb55ab243f4b2_06b54f76-0f4a-41f5-8e31-22028e5e9773.webp?v=1714839036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49fdb5992402e4ba6449efd4478db259a0bfba68_42ae1bd5-d086-46f8-88d7-62d16ab67fe1.webp?v=1714839039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e462ce615b6dd5e61a16fde720b75a596263cbeb_667a0204-4ec5-4a28-8b58-f439fb7b97ec.webp?v=1714839041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfabe8046d898588c6de519f904170b067722fed_b7849408-62fd-413a-8b17-e5eebdd4443e.webp?v=1714839044","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b663e79053837819119ca002200d8e6cb018338_d04661ce-995d-42fd-afe7-06871c448460.webp?v=1714839046","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0382f2a485f2da85fe947fce5eccc542b8066b3_13442834-d655-487a-a1a0-049fbcb35968.webp?v=1714839048","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a54d0e010aae7513cef8a8981ef5e39b84476c3a_1d2bcbc2-2740-4356-ab56-694bf8263912.webp?v=1714839051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd4882df07b19703637df056dd21e97bcd9af60_c7075619-8762-4641-b083-ae83b466f62a.webp?v=1714839054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b38c2fb701cb64f43580a3be6ed62c5d700d7e_75b42dbe-0cac-4f71-8cb0-deddb02241cb.webp?v=1714839056","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/015ff17e81c3271e518cb270149a3a887bf4137b_fe7e9111-9807-4933-a473-1daed8dd5302.webp?v=1714839058"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5a2ab84e737dfca5a7557629afb55ab243f4b2_06b54f76-0f4a-41f5-8e31-22028e5e9773.webp?v=1714839036","options":["color"],"media":[{"alt":null,"id":23885428195427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5a2ab84e737dfca5a7557629afb55ab243f4b2_06b54f76-0f4a-41f5-8e31-22028e5e9773.webp?v=1714839036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5a2ab84e737dfca5a7557629afb55ab243f4b2_06b54f76-0f4a-41f5-8e31-22028e5e9773.webp?v=1714839036","width":2000},{"alt":null,"id":23885428752483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49fdb5992402e4ba6449efd4478db259a0bfba68_42ae1bd5-d086-46f8-88d7-62d16ab67fe1.webp?v=1714839039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49fdb5992402e4ba6449efd4478db259a0bfba68_42ae1bd5-d086-46f8-88d7-62d16ab67fe1.webp?v=1714839039","width":2000},{"alt":null,"id":23885429309539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e462ce615b6dd5e61a16fde720b75a596263cbeb_667a0204-4ec5-4a28-8b58-f439fb7b97ec.webp?v=1714839041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e462ce615b6dd5e61a16fde720b75a596263cbeb_667a0204-4ec5-4a28-8b58-f439fb7b97ec.webp?v=1714839041","width":2000},{"alt":null,"id":23885429768291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfabe8046d898588c6de519f904170b067722fed_b7849408-62fd-413a-8b17-e5eebdd4443e.webp?v=1714839044"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfabe8046d898588c6de519f904170b067722fed_b7849408-62fd-413a-8b17-e5eebdd4443e.webp?v=1714839044","width":2000},{"alt":null,"id":23885430259811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b663e79053837819119ca002200d8e6cb018338_d04661ce-995d-42fd-afe7-06871c448460.webp?v=1714839046"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b663e79053837819119ca002200d8e6cb018338_d04661ce-995d-42fd-afe7-06871c448460.webp?v=1714839046","width":2000},{"alt":null,"id":23885430685795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0382f2a485f2da85fe947fce5eccc542b8066b3_13442834-d655-487a-a1a0-049fbcb35968.webp?v=1714839048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0382f2a485f2da85fe947fce5eccc542b8066b3_13442834-d655-487a-a1a0-049fbcb35968.webp?v=1714839048","width":2000},{"alt":null,"id":23885431177315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a54d0e010aae7513cef8a8981ef5e39b84476c3a_1d2bcbc2-2740-4356-ab56-694bf8263912.webp?v=1714839051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a54d0e010aae7513cef8a8981ef5e39b84476c3a_1d2bcbc2-2740-4356-ab56-694bf8263912.webp?v=1714839051","width":2000},{"alt":null,"id":23885431832675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd4882df07b19703637df056dd21e97bcd9af60_c7075619-8762-4641-b083-ae83b466f62a.webp?v=1714839054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfd4882df07b19703637df056dd21e97bcd9af60_c7075619-8762-4641-b083-ae83b466f62a.webp?v=1714839054","width":2000},{"alt":null,"id":23885432160355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b38c2fb701cb64f43580a3be6ed62c5d700d7e_75b42dbe-0cac-4f71-8cb0-deddb02241cb.webp?v=1714839056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b38c2fb701cb64f43580a3be6ed62c5d700d7e_75b42dbe-0cac-4f71-8cb0-deddb02241cb.webp?v=1714839056","width":2000},{"alt":null,"id":23885432619107,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/015ff17e81c3271e518cb270149a3a887bf4137b_fe7e9111-9807-4933-a473-1daed8dd5302.webp?v=1714839058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/015ff17e81c3271e518cb270149a3a887bf4137b_fe7e9111-9807-4933-a473-1daed8dd5302.webp?v=1714839058","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897651208291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-EO02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480178835555,"product_id":7411339853923,"position":4,"created_at":"2024-05-05T00:10:44+08:00","updated_at":"2024-05-05T00:10:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfabe8046d898588c6de519f904170b067722fed_b7849408-62fd-413a-8b17-e5eebdd4443e.webp?v=1714839044","variant_ids":[41897651208291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 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":"MPB0126124-EO02","featured_media":{"alt":null,"id":23885429768291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfabe8046d898588c6de519f904170b067722fed_b7849408-62fd-413a-8b17-e5eebdd4443e.webp?v=1714839044"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897651208291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-EO02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480178835555,"product_id":7411339853923,"position":4,"created_at":"2024-05-05T00:10:44+08:00","updated_at":"2024-05-05T00:10:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfabe8046d898588c6de519f904170b067722fed_b7849408-62fd-413a-8b17-e5eebdd4443e.webp?v=1714839044","variant_ids":[41897651208291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 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":"MPB0126124-EO02","featured_media":{"alt":null,"id":23885429768291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfabe8046d898588c6de519f904170b067722fed_b7849408-62fd-413a-8b17-e5eebdd4443e.webp?v=1714839044"}},"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: "停產" }