https://github.com/vtex-apps/rebuy
VTEX Rebuy app
https://github.com/vtex-apps/rebuy
hacktoberfest srv-store-framework store-framework vtex-io xp-developer
Last synced: 25 days ago
JSON representation
VTEX Rebuy app
- Host: GitHub
- URL: https://github.com/vtex-apps/rebuy
- Owner: vtex-apps
- Created: 2018-10-23T13:41:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-09T17:34:41.000Z (10 months ago)
- Last Synced: 2025-04-09T18:42:58.084Z (10 months ago)
- Topics: hacktoberfest, srv-store-framework, store-framework, vtex-io, xp-developer
- Language: JavaScript
- Homepage:
- Size: 189 KB
- Stars: 2
- Watchers: 47
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: docs/README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# rebuy
VTEX Rebuy app
This app shows the last order for the identified user, with a button to buy the same products again.
## Usage
For this to work, you need to create the `lastOrders` schema on the `orders` dataentity. [Docs](http://help.vtex.com/en/tutorial/master-data-v2)
```json
{
"properties": {
"clientProfileData": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email"
}
}
}
},
"v-default-fields": ["items", "value"],
"v-security": {
"allowGetAll": false,
"publicRead": ["items", "value"],
"publicFilter": ["clientProfileData"]
},
"v-indexed": ["clientProfileData"]
}
```