Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default CEON URI rewrites preventing Paypal reporting sales

    Hi, I have 2 shops using the latest zencart, one with ceon url mapping and one without. The one without reports fine and I get order confirmations from my shop. The one using ceon does not report to the shop and although paypal takes the money I do not know what the customer has ordered.

    Having looked at various threads, I tried installing express checkout but when I click on the final checkout I am sent to my shops home page and not to paypal.

    Some threads seem to indicate that this all could be caused by the url rewriter and that some extra code should be put in the htaccess to overcome the problem, Is this the case and if so what do I need to put in the htaccess?

    Or could there another reason I am not getting the info?

    Please help this is very frustrating.

  2. #2
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default Re: Paypal not reporting sales to admin

    this is my htaccess

    RewriteEngine On

    # ONLY rewrite URIs beginning with /shop/
    RewriteCond %{REQUEST_URI} ^/shop/ [NC]
    # Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
    RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,5}$ [OR]
    RewriteCond %{REQUEST_URI} \.(html|htm|php)$ [NC]
    # Don't rewrite admin directory
    RewriteCond %{REQUEST_URI} !^/shop/myadminfolder [NC]
    # Don't rewrite editors directory
    RewriteCond %{REQUEST_URI} !^/shop/editors [NC]
    # Don't rewrite cPanel directories
    RewriteCond %{REQUEST_URI} !/cpanel [NC]
    RewriteCond %{REQUEST_URI} !/frontend [NC]
    # Handle all other URIs using Zen Cart (index.php)
    RewriteRule .* index.php?%{QUERY_STRING} [L]

  3. #3
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default Re: CEON URI rewrites preventing Paypal reporting sales

    Ok after 9 hours of trying to find an answer I have finally accomplished getting the orders into admin after having installed ceon url mapping.

    I have changed this line in the htacces

    RewriteCond %{REQUEST_URI} \.(html|htm|php)$ [NC]

    to this

    RewriteCond %{REQUEST_URI} \.(html|htm)$ [NC]

    i.e. I have removed the php referance from that line.

    Please tell me of any other consequences I may encounter by this action.

  4. #4
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: CEON URI rewrites preventing Paypal reporting sales

    Hi,

    Quote Originally Posted by Congerman View Post
    Ok after 9 hours of trying to find an answer I have finally accomplished getting the orders into admin after having installed ceon url mapping.
    I just found this thread by chance.. why didn't you just ask in the official support thread?

    You would have saved 8 and three quarters of those hours.. could have done some good volunteer work or something! Ah well! :)

    Quote Originally Posted by Congerman View Post
    i.e. I have removed the php referance from that line.
    Why did you put that line in in the first place? It's not a line recommended for use by or with the software.

    It's a pity, but whoever installed the software and added the RewriteRule to the .htaccess file messed up on you by having all URIs ending in .php wrongly handled by Zen Cart.

    Quote Originally Posted by Congerman View Post
    Please tell me of any other consequences I may encounter by this action.
    The line shouldn't have been there in the first place.

    It lets you have mappings which end in .htm .html or .php.. the only reason you'd ever want that is if you were trying to map previous URIs that ended in those extensions or if you wanted your URIs to end with those extensions.. which is not recommended, there is no good reason to include the technology in a URI anymore.

    I'd take the entire line out, as well as the [OR] on the previous line.

    Also, make sure you update to the latest version when it's out shortly, 4.0.3.

    All the best...

    Conor
    ceon

  5. #5
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default Re: CEON URI rewrites preventing Paypal reporting sales

    Thanks for that

    I am sure I got the code for the htaccess from the installation guide

    Just checked and in the customisation section of the ceon instructions there is this

    For example, to allow the mapping of URIs ending in “.html”, “.htm” and “.php”, the following RewriteCond from the example rule should be changed from:

    RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,5}$

    to:

    RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,5}$ [OR]
    RewriteCond %{REQUEST_URI} \.(html|htm|php)$ [NC]


    I thought it would be ok as it was in the instructions

    Thanks for the input and sorry for delay in replying

  6. #6
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: CEON URI rewrites preventing Paypal reporting sales

    Hi,

    Quote Originally Posted by Congerman View Post
    I thought it would be ok as it was in the instructions
    No, those instructions were for people who wanted to customise the rule for very specific circumstances.. the customisations are, as you've found, incompatible with the PayPal module.

    Quote Originally Posted by Congerman View Post
    Thanks for the input and sorry for delay in replying
    No problem whatsoever, I appreciate you replying and letting me know my response (time) was itself appreciated.. thanks :)

    All the best..

    Conor
    ceon

 

 

Similar Threads

  1. 151 Paypal express 404 error using CEON URI Mapping
    By Jewm in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 29 Jul 2014, 01:36 PM
  2. v139d Ceon uri mapping, how to generate uri mapping for bulk bulk-imported products?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 8 Jan 2013, 06:52 AM
  3. Ceon URI Mapping v4
    By conor in forum All Other Contributions/Addons
    Replies: 110
    Last Post: 14 Aug 2011, 02:51 PM
  4. Sales Reporting via affiliate tracking vs PayPal info?
    By Renz in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 18 Jun 2010, 07:12 AM
  5. Paypal orders not being logged in my 1.3.8 after installing ceon uri mapping
    By catach in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 29 Apr 2010, 07:07 PM

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