$product = {"id":7411260817507,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 人在做 大堡礁在看","handle":"iphone-14-plus-mod-nx-magsafe-printable-af07","description":null,"published_at":"2024-06-11T17:40:11+08:00","created_at":"2024-05-04T23:55:35+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41896655880291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479984029795,"product_id":7411260817507,"position":4,"created_at":"2024-05-04T23:55:45+08:00","updated_at":"2024-05-04T23:55:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c54ecb30bb75203a21066a9dd331d7b24666831_444c0761-85bb-454a-a8e1-b9050ba95d6b.webp?v=1714838145","variant_ids":[41896655880291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 人在做 大堡礁在看 - 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-AF07","featured_media":{"alt":null,"id":23885234503779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c54ecb30bb75203a21066a9dd331d7b24666831_444c0761-85bb-454a-a8e1-b9050ba95d6b.webp?v=1714838145"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f9f0c9eaa66f3b1f5aec351d4c1aa063fa0b4f_0746573b-92d1-4484-a442-4ed7fb19e20d.webp?v=1714838137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62e01da14e67a334c099c53cbd690ec8cf251e4b_e6af6552-1a01-4bfd-bad0-8ce15245bd08.webp?v=1714838140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cac4251d9cdf34ad8075a340e15f405af05a2e1_6eb4f4cd-5d53-408c-9e73-3a4388e2ea54.webp?v=1714838142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c54ecb30bb75203a21066a9dd331d7b24666831_444c0761-85bb-454a-a8e1-b9050ba95d6b.webp?v=1714838145","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6fcd133bb364434b8d801a8676b51dee8aecb5_b2336f22-8d3c-4b21-a3bc-3007d6ee8f27.webp?v=1714838147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c8a6b9a91ab97c027d6e801ee47c25be583eb81_acb9f22f-fa65-48ac-8701-bd266c698b7c.webp?v=1714838150","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/666d8789f6cc602b22956b42bb07c0187e1e50c9_960475bc-c987-4206-bc66-408b90e7795a.webp?v=1714838152","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4d6093d5a2c9f89ec1199addd46800e8af9b2ce_901956b5-61ea-4008-996c-669d5fb727df.webp?v=1714838154","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/708463c3c7619382c993bc71c584590c483e6e3f_10d43064-7877-4a6e-855e-fa1d7eb2a27f.webp?v=1714838157","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40608fb39fe05c17ba2e5be8c0d0a4c15ee49e86_119ca1c8-6390-49a4-80c7-eae48aea24b8.webp?v=1714838159"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f9f0c9eaa66f3b1f5aec351d4c1aa063fa0b4f_0746573b-92d1-4484-a442-4ed7fb19e20d.webp?v=1714838137","options":["color"],"media":[{"alt":null,"id":23885233061987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f9f0c9eaa66f3b1f5aec351d4c1aa063fa0b4f_0746573b-92d1-4484-a442-4ed7fb19e20d.webp?v=1714838137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08f9f0c9eaa66f3b1f5aec351d4c1aa063fa0b4f_0746573b-92d1-4484-a442-4ed7fb19e20d.webp?v=1714838137","width":2000},{"alt":null,"id":23885233455203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62e01da14e67a334c099c53cbd690ec8cf251e4b_e6af6552-1a01-4bfd-bad0-8ce15245bd08.webp?v=1714838140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62e01da14e67a334c099c53cbd690ec8cf251e4b_e6af6552-1a01-4bfd-bad0-8ce15245bd08.webp?v=1714838140","width":2000},{"alt":null,"id":23885234012259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cac4251d9cdf34ad8075a340e15f405af05a2e1_6eb4f4cd-5d53-408c-9e73-3a4388e2ea54.webp?v=1714838142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cac4251d9cdf34ad8075a340e15f405af05a2e1_6eb4f4cd-5d53-408c-9e73-3a4388e2ea54.webp?v=1714838142","width":2000},{"alt":null,"id":23885234503779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c54ecb30bb75203a21066a9dd331d7b24666831_444c0761-85bb-454a-a8e1-b9050ba95d6b.webp?v=1714838145"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c54ecb30bb75203a21066a9dd331d7b24666831_444c0761-85bb-454a-a8e1-b9050ba95d6b.webp?v=1714838145","width":2000},{"alt":null,"id":23885235126371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6fcd133bb364434b8d801a8676b51dee8aecb5_b2336f22-8d3c-4b21-a3bc-3007d6ee8f27.webp?v=1714838147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc6fcd133bb364434b8d801a8676b51dee8aecb5_b2336f22-8d3c-4b21-a3bc-3007d6ee8f27.webp?v=1714838147","width":2000},{"alt":null,"id":23885235585123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c8a6b9a91ab97c027d6e801ee47c25be583eb81_acb9f22f-fa65-48ac-8701-bd266c698b7c.webp?v=1714838150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c8a6b9a91ab97c027d6e801ee47c25be583eb81_acb9f22f-fa65-48ac-8701-bd266c698b7c.webp?v=1714838150","width":2000},{"alt":null,"id":23885235781731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/666d8789f6cc602b22956b42bb07c0187e1e50c9_960475bc-c987-4206-bc66-408b90e7795a.webp?v=1714838152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/666d8789f6cc602b22956b42bb07c0187e1e50c9_960475bc-c987-4206-bc66-408b90e7795a.webp?v=1714838152","width":2000},{"alt":null,"id":23885236011107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4d6093d5a2c9f89ec1199addd46800e8af9b2ce_901956b5-61ea-4008-996c-669d5fb727df.webp?v=1714838154"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4d6093d5a2c9f89ec1199addd46800e8af9b2ce_901956b5-61ea-4008-996c-669d5fb727df.webp?v=1714838154","width":2000},{"alt":null,"id":23885236306019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/708463c3c7619382c993bc71c584590c483e6e3f_10d43064-7877-4a6e-855e-fa1d7eb2a27f.webp?v=1714838157"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/708463c3c7619382c993bc71c584590c483e6e3f_10d43064-7877-4a6e-855e-fa1d7eb2a27f.webp?v=1714838157","width":2000},{"alt":null,"id":23885237026915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40608fb39fe05c17ba2e5be8c0d0a4c15ee49e86_119ca1c8-6390-49a4-80c7-eae48aea24b8.webp?v=1714838159"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40608fb39fe05c17ba2e5be8c0d0a4c15ee49e86_119ca1c8-6390-49a4-80c7-eae48aea24b8.webp?v=1714838159","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896655880291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479984029795,"product_id":7411260817507,"position":4,"created_at":"2024-05-04T23:55:45+08:00","updated_at":"2024-05-04T23:55:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c54ecb30bb75203a21066a9dd331d7b24666831_444c0761-85bb-454a-a8e1-b9050ba95d6b.webp?v=1714838145","variant_ids":[41896655880291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 人在做 大堡礁在看 - 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-AF07","featured_media":{"alt":null,"id":23885234503779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c54ecb30bb75203a21066a9dd331d7b24666831_444c0761-85bb-454a-a8e1-b9050ba95d6b.webp?v=1714838145"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896655880291,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479984029795,"product_id":7411260817507,"position":4,"created_at":"2024-05-04T23:55:45+08:00","updated_at":"2024-05-04T23:55:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c54ecb30bb75203a21066a9dd331d7b24666831_444c0761-85bb-454a-a8e1-b9050ba95d6b.webp?v=1714838145","variant_ids":[41896655880291]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 人在做 大堡礁在看 - 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-AF07","featured_media":{"alt":null,"id":23885234503779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c54ecb30bb75203a21066a9dd331d7b24666831_444c0761-85bb-454a-a8e1-b9050ba95d6b.webp?v=1714838145"}},"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: "停產" }