VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: ivus on August 01, 2012, 22:10:12 PM

Title: Plugin hook not firing... [SOLVED]
Post by: ivus on August 01, 2012, 22:10:12 PM
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-------???
Title: Re: Plugin hook not firing... [SOLVED]
Post by: ivus on August 02, 2012, 04:41:22 AM
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.