Hi Frank, many thanks for that. I got it working, simply resetting the array in a new module.
Have a good week Alex Schwarz / active value GmbH Am 28.09.2014 um 12:06 schrieb Frank Zunderer <[email protected]>: > Hi, > > maybe it's because of this bug: > https://bugs.oxid-esales.com/view.php?id=4385 > oxDeliveryList::getDeliveryList is called in oxbasket:: _calcDeliveryCost > $this->_aDeliveries is not resetted, so if you call the method multiple > times, _aDeliveries add up. > > Regards, > Frank Zunderer > > Zunderer IT Beratung > Waldstr. 22 > 82205 Gilching > > 08105-777250 > 0173-8362768 > [email protected] > > > > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] Im Auftrag von Alex Schwarz > Gesendet: Donnerstag, 25. September 2014 18:08 > An: [email protected] > Betreff: [oxid-dev-general] Recalculation of Delivery Costs / Splitting > Orders > > Hi, > > I am working on a module to split one OXORDER into many, based on the > vendors. For now I clone the actual order object, set my order articles I > want for this Order, call recalculate functions and save. > > Everything is working fine but the delivery costs. In the last order I > always have the delivery costs of the previous one. So it seems on the last > order I have the delivery costs of the original order (all delivery costs). > I think there is a cache or something. Or it reload from the session basket? > Working the whole day on it, can’t figure it out. > > I already call the reload methos (reloadDelivery true, reloadDiscount true > and recalculateOrder) > > Anyone got an idea? > > Alex Schwarz / active value > _______________________________________________ > dev-general mailing list > [email protected] > http://dir.gmane.org/gmane.comp.php.oxid.general > > _______________________________________________ > dev-general mailing list > [email protected] > http://dir.gmane.org/gmane.comp.php.oxid.general _______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
