Jump to content

[Module] Cart Logger for PS1.5


Recommended Posts

This module is for prestashop 1.5+

 

The modules saves user information like IP & user AGENT for each cart.

 

You can add more information to your log with 1 line edit to the code.

 

To view the log information open the module by clicking "Configure" than enter the cart ID and click "Lookup"

cartlogger_v0.1.zip

  • Like 4

Share this post


Link to post
Share on other sites
  • 6 months later...

Once the module is installed go to:

 

Backoffice -> Modules -> Cart Logger -> Configure

 

Enter your Cart ID from Backoffice ->Customers -> Shopping Carts

 

Note the log info. is only available for carts updated/created after the module was installed

Edited by HA!*!*Y (see edit history)

Share this post


Link to post
Share on other sites
  • 4 months later...

would it be too much to ask for you to make it also compatible with PS 1.4? I have an old PS.14 website and it would be a real pain to upgrade it and I’m looking for a module or a solution to stop certain visitors (which I suspect are bots) that every day ad a lot of products to cart creating a lot of abandoned carts. I’m not sure what kind of spam strategy is this but I would like to put an end to it so I think that your module would be able to do this.

Any help would be appreciated!

Share this post


Link to post
Share on other sites
  • 2 months later...

I get IP address on Guest Cart ! Prestashop Version: 1.4.10.0

 

Here is my way:

 

1) Download free module here :  Order IP Log - presto-changeo

2) Install module :)

3) add in end of line 40 "oi.ip" see down code: admin/tabs/AdminCarts.php

$this->_select = 'CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) `customer`, a.id_cart total, ca.name carrier, o.id_order, oi.ip ';

4) add line: 45

LEFT JOIN '._DB_PREFIX_.'oil_order_ip_log oi ON (oi.id_cart = a.id_cart) ';

5) add line: 48

'ip' => array('title' => $this->l('IP'), 'align' => 'center', 'width' => 85),

This work for me :)

Share this post


Link to post
Share on other sites
  • 8 months later...
  • 4 weeks later...
  • 3 weeks later...
  • 1 year later...

i just took a look to the .php script and the part that alter the cart table adding a new field is something i perfer to avoid.

I think could be better create a dedicated table called cart_logs that contain id_cart and the user_log field.

 

This will grant better compatibility and separate the function of the module from the PS standard functions.

Edited by ANGELO Vintage (see edit history)

Share this post


Link to post
Share on other sites
  • 1 year later...

It still works in 2018, but with other modifications.

 

Module Order IP Log, PRESTASHOP 1.6
controllers/admin/AdminCartsController.php

LINE 45
$this->_select = 'CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) `customer`, a.id_cart total, ca.name carrier, oi.ip, 

LINE 52
LEFT JOIN '._DB_PREFIX_.'oav_order_ip_log oi ON (oi.id_cart = a.id_cart) ';

line 66
'ip' => array('title' => $this->l('IP'), 'align' => 'center', 'width' => 85
),

 

 

Share this post


Link to post
Share on other sites
  • 2 months later...
  • 1 year later...
  • 4 months later...

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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More