• Hi Rich!

    Anyway we can track when a visitor clicks on an item and adds it to their cart, but does not place an order and/or empties their cart?

    Is the cart strictly user-cookie based before an order is actually placed?

    The reason I ask is that we would like to see / track when a visitor adds an item to the cart, even if they never order.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author elfin

    (@elfin)

    it’s session based. Ther cart is updated via the eshop_cart_process function within cart-functions.php

    If you can figure out where to add actions/filters to help you achieve what you want within that, I can add them into a future release for you.

    Thread Starter neodiver

    (@neodiver)

    Thanks for the pointer, Rich!

    Not perfect, but OK for now, I added this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Plugin Author elfin

    (@elfin)

    Ok i’ve added to actions:
    look for the line:
    if(isset($_SESSION['eshopcart'.$blog_id][$identifier])){

    both are within this if statement.
    The first, just before the } else { is:
    do_action('eshop_product_updated_cart',$_SESSION['eshopcart'.$blog_id][$identifier]);
    the second just before the closing } is
    do_action('eshop_product_added_to_cart',$_SESSION['eshopcart'.$blog_id][$identifier]);

    Both are sent an array, and you should be able to do whatever with those by using add_action.

    (the code will be in the next release)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: eShop] Tracking or Reporting on Shopping Cart "Clicks" ?’ is closed to new replies.