$product = {"id":7369214689379,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Snoopy 史努比 - 溜滑梯","handle":"iphone-14-plus-mod-nx-magsafe-printable-pl62","description":null,"published_at":"2024-06-11T17:31:36+08:00","created_at":"2024-04-23T15:46:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-snoopy","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":41793684996195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":31387087929443,"product_id":7369214689379,"position":5,"created_at":"2024-04-23T15:46:13+08:00","updated_at":"2024-04-23T15:46:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3539944023a69b90d85ef9872aedb031d37be1_0a4dd32f-30db-4b6d-8d44-2298d2c5281d.webp?v=1713858373","variant_ids":[41793684996195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Snoopy 史努比 - 溜滑梯 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PL62","featured_media":{"alt":null,"id":23789326696547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3539944023a69b90d85ef9872aedb031d37be1_0a4dd32f-30db-4b6d-8d44-2298d2c5281d.webp?v=1713858373"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60eb41289f53eb545b861f78ab4c828f06257959_89ae6f55-8fec-4cce-b9ab-7efa2625c8be.webp?v=1713858364","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a7a2c3498981a8a1e410af8e4c0994c0196490_26940f14-b076-4559-9ab4-583138377239.webp?v=1713858367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a8eded04774be09eb3c543419004a7bd613a46d_144ef0fa-1e60-40d7-8d49-7cbf5440c509.webp?v=1713858369","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ea4af8e87fade45d2133a0bba4e1eba5450795a_840c480e-2a9f-4945-9132-09843b377ab6.webp?v=1713858371","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3539944023a69b90d85ef9872aedb031d37be1_0a4dd32f-30db-4b6d-8d44-2298d2c5281d.webp?v=1713858373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c55dc5c12e890c04fa37f0c5d52497ed38d8d4_52ee2bd7-305f-4bee-9b37-e12daea867dc.webp?v=1713858376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47032c54217cd3be106aa03f822db7ffdaf6cfd8_2132294e-d7f0-4661-a06d-1987c356412c.webp?v=1713858379","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00f7238a5df97a16de358d7a5e2d9f83bd75d1cc_d1d1b45d-bdeb-42e3-aea2-f6f557440ff0.webp?v=1713858381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e08ac211aee329b5dd645b3b670c16d27ac32cb_6baaa1f2-2adb-4d1a-8fe4-5f5a38232dbd.webp?v=1713858384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95f1508d4250443d48cf28f823f0d0ceaa540bf8_b1762cab-6b0c-4dd2-802f-c27623beb7a4.webp?v=1713858386"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60eb41289f53eb545b861f78ab4c828f06257959_89ae6f55-8fec-4cce-b9ab-7efa2625c8be.webp?v=1713858364","options":["color"],"media":[{"alt":null,"id":23789323845731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60eb41289f53eb545b861f78ab4c828f06257959_89ae6f55-8fec-4cce-b9ab-7efa2625c8be.webp?v=1713858364"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60eb41289f53eb545b861f78ab4c828f06257959_89ae6f55-8fec-4cce-b9ab-7efa2625c8be.webp?v=1713858364","width":2000},{"alt":null,"id":23789324632163,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a7a2c3498981a8a1e410af8e4c0994c0196490_26940f14-b076-4559-9ab4-583138377239.webp?v=1713858367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a7a2c3498981a8a1e410af8e4c0994c0196490_26940f14-b076-4559-9ab4-583138377239.webp?v=1713858367","width":2000},{"alt":null,"id":23789325451363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a8eded04774be09eb3c543419004a7bd613a46d_144ef0fa-1e60-40d7-8d49-7cbf5440c509.webp?v=1713858369"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a8eded04774be09eb3c543419004a7bd613a46d_144ef0fa-1e60-40d7-8d49-7cbf5440c509.webp?v=1713858369","width":2000},{"alt":null,"id":23789326106723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ea4af8e87fade45d2133a0bba4e1eba5450795a_840c480e-2a9f-4945-9132-09843b377ab6.webp?v=1713858371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ea4af8e87fade45d2133a0bba4e1eba5450795a_840c480e-2a9f-4945-9132-09843b377ab6.webp?v=1713858371","width":2000},{"alt":null,"id":23789326696547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3539944023a69b90d85ef9872aedb031d37be1_0a4dd32f-30db-4b6d-8d44-2298d2c5281d.webp?v=1713858373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3539944023a69b90d85ef9872aedb031d37be1_0a4dd32f-30db-4b6d-8d44-2298d2c5281d.webp?v=1713858373","width":2000},{"alt":null,"id":23789327286371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c55dc5c12e890c04fa37f0c5d52497ed38d8d4_52ee2bd7-305f-4bee-9b37-e12daea867dc.webp?v=1713858376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7c55dc5c12e890c04fa37f0c5d52497ed38d8d4_52ee2bd7-305f-4bee-9b37-e12daea867dc.webp?v=1713858376","width":2000},{"alt":null,"id":23789328105571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47032c54217cd3be106aa03f822db7ffdaf6cfd8_2132294e-d7f0-4661-a06d-1987c356412c.webp?v=1713858379"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47032c54217cd3be106aa03f822db7ffdaf6cfd8_2132294e-d7f0-4661-a06d-1987c356412c.webp?v=1713858379","width":2000},{"alt":null,"id":23789328793699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00f7238a5df97a16de358d7a5e2d9f83bd75d1cc_d1d1b45d-bdeb-42e3-aea2-f6f557440ff0.webp?v=1713858381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00f7238a5df97a16de358d7a5e2d9f83bd75d1cc_d1d1b45d-bdeb-42e3-aea2-f6f557440ff0.webp?v=1713858381","width":2000},{"alt":null,"id":23789329481827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e08ac211aee329b5dd645b3b670c16d27ac32cb_6baaa1f2-2adb-4d1a-8fe4-5f5a38232dbd.webp?v=1713858384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e08ac211aee329b5dd645b3b670c16d27ac32cb_6baaa1f2-2adb-4d1a-8fe4-5f5a38232dbd.webp?v=1713858384","width":2000},{"alt":null,"id":23789330104419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95f1508d4250443d48cf28f823f0d0ceaa540bf8_b1762cab-6b0c-4dd2-802f-c27623beb7a4.webp?v=1713858386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95f1508d4250443d48cf28f823f0d0ceaa540bf8_b1762cab-6b0c-4dd2-802f-c27623beb7a4.webp?v=1713858386","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41793684996195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":31387087929443,"product_id":7369214689379,"position":5,"created_at":"2024-04-23T15:46:13+08:00","updated_at":"2024-04-23T15:46:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3539944023a69b90d85ef9872aedb031d37be1_0a4dd32f-30db-4b6d-8d44-2298d2c5281d.webp?v=1713858373","variant_ids":[41793684996195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Snoopy 史努比 - 溜滑梯 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PL62","featured_media":{"alt":null,"id":23789326696547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3539944023a69b90d85ef9872aedb031d37be1_0a4dd32f-30db-4b6d-8d44-2298d2c5281d.webp?v=1713858373"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41793684996195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PL62","requires_shipping":true,"taxable":true,"featured_image":{"id":31387087929443,"product_id":7369214689379,"position":5,"created_at":"2024-04-23T15:46:13+08:00","updated_at":"2024-04-23T15:46:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3539944023a69b90d85ef9872aedb031d37be1_0a4dd32f-30db-4b6d-8d44-2298d2c5281d.webp?v=1713858373","variant_ids":[41793684996195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Snoopy 史努比 - 溜滑梯 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PL62","featured_media":{"alt":null,"id":23789326696547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3539944023a69b90d85ef9872aedb031d37be1_0a4dd32f-30db-4b6d-8d44-2298d2c5281d.webp?v=1713858373"}},"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: "停產" }