We will be doing some site maintenance and need to take the site down for 10 minutes.

Site will go down at 19:00 UTC

Forums / All Other Contributions/Addons / CEON URI rewrites preventing Paypal reporting sales

CEON URI rewrites preventing Paypal reporting sales

Started by congerman on 10 Aug 2011, 11:30 AM · Views: 1,072

Results 1 to 6 of 6
10 Aug 2011, 11:30 AM
#1
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

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.

10 Aug 2011, 3:09 PM
#2
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: CEON URI rewrites preventing Paypal reporting sales

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]

10 Aug 2011, 6:36 PM
#3
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

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.

12 Aug 2011, 11:08 PM
#4
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: CEON URI rewrites preventing Paypal reporting sales

Hi,

Congerman:

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! :)

Congerman:

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.

Congerman:

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

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

16 Aug 2011, 11:01 AM
#5
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

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

16 Aug 2011, 3:53 PM
#6
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: CEON URI rewrites preventing Paypal reporting sales

Hi,

Congerman:

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.

Congerman:

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

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.