app-generator / ecommerce-django-stripe

Django Stripe Sample - Soft UI Design (Free Sample) | AppSeed
https://blog.appseed.us/django-stripe-mini-ecommerce/
Other
60 stars 17 forks source link

Stripe Products Integration #6

Closed app-generator closed 2 years ago

app-generator commented 2 years ago

SPECS:

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:

{
    "id": "prod_L3QBiEdGWquAHl",
    "name": "Nike Dynamo Go FlyEase",
    "price": 49,
    "currency": "usd",
    "info": "Baby/Toddler Easy On/Off Shoes",
    "short_description": "A workhorse built to help power you .....",
    "full_description": "Easy, snug and built for any-time play the...",
    "img_card" : "Base64:asdaksdjhakjdhaksdhakjds",
    "img_main" : "https://files.stripe.com/links/MDB8YWNjdF8xSGxXdEdHTExkMVgwN1ZV____PUBLIC_URL",
    "img_1": "Base64:asdaksdjhakjdhaksdhakjds",
    "img_2": "Base64:asdaksdjhakjdhaksdhakjds",
    "img_3": "Base64:asdaksdjhakjdhaksdhakjds",
}

Note: the images are not saved anymore on static folder

Product.JSON updates:

The Products creation page

the page is divided in two pannels

app-generator commented 2 years ago

Hello @MySecondLanguage

The logic should take into account the cases:

UI/UX

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):

Creation

Edit

The 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!

app-generator commented 2 years ago

Validated. Closing! Ty @MySecondLanguage