$product = {"id":7369224028259,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Snoopy 史努比 - 開心小花","handle":"iphone-14-plus-mod-nx-magsafe-printable-pl65","description":null,"published_at":"2024-06-11T17:31:47+08:00","created_at":"2024-04-23T15:47:43+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":41793766686819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31387111358563,"product_id":7369224028259,"position":2,"created_at":"2024-04-23T15:47:48+08:00","updated_at":"2024-04-23T15:47:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab593e27f4874d592b74971a6834af0ee6f69e42_cf2270aa-d174-487e-ac71-406f18e1fdc8.webp?v=1713858468","variant_ids":[41793766686819]},"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-PL65","featured_media":{"alt":null,"id":23789350060131,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab593e27f4874d592b74971a6834af0ee6f69e42_cf2270aa-d174-487e-ac71-406f18e1fdc8.webp?v=1713858468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6535be11f16200381f715b223f3bc2655fee02ac_82e40342-3ba9-406b-8e4f-e8c67f1d2310.webp?v=1713858466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab593e27f4874d592b74971a6834af0ee6f69e42_cf2270aa-d174-487e-ac71-406f18e1fdc8.webp?v=1713858468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b854d647cf66a913d85211d1e72ad79732527542_1657de23-ecd7-44ae-8da8-b7865da7ab2e.webp?v=1713858470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ace51c019fceaa87fad8453f16f5a2fc80e7a39_e00a2e81-5ecb-4ad8-9f6f-c47a571bf4f2.webp?v=1713858473","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d91a4dbe9800c2c8a65bed813e786b330111b7e7_93e7a40f-7c15-4191-b42d-52f6da75c3e2.webp?v=1713858475","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c675ea804f6ee9dde71fcd7d9f56515376e6aed6_c1e3b702-5af6-456e-bdcb-b0bb440797a6.webp?v=1713858478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0260ed2f34ed4764b26be9dd86a938efef6ce83_d47318c6-2906-4320-a980-a23d11acefbd.webp?v=1713858480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51ac778d8b7b34097efe7ab94433d60a6786fec4_8f2faf33-aa84-4dfe-a16a-1f67d6867def.webp?v=1713858483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/664299e6d314cf673e0040ed552b8c63ad431cfd_8f2adca1-0709-4bcc-93c2-215befa6e426.webp?v=1713858485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc54ead4d81fa9384dd4d38237461dd8e5a6a9fd_2f040a17-babc-4987-a828-5d5111ce8ea7.webp?v=1713858488"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6535be11f16200381f715b223f3bc2655fee02ac_82e40342-3ba9-406b-8e4f-e8c67f1d2310.webp?v=1713858466","options":["color"],"media":[{"alt":null,"id":23789349503075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6535be11f16200381f715b223f3bc2655fee02ac_82e40342-3ba9-406b-8e4f-e8c67f1d2310.webp?v=1713858466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6535be11f16200381f715b223f3bc2655fee02ac_82e40342-3ba9-406b-8e4f-e8c67f1d2310.webp?v=1713858466","width":2000},{"alt":null,"id":23789350060131,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab593e27f4874d592b74971a6834af0ee6f69e42_cf2270aa-d174-487e-ac71-406f18e1fdc8.webp?v=1713858468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab593e27f4874d592b74971a6834af0ee6f69e42_cf2270aa-d174-487e-ac71-406f18e1fdc8.webp?v=1713858468","width":2000},{"alt":null,"id":23789350551651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b854d647cf66a913d85211d1e72ad79732527542_1657de23-ecd7-44ae-8da8-b7865da7ab2e.webp?v=1713858470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b854d647cf66a913d85211d1e72ad79732527542_1657de23-ecd7-44ae-8da8-b7865da7ab2e.webp?v=1713858470","width":2000},{"alt":null,"id":23789350912099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ace51c019fceaa87fad8453f16f5a2fc80e7a39_e00a2e81-5ecb-4ad8-9f6f-c47a571bf4f2.webp?v=1713858473"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ace51c019fceaa87fad8453f16f5a2fc80e7a39_e00a2e81-5ecb-4ad8-9f6f-c47a571bf4f2.webp?v=1713858473","width":2000},{"alt":null,"id":23789351370851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d91a4dbe9800c2c8a65bed813e786b330111b7e7_93e7a40f-7c15-4191-b42d-52f6da75c3e2.webp?v=1713858475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d91a4dbe9800c2c8a65bed813e786b330111b7e7_93e7a40f-7c15-4191-b42d-52f6da75c3e2.webp?v=1713858475","width":2000},{"alt":null,"id":23789351764067,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c675ea804f6ee9dde71fcd7d9f56515376e6aed6_c1e3b702-5af6-456e-bdcb-b0bb440797a6.webp?v=1713858478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c675ea804f6ee9dde71fcd7d9f56515376e6aed6_c1e3b702-5af6-456e-bdcb-b0bb440797a6.webp?v=1713858478","width":2000},{"alt":null,"id":23789352026211,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0260ed2f34ed4764b26be9dd86a938efef6ce83_d47318c6-2906-4320-a980-a23d11acefbd.webp?v=1713858480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0260ed2f34ed4764b26be9dd86a938efef6ce83_d47318c6-2906-4320-a980-a23d11acefbd.webp?v=1713858480","width":2000},{"alt":null,"id":23789352190051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51ac778d8b7b34097efe7ab94433d60a6786fec4_8f2faf33-aa84-4dfe-a16a-1f67d6867def.webp?v=1713858483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51ac778d8b7b34097efe7ab94433d60a6786fec4_8f2faf33-aa84-4dfe-a16a-1f67d6867def.webp?v=1713858483","width":2000},{"alt":null,"id":23789352583267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/664299e6d314cf673e0040ed552b8c63ad431cfd_8f2adca1-0709-4bcc-93c2-215befa6e426.webp?v=1713858485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/664299e6d314cf673e0040ed552b8c63ad431cfd_8f2adca1-0709-4bcc-93c2-215befa6e426.webp?v=1713858485","width":2000},{"alt":null,"id":23789352779875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc54ead4d81fa9384dd4d38237461dd8e5a6a9fd_2f040a17-babc-4987-a828-5d5111ce8ea7.webp?v=1713858488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc54ead4d81fa9384dd4d38237461dd8e5a6a9fd_2f040a17-babc-4987-a828-5d5111ce8ea7.webp?v=1713858488","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41793766686819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31387111358563,"product_id":7369224028259,"position":2,"created_at":"2024-04-23T15:47:48+08:00","updated_at":"2024-04-23T15:47:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab593e27f4874d592b74971a6834af0ee6f69e42_cf2270aa-d174-487e-ac71-406f18e1fdc8.webp?v=1713858468","variant_ids":[41793766686819]},"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-PL65","featured_media":{"alt":null,"id":23789350060131,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab593e27f4874d592b74971a6834af0ee6f69e42_cf2270aa-d174-487e-ac71-406f18e1fdc8.webp?v=1713858468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41793766686819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PL65","requires_shipping":true,"taxable":true,"featured_image":{"id":31387111358563,"product_id":7369224028259,"position":2,"created_at":"2024-04-23T15:47:48+08:00","updated_at":"2024-04-23T15:47:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab593e27f4874d592b74971a6834af0ee6f69e42_cf2270aa-d174-487e-ac71-406f18e1fdc8.webp?v=1713858468","variant_ids":[41793766686819]},"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-PL65","featured_media":{"alt":null,"id":23789350060131,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab593e27f4874d592b74971a6834af0ee6f69e42_cf2270aa-d174-487e-ac71-406f18e1fdc8.webp?v=1713858468"}},"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: "停產" }