Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

enterprise - How to restore a quote in Magento when returning to the Onepage checkout? -


i using magento enterprise, datacash 3d secure payment module.

in event of error during payment process want user returned onepage checkout basket intact. when user returns checkout basket empty forwarded "checkout/cart" because have no items.

i thought might problem code have initial payment action redirecting straight away error onepage checkout.

 public function redirectaction() {   mage::getsingleton('core/session')->adderror("there problem payment gateway. please try again");   $session = mage::getsingleton('checkout/session');   return $this->_redirect('checkout/onepage/', array('_secure'=>true)); } 

however on returning checkout page basket empty. adding in following log indexaction of onepage checkout "quote ". looking in database quote has had active status set 0.

 error_log("quote ".mage::getsingleton('checkout/session')->getquoteid()); 

i have not came across problem standard magento enterprise. has come across issue? ideally not want customers having add products basket again. its conflicting sort of magento enterprise module.

thanks in advance help!

basically answered own question. load quote (if it's not available) , perform this:

$yourquote()->setisactive(true); 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -