Closed IkkiOcean closed 3 days ago
Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊
You can also check our CONTRIBUTING.md for guidelines on contributing to this project.
Hello @IkkiOcean! Your issue #595 has been closed. Thank you for your contribution!
Is there an existing issue for this?
Feature Description
Description: We need to connect the already existing user model for shop users to the AgroShop e-commerce platform. This will facilitate user management, authentication, cart management, and order history functionalities, ensuring a complete e-commerce experience.
Additional Keys to Consider: To enhance the user model for e-commerce functionalities, the following keys can be added:
role
: String (default: "customer")address
: Array of Objectsstreet
: String (required)city
: String (required)state
: String (required)postalCode
: String (required)country
: String (required)isDefault
: Boolean (default: false) - To mark the default shipping address.phone
: String (optional)createdAt
: DateDate.now()
updatedAt
: DateDate.now()
isActive
: Boolean (default: true)cart
: Array of ObjectsproductId
: String (required) - ID of the productquantity
: Number (required) - Quantity of the productprice
: Number (required) - Price of the product at the time of additionaddedAt
: Date (default:Date.now()
) - Time when the product was added to the cartwishlist
: Array of ObjectsproductId
: String (required) - ID of the productaddedAt
: Date (default:Date.now()
) - Time when the product was added to the wishlistorderHistory
: Array of ObjectsorderId
: String (required) - Unique ID for the orderproducts
: Array of Objects (required)productId
: String (required) - ID of the ordered productquantity
: Number (required) - Quantity of the product orderedprice
: Number (required) - Price of the product at the time of ordertotalAmount
: Number (required) - Total amount for the orderorderDate
: Date (required) - Date when the order was placedstatus
: String (default: "pending") - Current status of the order (e.g., "pending", "shipped", "delivered", "cancelled")paymentMethods
: Array of Objectsmethod
: String (required) - Type of payment method (e.g., "credit card", "PayPal", "bank transfer")details
: Object - Detailed information for the payment method (e.g., card number, expiration date)Use Case
Benefits
No response
Add ScreenShots
No response
Priority
High
Record