Jump to content

PepeLopez

Members
  • Posts

    4
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    Slovakia
  • First Name
    Karel
  • Last Name
    JANEČEK

PepeLopez's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Oh, after checked more than .php files of AEUC module I found this in fo_aeuc_tnc.js file of AEUC module $('button[name="processCarrier"]').click(function(event){ /* Avoid any further action */ event.preventDefault(); event.stopPropagation(); ... this definetely causes function processCarrier() in OrderController.php will never be fired public function postProcess() { // Update carrier selected on preProccess in order to fix a bug of // block cart when it's hooked on leftcolumn if ($this->step == 3 && Tools::isSubmit('processCarrier')) { $this->processCarrier(); } } processCarrier() calls _processCarrier() in ParentOrderController.php and _processCarrier() executing hook actionCarrierProcess... I just wonder why AUEC prevents executing _processCarrier(), which handle f.e. validateDeliveryOption? Any experienced users of AEUC module?
  2. Is anyone facing a similar problem? I was searching forum, googling, but I did not find the answer... The problem looks like actionCarrierProcess called from another module is not processed during order step while AEUC module used and set to advanced order during 5-steps order. I'm using Advanced EU Compliance v2.0.2 and PS 1.6.1.15 (and 1.6.16 tested both versions) the problem is when I hook ActionCarrierProcess function in another module to get and save some user input in the order process, it looks like this action is not processed when the AEUC module is turned on. I tested this situation on both the built-in and the clean installation of PS (1.6.1.15 and 1.6.1.16). (cache and class_index cleared) The point is - when I turn off the AEUC, everything works fine. The function actionCarrierProcess (called by Hook::exec from _processCarrier() in ParentOrderController.php) in other module is processed with some stuff I need to do (later processing ActionValidateOrder which isn't impacted), without any problems. I've tried investigate code and the hooks of AUEC module, but have no idea about how can this AEUC module impact actionCarrierProcess (maybe I wasn't investigate enough to find possible overriding of actionCarrierProcess). I'm not providing code, because everything works fine when AEUC is turned off... anyway it can be tested simply by in some quick testmodule... public function hookActionCarrierProcess($params) { var_dump($params); die(); }
  3. Page has js variable 'isMobile' defined, if suitable you can do your stuff through js... <script> if (isMobile === true) { ...do your stuff... } </script>
  4. ...same problem here. Just 've been read a lot of stuff googling around didnt find any answer. Do some experienced coders have explanation?
×
×
  • Create New...