Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,677
    Plugin Contributions
    123

    Default Plugin for Tracking mobile orders in 1.5.5

    The Order Origin mod is now available in the Plugins area to help you determine which of your orders came from a mobile device.

    https://www.zen-cart.com/downloads.php?do=file&id=2073
    Last edited by swguy; 2 May 2016 at 02:48 AM.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    May 2004
    Location
    UK
    Posts
    478
    Plugin Contributions
    0

    Default Re: Tracking mobile orders in 1.5.5

    Hi Scott

    Can I please ask - just installed the module but no M's showing up - will it only work now when new mobile orders come in. as I presume the data was not collected before that?

    Are we able to back-track-it at all? even if its manually updating it - is there anywhere in DB that does show which were mobile orders?

    Thank you

    Installed on 1.5.4 did it line by line but other than nothing showing works fine :)

    Thanks
    Sarah

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,677
    Plugin Contributions
    123

    Default Re: Tracking mobile orders in 1.5.5

    Sarah, you are correct, it is for new orders only.
    You can certainly update older orders but there's no admin interface; you'd need to use PHPMyAdmin or Install SQL Patches and do an update there.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    May 2004
    Location
    UK
    Posts
    478
    Plugin Contributions
    0

    Default Re: Tracking mobile orders in 1.5.5

    Thanks Scott - are you able to tell me where that data is stored in the MySQL database so I can start pulling it out??

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: Tracking mobile orders in 1.5.5

    it's an interesting bit of information.

    as far as updating old orders, its seems the MobileDetect class is far more sophisticated that a simple sql string. but the following sql update could do all of the old orders.

    as always with sql statements, use at your own peril, comes with no guarantees/warranties, etc.

    Code:
    update orders
    set mobile_order = 1
    where ord_user_agent REGEXP 'iPhone|iPad|Android|Blackberry'
    someone else may want to chime in as i think that sql statement covers most of the mobile devices.

    good luck.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    May 2004
    Location
    UK
    Posts
    478
    Plugin Contributions
    0

    Default Re: Tracking mobile orders in 1.5.5

    Quote Originally Posted by carlwhat View Post
    it's an interesting bit of information.

    as far as updating old orders, its seems the MobileDetect class is far more sophisticated that a simple sql string. but the following sql update could do all of the old orders.

    as always with sql statements, use at your own peril, comes with no guarantees/warranties, etc.

    Code:
    update orders
    set mobile_order = 1
    where ord_user_agent REGEXP 'iPhone|iPad|Android|Blackberry'
    someone else may want to chime in as i think that sql statement covers most of the mobile devices.

    good luck.
    Thanks Carl - if nothing else that does tell me what table I am looking in anyway - and yes will test - at my own risk etc etc - much appreciated!

  7. #7
    Join Date
    May 2004
    Location
    UK
    Posts
    478
    Plugin Contributions
    0

    Default Re: Tracking mobile orders in 1.5.5

    hmm ok I cannot find anything that matches that - where are you looking for that ord_user_agent .. ?

  8. #8
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: Tracking mobile orders in 1.5.5

    sarah,
    i APOLOGIZE!

    i'm trying to reconstruct what i did. i think at some point, i saw the user_agent in the whos on-line page, and i then modified the create function within the order class with the following line:

    Code:
    'ord_user_agent' => substr(zen_db_prepare_input($_SERVER['HTTP_USER_AGENT']), 0, 254)
    which now stores that information in the order table. (i modified the orders table using an sql statement to add this extra field.) i have not been doing anything with it, but i have stored it! which i suppose for me makes this plugin a little superfluous. although i am unclear if my regular expression search is more definitive than the mobile detect class.

    in looking at the order table, i'm not sure there is anything else stored there that will indicate mobile or not. nor am i seeing an other table where one could gather this information. although it "might" be there.

    given that information, i am not sure one could reconstruct mobile or not for older orders.

    again, i apologize for leading you a bit astray!

    best.

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,677
    Plugin Contributions
    123

    Default Re: Tracking mobile orders in 1.5.5

    @SarahL you would have to know which orders were placed by mobile - there's no way to determine this after the fact. But if you know you can set the mobile_order in a SQL statement.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #10
    Join Date
    May 2004
    Location
    UK
    Posts
    478
    Plugin Contributions
    0

    Default Re: Tracking mobile orders in 1.5.5

    Quote Originally Posted by swguy View Post
    @SarahL you would have to know which orders were placed by mobile - there's no way to determine this after the fact. But if you know you can set the mobile_order in a SQL statement.
    thanks both - I think then this module is not for me as I don't log that information - I thought that was what the plugin did you see ! sorry

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 12 Sep 2016, 07:17 PM
  2. Is there a way to access tracking info, for UPS orders?
    By tcarden in forum Addon Shipping Modules
    Replies: 2
    Last Post: 24 Dec 2013, 01:15 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR