开发者

Magento after Onepage checkout adding new products to cart

i would like to add some Products after the Check开发者_JAVA技巧out I have an observer and it's listening on 'checkout_onepage_controller_success_action'

when i try

$this->_getCart()->addProduct($product, $params);

and save the cart the success page will be loaded but no new products in the cart.

Any idea what's wrong?


It's working if you know that you must do a new

$cart = Mage::getSingleton('checkout/cart');

before you can go one

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜