dakrcz Posted March 25, 2011 Share Posted March 25, 2011 Zdravim,mam takovy problem s modulem cashondeliverywithfee, ktery nepresmeruje po dokonceni objednavky na spravnou adresu order-confirmation.php ale do historie objednavek.Tato vlastnost je velice neprijemna protoze se neda dobre sledovat zakaznik pomoci goals ( cile ) ani sekce commerce v google analytics. Resil jste do nekdo ?? Verze presty 1.3.1.1dikyPS: prikladam modul, ktery presmerovava na historii cashondeliverywithfee.zip Link to comment Share on other sites More sharing options...
dakrcz Posted March 28, 2011 Author Share Posted March 28, 2011 Nikdo neví ? Link to comment Share on other sites More sharing options...
Maria_M Posted March 28, 2011 Share Posted March 28, 2011 riesenie tohto problemu by som potrebovala aj ja Link to comment Share on other sites More sharing options...
dakrcz Posted March 29, 2011 Author Share Posted March 29, 2011 Takze jak na to Po zjisteni co se deje po potvzeni objednávky pomoci odchytavani http hlavicek sem zjistil ze modul spravne presmeruje na order-confirmation.php ale ten hned presmerovava kodem 302 do sekce historie.Prozkoumal sem tedy order-confirmation.php a zjistil ze je nekolik podminek, ktere kdyz nejsou splneny tak presmeruje. Otevrel sem tedy /modules/cashondeliverywithfee/validation.php a zjistil ze se nepouziva promenna secure_key v url adrese, takze byla doplnena, pridana promenna $customer a do slozky /modules/cashondeliverywithfee/ nakopirovam soubor sablony confirmation.tpl z modulu cashonpickup.1) soubor /modules/cashondeliverywithfee/validation.phppuvodni - radek muzete zakomentovat pomoci pridani // na zacatek radku Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?id_cart='.intval($cart->id).'&id;_module='.intval($cashOnDelivery->id).'&id;_order='.intval($cashOnDelivery->currentOrder)); nahradit Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id;_cart='.intval($cart->id).'&id;_module='.intval($cashOnDelivery->id).'&id;_order='.intval($cashOnDelivery->currentOrder)); 2) soubor /modules/cashondeliverywithfee/validation.phppred radek $cashOnDelivery = new CashOnDeliveryWithFee(); vlozit $customer = new Customer(intval($cart->id_customer)); asi takto /* Validate order */ if ($confirm) { $customer = new Customer(intval($cart->id_customer)); $cashOnDelivery = new CashOnDeliveryWithFee(); ... ... ... 3) zkopirovat soubor z /modules/cashonpickup/confirmation.tpl do /modules/cashondeliverywithfee/confirmation.tpl Po teto uprave chodi v 1.3.1.1 jak by melo, ale pokud si to budete upravovat tak si vzdycky otestujte na zkusebni instalaci funkcnost. Link to comment Share on other sites More sharing options...
Maria_M Posted March 31, 2011 Share Posted March 31, 2011 vdaka za upravu, vyzera ze funguje aj na PS 1.3.7 Link to comment Share on other sites More sharing options...
peter_m Posted June 19, 2011 Share Posted June 19, 2011 dundie, nepozries na upravu cashondeliverywithfee pre PS 1.4.3 ?vid. http://www.prestashop.com/forums/viewthread/95066/P90/#470875 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now