$product = {"id":7407990734947,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-Aloha!","handle":"iphone-14-plus-mod-nx-printable-yf08","description":null,"published_at":"2024-06-11T16:28:30+08:00","created_at":"2024-05-03T11:30:19+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41881457459299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470893695075,"product_id":7407990734947,"position":3,"created_at":"2024-05-03T11:30:26+08:00","updated_at":"2024-05-03T11:30:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dedfb26614b35b0206be59013c8ac7b464e87054_2446493a-b562-4f93-bf39-1cecc3b46781.webp?v=1714707026","variant_ids":[41881457459299]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-Aloha! - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-YF08","featured_media":{"alt":null,"id":23875798335587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dedfb26614b35b0206be59013c8ac7b464e87054_2446493a-b562-4f93-bf39-1cecc3b46781.webp?v=1714707026"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bfb4e7af1b7a4a0bd054d472651605b0fdf2407_19aa86d6-5088-4971-a9dd-71c73e0d43b7.webp?v=1714707022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a877deff04f0e28cdd2881f1d2191dbbda0d1186_389c8a47-af58-4bf6-97dd-339130809bf5.webp?v=1714707024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dedfb26614b35b0206be59013c8ac7b464e87054_2446493a-b562-4f93-bf39-1cecc3b46781.webp?v=1714707026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ad03455586750c367b657314f1a373f8a8de119_34feb14a-0e94-42b3-876c-5889d7d6d2ba.webp?v=1714707029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccd3879ef46dcf7be255a80d0c7477e3cff8fbc2_843f6420-91e8-4748-a396-ccd788ad2262.webp?v=1714707031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5bd1d0031f250166035c869861b011d318217e_45bab819-f617-472c-92ef-8cc1abc1a5da.webp?v=1714707033","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6377e8e4222fcb3a785538229acf56eba3d7a688_5173ab8c-7e37-45ab-8b80-7dc38639460c.webp?v=1714707036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbf6185932494d1bb4b402da5871504197a36908_fd514131-01a5-4605-84bd-f803715e3295.webp?v=1714707038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16de8ffe0990ce26f078bab0f737835ff2ddf6ec_7c3e2167-8f7d-4ec3-93aa-733976b2c368.webp?v=1714707041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bbafea2575e354b9111152279a9aea54cbfc5ab_f8a5c04e-3286-459f-a12a-6b5bcd4f5391.webp?v=1714707043"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bfb4e7af1b7a4a0bd054d472651605b0fdf2407_19aa86d6-5088-4971-a9dd-71c73e0d43b7.webp?v=1714707022","options":["color"],"media":[{"alt":null,"id":23875797483619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bfb4e7af1b7a4a0bd054d472651605b0fdf2407_19aa86d6-5088-4971-a9dd-71c73e0d43b7.webp?v=1714707022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bfb4e7af1b7a4a0bd054d472651605b0fdf2407_19aa86d6-5088-4971-a9dd-71c73e0d43b7.webp?v=1714707022","width":2000},{"alt":null,"id":23875798106211,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a877deff04f0e28cdd2881f1d2191dbbda0d1186_389c8a47-af58-4bf6-97dd-339130809bf5.webp?v=1714707024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a877deff04f0e28cdd2881f1d2191dbbda0d1186_389c8a47-af58-4bf6-97dd-339130809bf5.webp?v=1714707024","width":2000},{"alt":null,"id":23875798335587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dedfb26614b35b0206be59013c8ac7b464e87054_2446493a-b562-4f93-bf39-1cecc3b46781.webp?v=1714707026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dedfb26614b35b0206be59013c8ac7b464e87054_2446493a-b562-4f93-bf39-1cecc3b46781.webp?v=1714707026","width":2000},{"alt":null,"id":23875798990947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ad03455586750c367b657314f1a373f8a8de119_34feb14a-0e94-42b3-876c-5889d7d6d2ba.webp?v=1714707029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ad03455586750c367b657314f1a373f8a8de119_34feb14a-0e94-42b3-876c-5889d7d6d2ba.webp?v=1714707029","width":2000},{"alt":null,"id":23875799351395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccd3879ef46dcf7be255a80d0c7477e3cff8fbc2_843f6420-91e8-4748-a396-ccd788ad2262.webp?v=1714707031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccd3879ef46dcf7be255a80d0c7477e3cff8fbc2_843f6420-91e8-4748-a396-ccd788ad2262.webp?v=1714707031","width":2000},{"alt":null,"id":23875799973987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5bd1d0031f250166035c869861b011d318217e_45bab819-f617-472c-92ef-8cc1abc1a5da.webp?v=1714707033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb5bd1d0031f250166035c869861b011d318217e_45bab819-f617-472c-92ef-8cc1abc1a5da.webp?v=1714707033","width":2000},{"alt":null,"id":23875800498275,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6377e8e4222fcb3a785538229acf56eba3d7a688_5173ab8c-7e37-45ab-8b80-7dc38639460c.webp?v=1714707036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6377e8e4222fcb3a785538229acf56eba3d7a688_5173ab8c-7e37-45ab-8b80-7dc38639460c.webp?v=1714707036","width":2000},{"alt":null,"id":23875801055331,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbf6185932494d1bb4b402da5871504197a36908_fd514131-01a5-4605-84bd-f803715e3295.webp?v=1714707038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbf6185932494d1bb4b402da5871504197a36908_fd514131-01a5-4605-84bd-f803715e3295.webp?v=1714707038","width":2000},{"alt":null,"id":23875801448547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16de8ffe0990ce26f078bab0f737835ff2ddf6ec_7c3e2167-8f7d-4ec3-93aa-733976b2c368.webp?v=1714707041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16de8ffe0990ce26f078bab0f737835ff2ddf6ec_7c3e2167-8f7d-4ec3-93aa-733976b2c368.webp?v=1714707041","width":2000},{"alt":null,"id":23875801841763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bbafea2575e354b9111152279a9aea54cbfc5ab_f8a5c04e-3286-459f-a12a-6b5bcd4f5391.webp?v=1714707043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bbafea2575e354b9111152279a9aea54cbfc5ab_f8a5c04e-3286-459f-a12a-6b5bcd4f5391.webp?v=1714707043","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881457459299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470893695075,"product_id":7407990734947,"position":3,"created_at":"2024-05-03T11:30:26+08:00","updated_at":"2024-05-03T11:30:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dedfb26614b35b0206be59013c8ac7b464e87054_2446493a-b562-4f93-bf39-1cecc3b46781.webp?v=1714707026","variant_ids":[41881457459299]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-Aloha! - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-YF08","featured_media":{"alt":null,"id":23875798335587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dedfb26614b35b0206be59013c8ac7b464e87054_2446493a-b562-4f93-bf39-1cecc3b46781.webp?v=1714707026"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881457459299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470893695075,"product_id":7407990734947,"position":3,"created_at":"2024-05-03T11:30:26+08:00","updated_at":"2024-05-03T11:30:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dedfb26614b35b0206be59013c8ac7b464e87054_2446493a-b562-4f93-bf39-1cecc3b46781.webp?v=1714707026","variant_ids":[41881457459299]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-Aloha! - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-YF08","featured_media":{"alt":null,"id":23875798335587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dedfb26614b35b0206be59013c8ac7b464e87054_2446493a-b562-4f93-bf39-1cecc3b46781.webp?v=1714707026"}},"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: "停產" }