Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2015
    Posts
    169
    Plugin Contributions
    0

    Default logging how customers placed their orders with phone or laptop

    I was curious if there is a way to record or log how customers are placing their orders. Our website is responsive. I would just like to see if they used their phone or used a regular laptop. Thanks.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: logging how customers placed their orders with phone or laptop

    Quote Originally Posted by travbacon View Post
    I was curious if there is a way to record or log how customers are placing their orders. Our website is responsive. I would just like to see if they used their phone or used a regular laptop. Thanks.
    Suggest using a tool such as google analytics or one of the other SE tools that provide similar data. Otherwise more than likely have to comb the access logs.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: logging how customers placed their orders with phone or laptop

    Posted for informational purposes only. Most people don't need to know this. The OP probably does tough. :)

    Quote Originally Posted by mc12345678 View Post
    Suggest using a tool such as google analytics
    Agreed.

    Quote Originally Posted by mc12345678 View Post
    or one of the other SE tools that provide similar data.
    I'd agree with this too, if you didn't specify 'SE' <g>

    Quote Originally Posted by mc12345678 View Post
    Otherwise more than likely have to comb the access logs.
    This one I can't agree to - and here's why..... The type of device being used, or the screen size/resolution of the device can't be determined by the Server because this information simply isn't sent to the server, therefore, there isn't going to be anything in the access logs to find.

    It is *possible* that the 'User-Agent' header *may* provide a clue as to the device, and in some cases they'll even provide the make and module of the device, but these headers are browser dependent (rather than device dependent), and they are easily manipulated by the end user, which makes this form of device detection very unreliable at best.

    This is also why 'responsive templates' don't (generally) utilise the User-Agent field to 'do their thing', and rely on .css instead.

    The Google Analytics (and similar tools), and modern responsive template designs overcome this problem by doing their stuff *client side* rather then server side. The clients' (the customers computer browser) creates and has access to a "Document Object Model" (aka DOM), which contains the info needed and a whole lot more.

    Simple explanations about DOM can be found here:
    http://www.w3.org/TR/DOM-Level-2-Core/introduction.html
    https://css-tricks.com/dom/

    This important thing for the OP to know is that the information needed is only available to the client itself, so to record this data there needs to be a method for the client to send this information back to the server or on to another server (eg: Google) where it can be stored, sorted and correlated. This is almost always done via an AJAX call, which in itself isn't too difficult to do, BUT if the OP wishes to store/correlate on their own server, they'd need to create the server code to handle the AJAX requests, and even more code to display the results somewhere/somehow. Again, this isn't *too* difficult, but since Google already have servers set up to handle all of this stuff, and a whole lot more, trying to replicate that 'in house' is a LOT of work, for little to no benefit, so in this basis, any of the Google Analytics modules is really the only practical way to achieve the aim.

    Although I'm biased
    https://www.zen-cart.com/downloads.php?do=file&id=1997 is probably the simplest/easiest of the available modules to install that will achieve the OP's requirements.

    Cheers
    RodG

 

 

Similar Threads

  1. v151 adding in orders placed by phone
    By jimmie in forum Managing Customers and Orders
    Replies: 6
    Last Post: 12 Jun 2013, 09:28 AM
  2. Replies: 3
    Last Post: 24 Oct 2008, 10:57 PM
  3. Orders placed with blank shipping/phone/email
    By kitkendall in forum General Questions
    Replies: 3
    Last Post: 18 Feb 2008, 06:12 AM
  4. Orders placed on the previous customers log in
    By gkstep in forum Managing Customers and Orders
    Replies: 12
    Last Post: 20 Nov 2007, 05:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg