View Issue Details

IDProjectCategoryView StatusLast Update
0003643OXID eShop (all versions)3.1. Design, GUI, UXpublic2012-06-19 15:46
Reporterleonardkramer Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status resolvedResolutionno change required 
Product Version4.5.8 revision 42471 
Summary0003643: Invalid zoom picture data structure generation
DescriptionoxArticle.getPictureGallery() returns an array with pictures assigned to the current product. The structure of 'ZoomPics' differs from the other picture structures as that the picture id does not represent the real picture id (ranging from 1...8) but instead an incremental value.

In my opinion it would be more accordant to return the corresponding picture id, so that you can access this value for example in the modal zoom popup.

A solution would be to change line 2062 in oxarticles from

$aZoomPics[$c]['id'] = $c;

to

$aZoomPics[$c]['id'] = $j;

and to change zoompopup.tpl accordingly.
 
TagsNo tags attached.
ThemeAzure
BrowserAll
PHP Versionany
Database Versionany

Activities

arturas.sevcenko

2012-06-19 15:46

reporter   ~0006927

Our modal zoom popup is working properly with current picture ID's array structure. My suggestion would be, that for yourself you can add one more key => value in ZoomPics array, which would represent the "real" pic ID from database, and use it to access anywhere you wanted.

$aZoomPics[$c]['id'] = $c;
....
$aZoomPics[$c]['real_id'] = $j;