| Anonimowy | Zaloguj się | Załóż nowe konto | 2013-05-22 09:06 CEST |
| Główna | Mój widok | Zobacz | Lista zmian | Plan pracy | Dokumentacja | Moje konto |
| Widok prosty [ Przejdź do komentarzy ] | [ Widok zaawansowany ] [ Historia zagadnienia ] [ Drukuj ] | |||||||||||
| Identyfikator | Kategoria | Ważność | Powtarzalność | Data zgłoszenia | Data modyfikacji | |||||||
| 0000025 | [Typogento] Bug | drobny | zawsze | 2009-06-09 13:02 | 2009-10-05 15:14 | |||||||
| Zgłaszający | dschwarz | Widoczność | publiczny | |||||||||
| Przypisany do | ||||||||||||
| Priorytet | normalny | Rozwiązanie | otwarty | |||||||||
| Stan | zwrócony | |||||||||||
| Temat | 0000025: Onepage Checkout: Ajax issue | |||||||||||
| Opis |
In the payment tab the listing of the payment methods does not work as it should. If i define a payment method that should be only available in germany for example and then select a billing/shipping address from another country, the payment method is still shown. it seems like the payment tab never gets refreshed by ajax. if i print the checkout/session on the payment tab, there are still old informations stored in it. with the shipping tab everything works fine...only shipping methods allowed for the stated country are shown. in the progressframe (right column) everything looks fine too. this problem only occurs while using typogento, if i proceed the checkout directly via magento i get only the allowed payment methods. |
|||||||||||
| Dodatkowe informacje | Typogento 0.5.1; Typo3 4.2.6; Magento 1.3.1 | |||||||||||
| Tagi | Brak powiązanych tagów. | |||||||||||
| Dołączone pliki | ||||||||||||
|
|
||||||||||||
Komentarze |
|
|
(0000031) w3design (zgłaszający) 2009-06-11 14:30 |
Hi, we encountered the same problem and (after hours of debugging) could provide a bugfix. You have to edit a line of php code in the following file: ./app/code/local/Mage/Checkout/controllers/OnepageController.php in the method saveShippingMethodAction(). There you have to make this modification: public function saveShippingMethodAction() { $this->_expireAjax(); if ($this->getRequest()->isPost()) { $data = $this->getRequest()->getPost('shipping_method', ''); $result = $this->getOnepage()->saveShippingMethod($data); /* $result will have erro data if shipping method is empty */ if(!$result) { Mage::dispatchEvent('checkout_controller_onepage_save_shipping_method', array('request'=>$this->getRequest(), 'quote'=>$this->getOnepage()->getQuote())); // original place // $this->getResponse()->setBody(Zend_Json::encode($result)); $result['goto_section'] = 'payment'; $result['update_section'] = array( 'name' => 'payment-method', 'html' => $this->_getPaymentMethodsHtml() ); // new (and better) place // see /app/code/community/Flagbit/Typo3connect/Controller/Response.php :: setBody() / ajaxHandler() $this->getResponse()->setBody(Zend_Json::encode($result)); // $result['payment_methods_html'] = $this->_getPaymentMethodsHtml(); } $this->getResponse()->setBody(Zend_Json::encode($result)); } } This change fixed the problem for us. Kind regards, Marco Stoll w3design. GmbH marco.stoll@w3design.de |
|
(0000032) w3design (zgłaszający) 2009-06-11 14:32 |
p.s.: we already filed an official bug issue on http://www.magentocommerce.com/bug-tracking [^] |
|
(0000033) dschwarz (zgłaszający) 2009-06-11 15:00 edytowano: 2009-06-11 15:00 |
thank you, this change fixed the problem! i think this bug can be closed here now, because its a magento-core issue. |
|
(0000070) drlrdsen (administrator) 2009-10-05 15:04 |
@w3design: Did they add you code to the core? |
|
(0000078) w3design (zgłaszający) 2009-10-05 15:14 |
I did not get any feedback until now. But I've not checked any current magento version for changes myself. The magento version used in this project was v1.3.1. I filed the issue here: http://www.magentocommerce.com/bug-tracking/issue?issue=6570 [^] |
|
(0000079) drlrdsen (administrator) 2009-10-05 15:14 |
Okay, thanks anyways, we'll check for it as soon as possible. |
| Copyright © 2000 - 2008 Mantis Group |