$product = {"id":7416348180579,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 史迪奇 - 貼紙系列-夏威夷紀念","handle":"iphone-8-mod-nx-printable-yf05","description":null,"published_at":"2024-06-11T16:56:35+08:00","created_at":"2024-05-06T14:39:26+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":41918759239779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491906797667,"product_id":7416348180579,"position":3,"created_at":"2024-05-06T14:39:34+08:00","updated_at":"2024-05-06T14:39:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f6fb3ae72509fbb8a505061f3512c21d48d074_28a4175c-3bc5-42a2-991a-a038a2b17a4d.webp?v=1714977574","variant_ids":[41918759239779]},"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-YF05","featured_media":{"alt":null,"id":23897319702627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f6fb3ae72509fbb8a505061f3512c21d48d074_28a4175c-3bc5-42a2-991a-a038a2b17a4d.webp?v=1714977574"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af67339b039d1c4e1702dff2d8fc16714859b2c_00b5e1a3-2b92-4857-9793-b0724738142b.webp?v=1714977569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539ebd7f37e4ba4f9c83ea1a402749ec289ea95b_b2c41a0a-44d8-40e5-9a65-99b706099d29.webp?v=1714977572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f6fb3ae72509fbb8a505061f3512c21d48d074_28a4175c-3bc5-42a2-991a-a038a2b17a4d.webp?v=1714977574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4275c120260aba511670b2a7d17ef53fdbec5b40_08ec3da2-0dbe-43cd-9e75-f38b47dce006.webp?v=1714977577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786b73baa334b7e1c3e6520634492a15fde18d23_fa383a9f-53f2-4e52-8a89-276a58837750.webp?v=1714977582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34dd6d16a098f6d7d1a391421fb79a1a1d7c6884_b1ec7122-fcaf-4a92-b03f-e90898ec5c12.webp?v=1714977584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a11f8a98d5f7b4f96dac139a6f496ffa44ba1df_42341d63-7aab-46cc-bd81-5f8ab3ca6f8f.webp?v=1714977587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/667feff928c8a20b978f5becb8dd882c44e9bfd2_ae242cfa-53ae-495c-b199-18693778f6b9.webp?v=1714977589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7554b11eee6f69ad7e054878afaa8bbf176f0b1_117dafb3-53aa-4865-af46-4f5537bd8921.webp?v=1714977592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a5a9980217582a2f6aab386c8f78d230be1fe4_8cb2eaa8-2aa1-4df8-8b27-58dc28f4e3a4.webp?v=1714977594"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af67339b039d1c4e1702dff2d8fc16714859b2c_00b5e1a3-2b92-4857-9793-b0724738142b.webp?v=1714977569","options":["color"],"media":[{"alt":null,"id":23897318621283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af67339b039d1c4e1702dff2d8fc16714859b2c_00b5e1a3-2b92-4857-9793-b0724738142b.webp?v=1714977569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af67339b039d1c4e1702dff2d8fc16714859b2c_00b5e1a3-2b92-4857-9793-b0724738142b.webp?v=1714977569","width":2000},{"alt":null,"id":23897319276643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539ebd7f37e4ba4f9c83ea1a402749ec289ea95b_b2c41a0a-44d8-40e5-9a65-99b706099d29.webp?v=1714977572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539ebd7f37e4ba4f9c83ea1a402749ec289ea95b_b2c41a0a-44d8-40e5-9a65-99b706099d29.webp?v=1714977572","width":2000},{"alt":null,"id":23897319702627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f6fb3ae72509fbb8a505061f3512c21d48d074_28a4175c-3bc5-42a2-991a-a038a2b17a4d.webp?v=1714977574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f6fb3ae72509fbb8a505061f3512c21d48d074_28a4175c-3bc5-42a2-991a-a038a2b17a4d.webp?v=1714977574","width":2000},{"alt":null,"id":23897320292451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4275c120260aba511670b2a7d17ef53fdbec5b40_08ec3da2-0dbe-43cd-9e75-f38b47dce006.webp?v=1714977577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4275c120260aba511670b2a7d17ef53fdbec5b40_08ec3da2-0dbe-43cd-9e75-f38b47dce006.webp?v=1714977577","width":2000},{"alt":null,"id":23897321603171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786b73baa334b7e1c3e6520634492a15fde18d23_fa383a9f-53f2-4e52-8a89-276a58837750.webp?v=1714977582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786b73baa334b7e1c3e6520634492a15fde18d23_fa383a9f-53f2-4e52-8a89-276a58837750.webp?v=1714977582","width":2000},{"alt":null,"id":23897321898083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34dd6d16a098f6d7d1a391421fb79a1a1d7c6884_b1ec7122-fcaf-4a92-b03f-e90898ec5c12.webp?v=1714977584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34dd6d16a098f6d7d1a391421fb79a1a1d7c6884_b1ec7122-fcaf-4a92-b03f-e90898ec5c12.webp?v=1714977584","width":2000},{"alt":null,"id":23897322553443,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a11f8a98d5f7b4f96dac139a6f496ffa44ba1df_42341d63-7aab-46cc-bd81-5f8ab3ca6f8f.webp?v=1714977587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a11f8a98d5f7b4f96dac139a6f496ffa44ba1df_42341d63-7aab-46cc-bd81-5f8ab3ca6f8f.webp?v=1714977587","width":2000},{"alt":null,"id":23897323012195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/667feff928c8a20b978f5becb8dd882c44e9bfd2_ae242cfa-53ae-495c-b199-18693778f6b9.webp?v=1714977589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/667feff928c8a20b978f5becb8dd882c44e9bfd2_ae242cfa-53ae-495c-b199-18693778f6b9.webp?v=1714977589","width":2000},{"alt":null,"id":23897323602019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7554b11eee6f69ad7e054878afaa8bbf176f0b1_117dafb3-53aa-4865-af46-4f5537bd8921.webp?v=1714977592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7554b11eee6f69ad7e054878afaa8bbf176f0b1_117dafb3-53aa-4865-af46-4f5537bd8921.webp?v=1714977592","width":2000},{"alt":null,"id":23897324093539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a5a9980217582a2f6aab386c8f78d230be1fe4_8cb2eaa8-2aa1-4df8-8b27-58dc28f4e3a4.webp?v=1714977594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1a5a9980217582a2f6aab386c8f78d230be1fe4_8cb2eaa8-2aa1-4df8-8b27-58dc28f4e3a4.webp?v=1714977594","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918759239779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491906797667,"product_id":7416348180579,"position":3,"created_at":"2024-05-06T14:39:34+08:00","updated_at":"2024-05-06T14:39:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f6fb3ae72509fbb8a505061f3512c21d48d074_28a4175c-3bc5-42a2-991a-a038a2b17a4d.webp?v=1714977574","variant_ids":[41918759239779]},"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-YF05","featured_media":{"alt":null,"id":23897319702627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f6fb3ae72509fbb8a505061f3512c21d48d074_28a4175c-3bc5-42a2-991a-a038a2b17a4d.webp?v=1714977574"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918759239779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491906797667,"product_id":7416348180579,"position":3,"created_at":"2024-05-06T14:39:34+08:00","updated_at":"2024-05-06T14:39:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f6fb3ae72509fbb8a505061f3512c21d48d074_28a4175c-3bc5-42a2-991a-a038a2b17a4d.webp?v=1714977574","variant_ids":[41918759239779]},"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-YF05","featured_media":{"alt":null,"id":23897319702627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26f6fb3ae72509fbb8a505061f3512c21d48d074_28a4175c-3bc5-42a2-991a-a038a2b17a4d.webp?v=1714977574"}},"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: "停產" }