Closed app-generator closed 2 years ago
Hello @MySecondLanguage
The logic should take into account the cases:
Product Names should use the real Product name. In the current implementation, is quite hard to identify the left/right correspondence.
The read-only fields (all use cases):
Nike Goalkeeper Match
-> nike-goalkeeper-match.json
CREATE
the new product is not created in all cases. the existing products should be checked and if the product is already pulled locally, that version is loaded.
product_id
that is uniqueThe images part is missing. The Superuser
should be able to upload 5 images.
Each one can be an external link or real image safe in base64 format in the product JSON.
This part assures that in production no external storage for the uploaded images is necessary.
Let me know if something is not clear.
Ty!
Validated. Closing! Ty @MySecondLanguage
SPECS:
products/templates/products/products.json
A sample JSON from Stripe: https://github.com/app-generator/python-stripe-wrapper/blob/main/products.json
The JSON that defines the local product should be updated as below:
Product.JSON updates:
id
field is the Stripe product IDThe Products creation page
the page is divided in two pannels
LEFT panel dedicated to Stripe products
RIGHT panel is dedicated to local products
List all local products
Create / Edit product (all JSON fields)
Quality
Only Vanilla JS is used
No jQuery or other frameworks like React, Vue .. etc