What is the correct endpoint to fetch a single product with Ajax? 🛍️
### Explanation
To fetch a single product in Shopify, use the `/products/[handle].js` endpoint:
```javascript
fetch(window.Shopify.routes.root + 'products/red-rain-coat.js')
.then(response => response.json())
.then(product => alert('The title of this product is ' + product.title));
```
Key points:
- Endpoint format is `/products/[handle].js`
- Returns product data in JSON format
- Use the product handle, not the product ID
Reference: [Shopify Ajax API Product](https://shopify.dev/api/ajax/reference/product)
Answer Options:
- /products/[handle].js
- /product/[handle].json
- /products/[product_id].json
- We cannot fetch a single product with Ajax, only with Liquid