$product = {"id":7415879172195,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 史迪奇 - 貼紙系列-夏威夷紀念","handle":"iphone-xs-max-mod-nx-printable-yf05","description":null,"published_at":"2024-06-11T16:46:52+08:00","created_at":"2024-05-06T12:16:54+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 XS Max","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":41915130904675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31490639888483,"product_id":7415879172195,"position":6,"created_at":"2024-05-06T12:17:10+08:00","updated_at":"2024-05-06T12:17:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69efd518844a14b7aa8829ee6ff809a9a8887d0e_b89eb550-c4ba-4acf-9e0a-c88d59ebae21.webp?v=1714969030","variant_ids":[41915130904675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 史迪奇 - 貼紙系列-夏威夷紀念 - 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":"NPB0108624-YF05","featured_media":{"alt":null,"id":23896046370915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69efd518844a14b7aa8829ee6ff809a9a8887d0e_b89eb550-c4ba-4acf-9e0a-c88d59ebae21.webp?v=1714969030"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd593691c189e2ab4dde6427602621644b6b0d73_eebcb838-4733-4fc5-91c3-5cfa3f513e09.webp?v=1714969016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54cf74b6570720f18960b1ba00af1d84874d6fbb_fde8aa30-b3e2-4d1b-a786-ad97b5f4a600.webp?v=1714969019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ef5f2ac3353a8232ef04667cfe23cf95caaa4d_69e16d5a-3bbf-4945-837d-403cc85add77.webp?v=1714969022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c84d2a1eabe6cf46c34c2be013352ed7c2af535_bcd07b8e-b2ef-45ae-bee2-26a29e8d7ab2.webp?v=1714969025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27130221432cbc24379a156fe87481fb8124c490_60854f20-4a28-46c4-9b51-f7eb9f74ef42.webp?v=1714969027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69efd518844a14b7aa8829ee6ff809a9a8887d0e_b89eb550-c4ba-4acf-9e0a-c88d59ebae21.webp?v=1714969030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa33186f744c28e697101e60fb036de9d8f8d25_75558e54-4d13-423f-b56e-61f0b3e75d5f.webp?v=1714969033","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bbafe335c2c6072193e1c24377a231067489c85_ffff0fc8-98ec-40d8-8b54-47080d6f8e22.webp?v=1714969036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b77cd42c3c1c9fb52a0b6ae4f7b7914baaa2d9e_7d8f2e17-db6f-4765-8468-768181bea340.webp?v=1714969038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8722fc383bd210ace0122e286d66993cc4ce77c_f7d3694e-d700-46c8-b8ed-72cfc9f4a064.webp?v=1714969041"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd593691c189e2ab4dde6427602621644b6b0d73_eebcb838-4733-4fc5-91c3-5cfa3f513e09.webp?v=1714969016","options":["color"],"media":[{"alt":null,"id":23896044208227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd593691c189e2ab4dde6427602621644b6b0d73_eebcb838-4733-4fc5-91c3-5cfa3f513e09.webp?v=1714969016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd593691c189e2ab4dde6427602621644b6b0d73_eebcb838-4733-4fc5-91c3-5cfa3f513e09.webp?v=1714969016","width":2000},{"alt":null,"id":23896044666979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54cf74b6570720f18960b1ba00af1d84874d6fbb_fde8aa30-b3e2-4d1b-a786-ad97b5f4a600.webp?v=1714969019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54cf74b6570720f18960b1ba00af1d84874d6fbb_fde8aa30-b3e2-4d1b-a786-ad97b5f4a600.webp?v=1714969019","width":2000},{"alt":null,"id":23896045125731,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ef5f2ac3353a8232ef04667cfe23cf95caaa4d_69e16d5a-3bbf-4945-837d-403cc85add77.webp?v=1714969022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ef5f2ac3353a8232ef04667cfe23cf95caaa4d_69e16d5a-3bbf-4945-837d-403cc85add77.webp?v=1714969022","width":2000},{"alt":null,"id":23896045486179,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c84d2a1eabe6cf46c34c2be013352ed7c2af535_bcd07b8e-b2ef-45ae-bee2-26a29e8d7ab2.webp?v=1714969025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c84d2a1eabe6cf46c34c2be013352ed7c2af535_bcd07b8e-b2ef-45ae-bee2-26a29e8d7ab2.webp?v=1714969025","width":2000},{"alt":null,"id":23896045977699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27130221432cbc24379a156fe87481fb8124c490_60854f20-4a28-46c4-9b51-f7eb9f74ef42.webp?v=1714969027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27130221432cbc24379a156fe87481fb8124c490_60854f20-4a28-46c4-9b51-f7eb9f74ef42.webp?v=1714969027","width":2000},{"alt":null,"id":23896046370915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69efd518844a14b7aa8829ee6ff809a9a8887d0e_b89eb550-c4ba-4acf-9e0a-c88d59ebae21.webp?v=1714969030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69efd518844a14b7aa8829ee6ff809a9a8887d0e_b89eb550-c4ba-4acf-9e0a-c88d59ebae21.webp?v=1714969030","width":2000},{"alt":null,"id":23896046796899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa33186f744c28e697101e60fb036de9d8f8d25_75558e54-4d13-423f-b56e-61f0b3e75d5f.webp?v=1714969033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa33186f744c28e697101e60fb036de9d8f8d25_75558e54-4d13-423f-b56e-61f0b3e75d5f.webp?v=1714969033","width":2000},{"alt":null,"id":23896047321187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bbafe335c2c6072193e1c24377a231067489c85_ffff0fc8-98ec-40d8-8b54-47080d6f8e22.webp?v=1714969036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bbafe335c2c6072193e1c24377a231067489c85_ffff0fc8-98ec-40d8-8b54-47080d6f8e22.webp?v=1714969036","width":2000},{"alt":null,"id":23896047779939,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b77cd42c3c1c9fb52a0b6ae4f7b7914baaa2d9e_7d8f2e17-db6f-4765-8468-768181bea340.webp?v=1714969038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b77cd42c3c1c9fb52a0b6ae4f7b7914baaa2d9e_7d8f2e17-db6f-4765-8468-768181bea340.webp?v=1714969038","width":2000},{"alt":null,"id":23896048336995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8722fc383bd210ace0122e286d66993cc4ce77c_f7d3694e-d700-46c8-b8ed-72cfc9f4a064.webp?v=1714969041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8722fc383bd210ace0122e286d66993cc4ce77c_f7d3694e-d700-46c8-b8ed-72cfc9f4a064.webp?v=1714969041","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915130904675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31490639888483,"product_id":7415879172195,"position":6,"created_at":"2024-05-06T12:17:10+08:00","updated_at":"2024-05-06T12:17:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69efd518844a14b7aa8829ee6ff809a9a8887d0e_b89eb550-c4ba-4acf-9e0a-c88d59ebae21.webp?v=1714969030","variant_ids":[41915130904675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 史迪奇 - 貼紙系列-夏威夷紀念 - 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":"NPB0108624-YF05","featured_media":{"alt":null,"id":23896046370915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69efd518844a14b7aa8829ee6ff809a9a8887d0e_b89eb550-c4ba-4acf-9e0a-c88d59ebae21.webp?v=1714969030"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915130904675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31490639888483,"product_id":7415879172195,"position":6,"created_at":"2024-05-06T12:17:10+08:00","updated_at":"2024-05-06T12:17:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69efd518844a14b7aa8829ee6ff809a9a8887d0e_b89eb550-c4ba-4acf-9e0a-c88d59ebae21.webp?v=1714969030","variant_ids":[41915130904675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 史迪奇 - 貼紙系列-夏威夷紀念 - 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":"NPB0108624-YF05","featured_media":{"alt":null,"id":23896046370915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69efd518844a14b7aa8829ee6ff809a9a8887d0e_b89eb550-c4ba-4acf-9e0a-c88d59ebae21.webp?v=1714969030"}},"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: "停產" }