Skip to content

Instantly share code, notes, and snippets.

@juanpablob
Created April 22, 2022 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanpablob/42997365a7b9680fe80c53bd5c439acd to your computer and use it in GitHub Desktop.
Save juanpablob/42997365a7b9680fe80c53bd5c439acd to your computer and use it in GitHub Desktop.
Photo Logic Changes
{
"frontal-view": {
"photos": {
"b2c": {
"mime_type": "image\/png",
"thumbnail": "https:\/\/componata.local\/wp-content\/uploads\/2020\/09\/lp_side_AR-10351@2x-150x150.png",
"1x": "https:\/\/componata.local\/wp-content\/uploads\/2020\/09\/lp_side_AR-10351@2x-768x768.png",
"2x": "https:\/\/componata.local\/wp-content\/uploads\/2020\/09\/lp_side_AR-10351@2x-1200x1200.png"
},
"b2b": []
},
"features": {
"b2c": [
{
"icon": "<svg>ble<\/svg>",
"title": "Einzel- oder Gro\u00dfversand",
"for": "b2c"
},
{
"icon": "<svg>ble<\/svg>",
"title": "Hohe St\u00fcckzahlen m\u00f6glich",
"for": "b2c"
}
],
"b2b": [
{
"icon": "<svg>ble<\/svg>",
"title": "Einzel Firma oder Gro\u00dfversand",
"for": "b2b"
},
{
"icon": "<svg>ble<\/svg>",
"title": "Hohe Firma St\u00fcckzahlen m\u00f6glich",
"for": "b2b"
}
]
}
},
"half-open": {
"photos": {
"b2c": {
"mime_type": "image\/png",
"thumbnail": "https:\/\/componata.local\/wp-content\/uploads\/2020\/09\/demo5@2x-150x150.png",
"1x": "https:\/\/componata.local\/wp-content\/uploads\/2020\/09\/demo5@2x-768x768.png",
"2x": "https:\/\/componata.local\/wp-content\/uploads\/2020\/09\/demo5@2x-1200x1200.png"
},
"b2b": []
},
"features": {
"b2c": [
{
"icon": "<svg>ble<\/svg>",
"title": "Von uns handgeschriebene Gru\u00dfkarte",
"for": "b2c"
},
{
"icon": "<svg>ble<\/svg>",
"title": "Delikatessauswahl frei definierbar",
"for": "b2c"
}
],
"b2b": [
{
"icon": "<svg>ble<\/svg>",
"title": "Von uns Firma handgeschriebene Gru\u00dfkarte",
"for": "b2b"
},
{
"icon": "<svg>ble<\/svg>",
"title": "Delikatessauswahl Firma frei definierbar",
"for": "b2b"
}
]
}
}
}
{
present_gallery: {
// call from api.gll object
},
photos: {
b2c: {
0: { // taken always from the 'frontal-view' of the gll
pixel: '', // 20x20
thumbnail: '', // 200x200
sd: '', // 768x768
hd: '' // 1200x1200
},
1: { // the rest of the photos except the one belonging 'frontal-view'
pixel: '', // 20x20
thumbnail: '', // 200x200
sd: '', // 768x768
hd: '' // 1200x1200
}
},
b2b: {
0: { // check whether the frontal-view is set for b2b, otherwise put the same one from b2c as fallback
pixel: '', // 20x20
thumbnail: '', // 200x200
sd: '', // 768x768
hd: '' // 1200x1200
},
1: { // the rest of the photos except the one belonging 'frontal-view'
pixel: '', // 20x20
thumbnail: '', // 200x200
1x: '', // 768x768
2x: '' // 1200x1200
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment