Jump to content

PrestaShop and ganalytics


cikcak

Recommended Posts

Hello,

 

I im using additional payment module. After a few weeks I noticed that google analytics e-commerce statistics not showing lot of payments. So briefly, this additional module redirecting customer to their payment site and customer dont visit order-confirmation page.

 

So I created a new hook: actionOrderValidation and copy paste hookOrderConfirmation function to my new (actionOrderValidation) hook. I add additional condition to check:

 

if (Validate::isLoadedObject($order) && $order->module == 'ccmodule') -> do same things that did in hookOrderConfirmation (copy - paste).

 

But after order validation I got a new inesrt in database ganalytics table, but column sent = 0. And I can`t find problem why? He got same data like in orderConfirmation hook. Using same functions.

 

Thanks for any help or way how to deal with such problem.

 

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...