$product = {"id":7416378064995,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 史迪奇 - 經典系列-不游泳但衝浪","handle":"iphone-8-mod-nx-printable-yf09","description":null,"published_at":"2024-06-11T16:57:26+08:00","created_at":"2024-05-06T14:45:20+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":41919084855395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31491983212643,"product_id":7416378064995,"position":10,"created_at":"2024-05-06T14:45:45+08:00","updated_at":"2024-05-06T14:45:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c114810ff4218f42f613209e93f5545c64d2508_b626de39-2e54-4b1c-ab86-6b0e85e0b1a3.webp?v=1714977945","variant_ids":[41919084855395]},"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-YF09","featured_media":{"alt":null,"id":23897396674659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c114810ff4218f42f613209e93f5545c64d2508_b626de39-2e54-4b1c-ab86-6b0e85e0b1a3.webp?v=1714977945"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209b7e664e84df2369063cb3d43ffd04e4088f24_6e88a400-3c44-47b2-87bf-22e6fafb1342.webp?v=1714977923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb8c7573ccc83206c6ed7413eb14c9b3ae5cc997_fa5a0b13-dd85-4c1d-94e4-3b3f505fd896.webp?v=1714977925","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b3472b607c68c247cf9de3d44f235d365c25575_71f22b39-df82-4755-93a9-f9e7ca1f4d57.webp?v=1714977928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11dceba56af6b262d90f079e018a977a32e14fc6_3ce1ccea-59a8-432c-a454-b9393134d2c5.webp?v=1714977930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5ec082121763cce3e2b38a32554b7b57274446a_eb155ab6-6f41-4192-a60e-26f971b6e2c3.webp?v=1714977934","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b281170c19d1f83af0500c820fed00e3166c93c_ff5886b1-e8cd-4490-b9ea-1dd2b3fec3c9.webp?v=1714977936","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22422c351d845d75f31faca2a5d1a375bce26781_18fcaffd-ad16-4018-bedf-5160a36cb639.webp?v=1714977938","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10c4cdd4f74ebe67c7a3139f91e0778ba158f191_b8c8dada-da1a-4bf4-a79b-f0624af07d36.webp?v=1714977941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6eb75682c70dcad10b04fc64816a1153edd818_6223ac56-e44b-48dc-8696-ea108104a5bd.webp?v=1714977943","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c114810ff4218f42f613209e93f5545c64d2508_b626de39-2e54-4b1c-ab86-6b0e85e0b1a3.webp?v=1714977945"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209b7e664e84df2369063cb3d43ffd04e4088f24_6e88a400-3c44-47b2-87bf-22e6fafb1342.webp?v=1714977923","options":["color"],"media":[{"alt":null,"id":23897391956067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209b7e664e84df2369063cb3d43ffd04e4088f24_6e88a400-3c44-47b2-87bf-22e6fafb1342.webp?v=1714977923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/209b7e664e84df2369063cb3d43ffd04e4088f24_6e88a400-3c44-47b2-87bf-22e6fafb1342.webp?v=1714977923","width":2000},{"alt":null,"id":23897392414819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb8c7573ccc83206c6ed7413eb14c9b3ae5cc997_fa5a0b13-dd85-4c1d-94e4-3b3f505fd896.webp?v=1714977925"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb8c7573ccc83206c6ed7413eb14c9b3ae5cc997_fa5a0b13-dd85-4c1d-94e4-3b3f505fd896.webp?v=1714977925","width":2000},{"alt":null,"id":23897392971875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b3472b607c68c247cf9de3d44f235d365c25575_71f22b39-df82-4755-93a9-f9e7ca1f4d57.webp?v=1714977928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b3472b607c68c247cf9de3d44f235d365c25575_71f22b39-df82-4755-93a9-f9e7ca1f4d57.webp?v=1714977928","width":2000},{"alt":null,"id":23897393528931,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11dceba56af6b262d90f079e018a977a32e14fc6_3ce1ccea-59a8-432c-a454-b9393134d2c5.webp?v=1714977930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11dceba56af6b262d90f079e018a977a32e14fc6_3ce1ccea-59a8-432c-a454-b9393134d2c5.webp?v=1714977930","width":2000},{"alt":null,"id":23897394282595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5ec082121763cce3e2b38a32554b7b57274446a_eb155ab6-6f41-4192-a60e-26f971b6e2c3.webp?v=1714977934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5ec082121763cce3e2b38a32554b7b57274446a_eb155ab6-6f41-4192-a60e-26f971b6e2c3.webp?v=1714977934","width":2000},{"alt":null,"id":23897394708579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b281170c19d1f83af0500c820fed00e3166c93c_ff5886b1-e8cd-4490-b9ea-1dd2b3fec3c9.webp?v=1714977936"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b281170c19d1f83af0500c820fed00e3166c93c_ff5886b1-e8cd-4490-b9ea-1dd2b3fec3c9.webp?v=1714977936","width":2000},{"alt":null,"id":23897395167331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22422c351d845d75f31faca2a5d1a375bce26781_18fcaffd-ad16-4018-bedf-5160a36cb639.webp?v=1714977938"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22422c351d845d75f31faca2a5d1a375bce26781_18fcaffd-ad16-4018-bedf-5160a36cb639.webp?v=1714977938","width":2000},{"alt":null,"id":23897395822691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10c4cdd4f74ebe67c7a3139f91e0778ba158f191_b8c8dada-da1a-4bf4-a79b-f0624af07d36.webp?v=1714977941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10c4cdd4f74ebe67c7a3139f91e0778ba158f191_b8c8dada-da1a-4bf4-a79b-f0624af07d36.webp?v=1714977941","width":2000},{"alt":null,"id":23897396281443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6eb75682c70dcad10b04fc64816a1153edd818_6223ac56-e44b-48dc-8696-ea108104a5bd.webp?v=1714977943"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd6eb75682c70dcad10b04fc64816a1153edd818_6223ac56-e44b-48dc-8696-ea108104a5bd.webp?v=1714977943","width":2000},{"alt":null,"id":23897396674659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c114810ff4218f42f613209e93f5545c64d2508_b626de39-2e54-4b1c-ab86-6b0e85e0b1a3.webp?v=1714977945"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c114810ff4218f42f613209e93f5545c64d2508_b626de39-2e54-4b1c-ab86-6b0e85e0b1a3.webp?v=1714977945","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919084855395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31491983212643,"product_id":7416378064995,"position":10,"created_at":"2024-05-06T14:45:45+08:00","updated_at":"2024-05-06T14:45:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c114810ff4218f42f613209e93f5545c64d2508_b626de39-2e54-4b1c-ab86-6b0e85e0b1a3.webp?v=1714977945","variant_ids":[41919084855395]},"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-YF09","featured_media":{"alt":null,"id":23897396674659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c114810ff4218f42f613209e93f5545c64d2508_b626de39-2e54-4b1c-ab86-6b0e85e0b1a3.webp?v=1714977945"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919084855395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31491983212643,"product_id":7416378064995,"position":10,"created_at":"2024-05-06T14:45:45+08:00","updated_at":"2024-05-06T14:45:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c114810ff4218f42f613209e93f5545c64d2508_b626de39-2e54-4b1c-ab86-6b0e85e0b1a3.webp?v=1714977945","variant_ids":[41919084855395]},"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-YF09","featured_media":{"alt":null,"id":23897396674659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c114810ff4218f42f613209e93f5545c64d2508_b626de39-2e54-4b1c-ab86-6b0e85e0b1a3.webp?v=1714977945"}},"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: "停產" }