get shipping cost per article
i need to get the shipping costs per article based on all shipping rules etc. (there are about 50 rules, so i'd really like to use the oxid api)
my current approoch is to emulate the oxBasket object like this:
$oxBasket = oxNew( 'oxBasket' );
$oxBasket->addToBasket( $oArticle->getProductId(), 1 );
$oxBasket->calculateBasket( true );
var_dump( $oxBasket->getDelCostNet() )
while this seems to work with one article, it doesnt work in a loop/batch with multiple articles.it seems the shipping costs are added/multiplied then.
i tried to unset the session or basket object with no success...
any help is appreciated!