rewrite sampleProduct
This commit is contained in:
parent
37083ca5bc
commit
13a2d67474
@ -925,16 +925,16 @@ Coordinates: ${product.hidden_coordinates}
|
||||
const subcategoryId = product.subcategory_id;
|
||||
|
||||
const sampleProduct = {
|
||||
name: "Sample Product 1",
|
||||
price: 100,
|
||||
description: "Product description",
|
||||
private_data: "Hidden details about the product",
|
||||
quantity_in_stock: 10,
|
||||
photo_url: "https://example.com/photo.jpg",
|
||||
hidden_photo_url: "https://example.com/hidden.jpg",
|
||||
hidden_coordinates: "40.7128,-74.0060",
|
||||
hidden_description: "Secret location details"
|
||||
}
|
||||
name: product.name,
|
||||
price: product.price,
|
||||
description: product.description,
|
||||
private_data: product.private_data,
|
||||
quantity_in_stock: product.quantity_in_stock,
|
||||
photo_url: product.photo_url,
|
||||
hidden_photo_url: product.hidden_photo_url,
|
||||
hidden_coordinates: product.hidden_coordinates,
|
||||
hidden_description: product.hidden_description
|
||||
};
|
||||
|
||||
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`;
|
||||
|
Loading…
Reference in New Issue
Block a user