An open API service indexing awesome lists of open source software.

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

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"]
}
```