$product = {"id":7416328683619,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 史迪奇 - 搞怪系列-怪可愛","handle":"iphone-8-mod-nx-printable-yf02","description":null,"published_at":"2024-06-11T16:56:01+08:00","created_at":"2024-05-06T14:35:25+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 8","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":41918550212707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491854991459,"product_id":7416328683619,"position":3,"created_at":"2024-05-06T14:35:33+08:00","updated_at":"2024-05-06T14:35:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288fddbd232fa9e07c13b70a8fde8e58a7fbaa27_7936773e-3121-4a7d-b294-00ab9fe928f8.webp?v=1714977333","variant_ids":[41918550212707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 史迪奇 - 搞怪系列-怪可愛 - 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":"NPB0105424-YF02","featured_media":{"alt":null,"id":23897267830883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288fddbd232fa9e07c13b70a8fde8e58a7fbaa27_7936773e-3121-4a7d-b294-00ab9fe928f8.webp?v=1714977333"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca7c320abf7717836bc5c54644ae0ad1e651466f_68441250-b981-4d90-a104-afc72e18a076.webp?v=1714977328","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda49dbbac8d29dcd340ed99f0584236069ae933_8ce03eb9-0b8c-424d-8cf8-b248ff2d13eb.webp?v=1714977330","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288fddbd232fa9e07c13b70a8fde8e58a7fbaa27_7936773e-3121-4a7d-b294-00ab9fe928f8.webp?v=1714977333","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd4b22569f2a7c67756ea8edbb6d70a0d054b19_7dc19d34-e822-4b76-be3d-887a262362ff.webp?v=1714977336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbe1270cd29a9e8761e685d2f87a74f21d55ba42_3734baa2-a2c2-410c-9b87-25383584087f.webp?v=1714977338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/114672728b5a8a14407060cb121e7ef8a375036f_0e16b6d9-b01e-4dfd-9ca3-d8cfb38fe5bd.webp?v=1714977341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdc390a4af8edba814b1ad959ad6b18fae1b5efe_fc67c881-66fc-497f-9761-7e21f06028ac.webp?v=1714977343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6f9abf58bf4ba42baede6dd0dd5fd3dce75d99_31792863-bec6-4535-ad4e-59188f555014.webp?v=1714977346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221c83ddb38b0eabf72355e215b6e15abd768b57_9d5bc73c-1d54-49f5-a8f4-6248ea325147.webp?v=1714977348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/761ff5e5ae0d223312c25b01ed35f0ae86bc86a8_055b2338-e0f6-4dd1-a91f-5102d9f63b7d.webp?v=1714977350"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca7c320abf7717836bc5c54644ae0ad1e651466f_68441250-b981-4d90-a104-afc72e18a076.webp?v=1714977328","options":["color"],"media":[{"alt":null,"id":23897267077219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca7c320abf7717836bc5c54644ae0ad1e651466f_68441250-b981-4d90-a104-afc72e18a076.webp?v=1714977328"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca7c320abf7717836bc5c54644ae0ad1e651466f_68441250-b981-4d90-a104-afc72e18a076.webp?v=1714977328","width":2000},{"alt":null,"id":23897267503203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda49dbbac8d29dcd340ed99f0584236069ae933_8ce03eb9-0b8c-424d-8cf8-b248ff2d13eb.webp?v=1714977330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda49dbbac8d29dcd340ed99f0584236069ae933_8ce03eb9-0b8c-424d-8cf8-b248ff2d13eb.webp?v=1714977330","width":2000},{"alt":null,"id":23897267830883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288fddbd232fa9e07c13b70a8fde8e58a7fbaa27_7936773e-3121-4a7d-b294-00ab9fe928f8.webp?v=1714977333"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288fddbd232fa9e07c13b70a8fde8e58a7fbaa27_7936773e-3121-4a7d-b294-00ab9fe928f8.webp?v=1714977333","width":2000},{"alt":null,"id":23897268355171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd4b22569f2a7c67756ea8edbb6d70a0d054b19_7dc19d34-e822-4b76-be3d-887a262362ff.webp?v=1714977336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fd4b22569f2a7c67756ea8edbb6d70a0d054b19_7dc19d34-e822-4b76-be3d-887a262362ff.webp?v=1714977336","width":2000},{"alt":null,"id":23897268813923,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbe1270cd29a9e8761e685d2f87a74f21d55ba42_3734baa2-a2c2-410c-9b87-25383584087f.webp?v=1714977338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbe1270cd29a9e8761e685d2f87a74f21d55ba42_3734baa2-a2c2-410c-9b87-25383584087f.webp?v=1714977338","width":2000},{"alt":null,"id":23897269305443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/114672728b5a8a14407060cb121e7ef8a375036f_0e16b6d9-b01e-4dfd-9ca3-d8cfb38fe5bd.webp?v=1714977341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/114672728b5a8a14407060cb121e7ef8a375036f_0e16b6d9-b01e-4dfd-9ca3-d8cfb38fe5bd.webp?v=1714977341","width":2000},{"alt":null,"id":23897269633123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdc390a4af8edba814b1ad959ad6b18fae1b5efe_fc67c881-66fc-497f-9761-7e21f06028ac.webp?v=1714977343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdc390a4af8edba814b1ad959ad6b18fae1b5efe_fc67c881-66fc-497f-9761-7e21f06028ac.webp?v=1714977343","width":2000},{"alt":null,"id":23897270190179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6f9abf58bf4ba42baede6dd0dd5fd3dce75d99_31792863-bec6-4535-ad4e-59188f555014.webp?v=1714977346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6f9abf58bf4ba42baede6dd0dd5fd3dce75d99_31792863-bec6-4535-ad4e-59188f555014.webp?v=1714977346","width":2000},{"alt":null,"id":23897270517859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221c83ddb38b0eabf72355e215b6e15abd768b57_9d5bc73c-1d54-49f5-a8f4-6248ea325147.webp?v=1714977348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221c83ddb38b0eabf72355e215b6e15abd768b57_9d5bc73c-1d54-49f5-a8f4-6248ea325147.webp?v=1714977348","width":2000},{"alt":null,"id":23897270878307,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/761ff5e5ae0d223312c25b01ed35f0ae86bc86a8_055b2338-e0f6-4dd1-a91f-5102d9f63b7d.webp?v=1714977350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/761ff5e5ae0d223312c25b01ed35f0ae86bc86a8_055b2338-e0f6-4dd1-a91f-5102d9f63b7d.webp?v=1714977350","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918550212707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491854991459,"product_id":7416328683619,"position":3,"created_at":"2024-05-06T14:35:33+08:00","updated_at":"2024-05-06T14:35:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288fddbd232fa9e07c13b70a8fde8e58a7fbaa27_7936773e-3121-4a7d-b294-00ab9fe928f8.webp?v=1714977333","variant_ids":[41918550212707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 史迪奇 - 搞怪系列-怪可愛 - 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":"NPB0105424-YF02","featured_media":{"alt":null,"id":23897267830883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288fddbd232fa9e07c13b70a8fde8e58a7fbaa27_7936773e-3121-4a7d-b294-00ab9fe928f8.webp?v=1714977333"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918550212707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491854991459,"product_id":7416328683619,"position":3,"created_at":"2024-05-06T14:35:33+08:00","updated_at":"2024-05-06T14:35:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288fddbd232fa9e07c13b70a8fde8e58a7fbaa27_7936773e-3121-4a7d-b294-00ab9fe928f8.webp?v=1714977333","variant_ids":[41918550212707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 史迪奇 - 搞怪系列-怪可愛 - 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":"NPB0105424-YF02","featured_media":{"alt":null,"id":23897267830883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/288fddbd232fa9e07c13b70a8fde8e58a7fbaa27_7936773e-3121-4a7d-b294-00ab9fe928f8.webp?v=1714977333"}},"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: "停產" }