$product = {"id":7416020303971,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Look - 人在做 加納利群島在看","handle":"iphone-xs-max-mod-nx-printable-af08","description":null,"published_at":"2024-06-11T16:50:36+08:00","created_at":"2024-05-06T12:43:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-look","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":41916581904483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491004498019,"product_id":7416020303971,"position":3,"created_at":"2024-05-06T12:43:40+08:00","updated_at":"2024-05-06T12:43:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0618b8b714a12bfc8e58c59dd7e0e01580619ab_fa521504-d900-4f40-ab50-e264137444e8.webp?v=1714970620","variant_ids":[41916581904483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Look - 人在做 加納利群島在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-AF08","featured_media":{"alt":null,"id":23896411799651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0618b8b714a12bfc8e58c59dd7e0e01580619ab_fa521504-d900-4f40-ab50-e264137444e8.webp?v=1714970620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88856e8a8df9d5b193592cd10838abf79a68df2_90d0c7b3-47e7-495c-b6e4-0fc28c4fb6a8.webp?v=1714970615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85705a5061a1959400414b4a21edd540a1873423_fba3283d-220d-419c-9cae-82900def6b06.webp?v=1714970617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0618b8b714a12bfc8e58c59dd7e0e01580619ab_fa521504-d900-4f40-ab50-e264137444e8.webp?v=1714970620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85fd5c62aa18976a92ea7db85da387bb67729d5d_2c68ebd9-cea9-438a-bbed-dea81cf15251.webp?v=1714970622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0f7e3103f09da8eb604a6e0cbdadd2bc39eb83_d951830b-2405-4c11-b40d-42dc05073801.webp?v=1714970625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da0f7c004b249bb5af9baa58964f9436eab3d7de_88ddff14-0ee1-483a-9919-7c27f78c6733.webp?v=1714970627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abee89e5874f583db0b67029aa9efc505999dbff_74dd1754-391b-4a94-a3c2-ff1d34fca2dd.webp?v=1714970629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/820e72142c7507d110af08638f54214e39dd6ff8_c2abee17-5bf1-42b4-814d-1e2bcd412d6f.webp?v=1714970632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f5e6f79ad52599786dab9dd9b46873e54e66818_d3f0631d-9ca2-4480-b82e-10d796b87d41.webp?v=1714970634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b8aa00223a5b1b4c868d07eb449b50810f3fbe_d0e95bb4-83e9-4c2b-9256-acbf7301f26a.webp?v=1714970636"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88856e8a8df9d5b193592cd10838abf79a68df2_90d0c7b3-47e7-495c-b6e4-0fc28c4fb6a8.webp?v=1714970615","options":["color"],"media":[{"alt":null,"id":23896410816611,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88856e8a8df9d5b193592cd10838abf79a68df2_90d0c7b3-47e7-495c-b6e4-0fc28c4fb6a8.webp?v=1714970615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88856e8a8df9d5b193592cd10838abf79a68df2_90d0c7b3-47e7-495c-b6e4-0fc28c4fb6a8.webp?v=1714970615","width":2000},{"alt":null,"id":23896411308131,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85705a5061a1959400414b4a21edd540a1873423_fba3283d-220d-419c-9cae-82900def6b06.webp?v=1714970617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85705a5061a1959400414b4a21edd540a1873423_fba3283d-220d-419c-9cae-82900def6b06.webp?v=1714970617","width":2000},{"alt":null,"id":23896411799651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0618b8b714a12bfc8e58c59dd7e0e01580619ab_fa521504-d900-4f40-ab50-e264137444e8.webp?v=1714970620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0618b8b714a12bfc8e58c59dd7e0e01580619ab_fa521504-d900-4f40-ab50-e264137444e8.webp?v=1714970620","width":2000},{"alt":null,"id":23896412225635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85fd5c62aa18976a92ea7db85da387bb67729d5d_2c68ebd9-cea9-438a-bbed-dea81cf15251.webp?v=1714970622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85fd5c62aa18976a92ea7db85da387bb67729d5d_2c68ebd9-cea9-438a-bbed-dea81cf15251.webp?v=1714970622","width":2000},{"alt":null,"id":23896412651619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0f7e3103f09da8eb604a6e0cbdadd2bc39eb83_d951830b-2405-4c11-b40d-42dc05073801.webp?v=1714970625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0f7e3103f09da8eb604a6e0cbdadd2bc39eb83_d951830b-2405-4c11-b40d-42dc05073801.webp?v=1714970625","width":2000},{"alt":null,"id":23896413110371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da0f7c004b249bb5af9baa58964f9436eab3d7de_88ddff14-0ee1-483a-9919-7c27f78c6733.webp?v=1714970627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da0f7c004b249bb5af9baa58964f9436eab3d7de_88ddff14-0ee1-483a-9919-7c27f78c6733.webp?v=1714970627","width":2000},{"alt":null,"id":23896413569123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abee89e5874f583db0b67029aa9efc505999dbff_74dd1754-391b-4a94-a3c2-ff1d34fca2dd.webp?v=1714970629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abee89e5874f583db0b67029aa9efc505999dbff_74dd1754-391b-4a94-a3c2-ff1d34fca2dd.webp?v=1714970629","width":2000},{"alt":null,"id":23896414552163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/820e72142c7507d110af08638f54214e39dd6ff8_c2abee17-5bf1-42b4-814d-1e2bcd412d6f.webp?v=1714970632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/820e72142c7507d110af08638f54214e39dd6ff8_c2abee17-5bf1-42b4-814d-1e2bcd412d6f.webp?v=1714970632","width":2000},{"alt":null,"id":23896415010915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f5e6f79ad52599786dab9dd9b46873e54e66818_d3f0631d-9ca2-4480-b82e-10d796b87d41.webp?v=1714970634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f5e6f79ad52599786dab9dd9b46873e54e66818_d3f0631d-9ca2-4480-b82e-10d796b87d41.webp?v=1714970634","width":2000},{"alt":null,"id":23896415502435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b8aa00223a5b1b4c868d07eb449b50810f3fbe_d0e95bb4-83e9-4c2b-9256-acbf7301f26a.webp?v=1714970636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00b8aa00223a5b1b4c868d07eb449b50810f3fbe_d0e95bb4-83e9-4c2b-9256-acbf7301f26a.webp?v=1714970636","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916581904483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491004498019,"product_id":7416020303971,"position":3,"created_at":"2024-05-06T12:43:40+08:00","updated_at":"2024-05-06T12:43:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0618b8b714a12bfc8e58c59dd7e0e01580619ab_fa521504-d900-4f40-ab50-e264137444e8.webp?v=1714970620","variant_ids":[41916581904483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Look - 人在做 加納利群島在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-AF08","featured_media":{"alt":null,"id":23896411799651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0618b8b714a12bfc8e58c59dd7e0e01580619ab_fa521504-d900-4f40-ab50-e264137444e8.webp?v=1714970620"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916581904483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491004498019,"product_id":7416020303971,"position":3,"created_at":"2024-05-06T12:43:40+08:00","updated_at":"2024-05-06T12:43:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0618b8b714a12bfc8e58c59dd7e0e01580619ab_fa521504-d900-4f40-ab50-e264137444e8.webp?v=1714970620","variant_ids":[41916581904483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Look - 人在做 加納利群島在看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-AF08","featured_media":{"alt":null,"id":23896411799651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0618b8b714a12bfc8e58c59dd7e0e01580619ab_fa521504-d900-4f40-ab50-e264137444e8.webp?v=1714970620"}},"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: "停產" }