Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 5 of 5

Thread: Exclude IP From Summary

  1. #1
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Question Exclude IP From Summary

    We were looking at the order reports, the summary. However it includes our actions. So when we process orders or add items to the basket for price inquiries. This throws off our stats.

    Is there anyway we can exclude our IP from the recording?

    Thanks in advance.
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    You'll have to modify the sql in the orders.aspx.cs file. Find the summary sql that executes when the summary radio button is checked and add
    Code:
    and LastIPAddress <> 'xxx.xxx.xxx.xxx'
    to it, where xxx.xxx.xxx.xxx is the IP address you want to filter out.
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  3. #3
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Default

    I have added this code to
    rpt_stats.aspx.cs
    for all of the queries (7 of them)
    C#/VB.NET Code:
    int NumCustomers DB.GetSqlN("select count(CustomerID) as N from customer   with (NOLOCK)  where " WhereClause.Replace("OrderDate""CreatedOn") + CommonLogic.IIF(AffiliateID.Length != 0" and affiliateid=" AffiliateID " and LastIPAddress <> '81.134.8.182'""")); 
    however I have had no luck it does not exclude our IP (81.134.8.182) I have tried the query in SQL and it works any ideas?

    Thanks in advance.
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience

  4. #4
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    That was meant for the orders.aspx.cs file (as mentioned in the post) for summary reports ran from the orders page. Which admin menu item are you running the reports from so I can tell you which files/queries you need to change?
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  5. #5
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Default

    It is the order > reports > summary stats.
    Where you see the statistics.

    I have ran the code in sql and it worked fine.
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience