rewrite sampleProduct

This commit is contained in:
NW 2024-11-26 09:31:06 +00:00
parent 37083ca5bc
commit 13a2d67474

View File

@ -925,16 +925,16 @@ Coordinates: ${product.hidden_coordinates}
const subcategoryId = product.subcategory_id; const subcategoryId = product.subcategory_id;
const sampleProduct = { const sampleProduct = {
name: "Sample Product 1", name: product.name,
price: 100, price: product.price,
description: "Product description", description: product.description,
private_data: "Hidden details about the product", private_data: product.private_data,
quantity_in_stock: 10, quantity_in_stock: product.quantity_in_stock,
photo_url: "https://example.com/photo.jpg", photo_url: product.photo_url,
hidden_photo_url: "https://example.com/hidden.jpg", hidden_photo_url: product.hidden_photo_url,
hidden_coordinates: "40.7128,-74.0060", hidden_coordinates: product.hidden_coordinates,
hidden_description: "Secret location details" hidden_description: product.hidden_description
} };
const jsonExample = JSON.stringify(sampleProduct, null, 2); const jsonExample = JSON.stringify(sampleProduct, null, 2);
const message = `To edit product, send a JSON file with product in the following format:\n\n<pre>${jsonExample}</pre>\n\nProduct must have all the fields shown above.\n\nYou can either:\n1. Send the JSON as text\n2. Upload a .json file`; const message = `To edit product, send a JSON file with product in the following format:\n\n<pre>${jsonExample}</pre>\n\nProduct must have all the fields shown above.\n\nYou can either:\n1. Send the JSON as text\n2. Upload a .json file`;