View Issue Details

IDProjectCategoryView StatusLast Update
0004385OXID eShop (all versions)4.07. Source code, Testpublic2018-11-05 11:16
Reporterleofonic 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version4.6.3 revision 47975 
Target VersionFixed in Version 
Summary0004385: oxDeliveryList::getDeliveryList is not usable in modules
DescriptionI wanted to use oxDeliveryList::getDeliveryList in a module, but it's not possible, because:
1. $this->_aDeliveries is not resetted, so if you call the method multiple times, _aDeliveries add up. As it is only used in this method, i think it is not neccesary to use a property here.
2. Session Var 'sShipSet' is set inside the method, so it is not possible to call the method with different parameters than current selection, as this will mess up selected shipset.
TagsDelivery
ThemeNot defined
BrowserAll
PHP VersionNot defined
MySQL VersionNot defined

Activities

aurimas.gladutis

2013-01-14 08:26

reporter   ~0008251

Last edited: 2013-01-14 08:26

View 2 revisions

Hi, one option would be to set the setCollectFittingDeliveriesSets to true. This would give all fitting deliveries, not just first one found, but would also not add up to currently added ones and would not change session.

leofonic

2014-07-29 13:42

reporter   ~0010042

If setCollectFittingDeliveriesSets is set to true, the method does not return fitting deliveries but only fitting deliverysets.

avalue

2014-09-29 10:37

reporter   ~0010194

I was working on a module to split orders and got stuck with this issue, too. Fixed it with writing a simple module that sets

$this->_aDeliveries = array();

and calls the parent method. Thanks.