View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003643 | OXID eShop (all versions) | 3.1. Design, GUI, UX | public | 2012-02-28 21:01 | 2012-06-19 15:46 |
Reporter | leonardkramer | Assigned To | |||
Priority | normal | Severity | trivial | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 4.5.8 revision 42471 | ||||
Summary | 0003643: Invalid zoom picture data structure generation | ||||
Description | oxArticle.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. | ||||
Tags | No tags attached. | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
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; |