- countProductByBrand
- getBrand
- getBrandImage
- getBrandURL
- getBrands
- getBrandsByCategoryUID
- getSpokenBrandUrl
- searchBrands
Numero di prodotti associati ad un brand
countProductByBrand(brandUID)
| param | type | note | default |
|---|---|---|---|
| brandUID | int | UID (unique id) del brand |
Recuperare l'anagrafica brand completa, nella lingua corrente.
getBrand(brandUID)
| param | type | note | default |
|---|---|---|---|
| brandUID | int | UID (unique id) del brand |
Ottenere il link all'immagine del brand
getBrandImage(brandUID)
| param | type | note | default |
|---|---|---|---|
| brandUID | int | UID (unique id) del brand |
Ottenere il link alla pagina del brand*
getBrandURL(brandUID)
| param | type | note | default |
|---|---|---|---|
| brandUID | int | UID (unique id) del brand |
* Link base, non considera canonical URL personalizzata
Ottenere tutti i brand attivi del negozio
getBrands()
{
"5c5326dd16f46aac128b4766":{
"_id":{
"$id":"5c5326dd16f46aac128b4766"
},
"uid":1229704,
"name":"GUESS",
"slug":"guess",
"groupUID":114501,
"description":"",
"seo":[ ],
"disabled":false
},
"5c5326de16f46aac128b47ec":{
"_id":{
"$id":"5c5326de16f46aac128b47ec"
},
"uid":1229838,
"name":"DIESEL",
"slug":"diesel",
"groupUID":114501,
"description":"",
"seo":[ ],
"disabled":false
},
...
}
Data una categoria, restituisce i brand che hanno prodotti all'interno.
getBrandsByCategoryUID(categoryUID)
| param | type | note | default |
|---|---|---|---|
| categoryUID | int | UID (unique id) della categoria |
I prodotti restituiti possono essere associati sia alla categoria che alle sue sottocategorie
Ottiene l'url personalizzata del brand.
getSpokenBrandUrl(brandUID,slug)
| param | type | note | default |
|---|---|---|---|
| brandUID | int | UID (unique id) del brand | |
| slug | string | SLUG inserita nel brand, da usare nel caso in cui non ci sia una url personalizzata |
*Funzione PRO: solo per negozi con funzione canonical URL attiva. Contattaci per saperne di più
Ricerca brands
searchBrands(filterArray,orderArray,limit,skip)
| param | type | note | default |
|---|---|---|---|
| filterArray | array | Array associativo per applicare altri parametri di ricerca | [] |
| orderArray | array | Array associativo per ordinare i brand | [] |
| limit | int | Numero massimo di brand, 0 per non impostare un limite | 0 |
| skip | int | Skip prodotti, 0 per non impostare uno skip | 0 |
{% set sortArray = [] %}
{% set sortArray = sortArray | merge({"name" : 1 }) %}
{% set filterArray = [] %}
{% set filterArray = filterArray | merge({"disabled" : false }) %}
Commenti