开发者

Magento after Onepage checkout adding new products to cart

开发者 https://www.devze.com 2023-01-09 00:34 出处:网络
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\'

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

精彩评论

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