When the checkout complete hook is called, the Nosto module temporarily stores to order ID in the session so it can pull the value back out on the order complete page and therefore render the hidden block.

We were seeing a problem where we were seeing a very low order conversation rate in Nosto compared to the orders we knew existed. This could be similar to the issue reported as: https://www.drupal.org/node/2223793

In the code, the order is only put in the session if the user_id of the user object matches the user id of the order using a === comparator.

For an anonymous user the values are both 0 but the === does not return a match. For a logged in user the number match is fine.

Changing the values to == instead allows the functions to work as expected.

Patch to follow shortly.

kind regards

Richard

CommentFileSizeAuthor
#1 order_conversion_anon-2298957.patch973 bytesikos

Comments

ikos’s picture

StatusFileSize
new973 bytes