News:

Looking for documentation? Take a look on our wiki

Main Menu

Plugin hook not firing... [SOLVED]

Started by ivus, August 01, 2012, 22:10:12 PM

Previous topic - Next topic

ivus

Hi.

J! 2.5.6 & VM 2.0.8e, no third party anything running...

I'm working on a FedEx Shipping Plugin and I'm trying to fire off the following hook



   public function plgVmOnCheckoutCheckData($psType, VirtueMartCart $cart) {}



I'm led to believe that this event executes in between the checkout and confirm stages. So once you press CHECK OUT, event triggered, then if all is good it should redirect to the CONFIRM ORDER step... am I right?

I want to check that the cart hasn't been altered.. and if so then they'll have to select a new shipping charge.



  function plgVmConfirmedOrder(VirtueMartCart $cart, $order) {}



This hook work, but it's one step too late.

If someone could point me in the right direction... I can have this plugin done and dusted.

Cheers.

ivus  :o-------???

ivus

Yay me...

Got it to fire... woot woot!!

Silly me.. used the wrong code. In case someone else is working on a plugin...



   public function plgVmOnCheckoutCheckDataShipment(VirtueMartCart $cart) {}



plgVmOnCheckoutCheckDataShipment

needed that part..

Now I can continue.