php - Magento Save Order function where it is? -
i'm checking since hours magento files. i'm in checkout onepage /checkout/onepage/reviews/info.phtml
, order saved phone call ajax,
<script type="text/javascript"> //<![cdata[ review = new review('<?php echo $this->geturl('checkout/onepage/saveorder', array('form_key' => mage::getsingleton('core/session')->getformkey())) ?>', '<?php echo $this->geturl('checkout/onepage/success') ?>', $('checkout-agreements')); //]]> </script>
i'm new syntax, there no saveorder file in onepage template folder, need hack saveorder action alter redirect succes page payment gateway , come back. method is? don't understand phone call ajax new object instance.
any help appreciated.
so checkout/onepage/saveorder
route corresponds module/controller/action
. map to:
install_path/app/code/core/mage/checkout/controllers/onepagecontroller.php
and method looking saveorder
.
that said should not ever go hacking core files. can observer or class rewrite override functionality.
observers: http://www.solvingmagento.com/events-and-observers-a-magento-tutorial/ onepage checkout walk through: http://www.solvingmagento.com/magento-onepage-checkout-part-2-model-views-controller/ php ajax magento
No comments:
Post a Comment