Post by kgkaraoke » Fri Jun 22, 2012 5:23 am

ryenoceros wrote:I am using opencart 1.5.1.3 and experiencing a problem with the IPN from paypal standard.
The Notification URL I am seeing in paypal is http://www.MYDOMAIN.com/payment/pp_standard/callback
PayPal is processing the payment - so I received that notification, but the orders are being marked as
All incoming orders are being marked as 'abandoned orders' and are not sending the proper email notifications to the client and the admin.

There is a 404 on the paypal IPN page.

I have seen that many others have this similar issue. Has anyone solved it?
I hope so.
Thanks in advance!
YES. You can download "All Clean URLs" and copy it to the vqmod/xml/ folder.

Here's the code for this free application, and you can copy it here, paste it into a text file that you'll need to rename blahblah.xml (blahblah or whatever, it doesn't matter). Then copy the new xml file into the vqmod/xml/ folder and you'll be all set.

Code: Select all

<modification>
        <id>Clean Urls</id>
        <version>1.0.7</version>
        <vqmver>2.1</vqmver>
        <author>Werner van Run - beoptimized.nl</author>
        <file name="catalog/controller/common/seo_url.php">
                <operation>
                        <search position="after"><![CDATA[
                        $parts = explode('/', $this->request->get['_route_']);
                        ]]>
                        </search>
                        <add><![CDATA[
                        $this_route = $parts;
                        $this_route_multistore = $parts;
                        array_shift($this_route_multistore);
                        ]]></add>
                </operation>
                <operation>
                        <search position="replace"><![CDATA[
                        $this->request->get['route'] = 'error/not_found';
                        ]]>
                        </search>
                        <add><![CDATA[
                        if (is_file(DIR_APPLICATION . 'controller/' . implode("/", $this_route) . '.php'))  {
                        $this->request->get['route'] = implode("/", $this_route);
                        break;
                        } elseif (is_file(DIR_APPLICATION . 'controller/' . implode("/", $this_route_multistore) . '.php'))  {
                        $this->request->get['route'] = implode("/", $this_route_multistore);
                        break;
                        } else {
                        $this->request->get['route'] = 'error/not_found';
                        array_pop($this_route);
                        array_pop($this_route_multistore);
                        }
                        ]]></add>
                </operation>
                <operation>
                        <search position="replace" index="1" offset="8"><![CDATA[if (isset($this->request->get['product_id'])) {]]></search>
                        <add><![CDATA[
                        if (preg_match("/information\//", $this->request->get['_route_'])) {
				$this->request->get['route'] = $this->request->get['_route_'];
			} elseif (isset($this->request->get['information_id'])) {
				$this->request->get['route'] = 'information/information';
			} elseif (preg_match("/checkout\//", $this->request->get['_route_'])) {
				$this->request->get['route'] = $this->request->get['_route_'];
			} elseif (preg_match("/payment\//", $this->request->get['_route_'])) {
				$this->request->get['route'] = $this->request->get['_route_'];
			} elseif (preg_match("/feed\//", $this->request->get['_route_'])) {
				$this->request->get['route'] = $this->request->get['_route_'];
			} elseif (preg_match("/affiliate\//", $this->request->get['_route_'])) {
				$this->request->get['route'] = $this->request->get['_route_'];
			} elseif (preg_match("/account\//", $this->request->get['_route_'])) {
				$this->request->get['route'] = $this->request->get['_route_'];
			} elseif (preg_match("/total\//", $this->request->get['_route_'])) {
				$this->request->get['route'] = $this->request->get['_route_'];
			} elseif (isset($this->request->get['product_id'])) {
				$this->request->get['route'] = 'product/product';
			} elseif (isset($this->request->get['path'])) {
				$this->request->get['route'] = 'product/category';
			} elseif (isset($this->request->get['manufacturer_id'])) {
				$this->request->get['route'] = 'product/manufacturer/product';
			}
			]]></add>
                </operation>
                <operation>
                        <search position="replace" index="1"><![CDATA[
                        return $link;
                        ]]>
                        </search>
                        <add><![CDATA[
                        return preg_replace("/(index\.php\?route=|common\/home)/", "", $link);
                        ]]></add>
                </operation>
        </file>
</modification>

New member

Posts

Joined
Fri Oct 29, 2010 9:06 am

Post by sweetmolds » Sat Sep 22, 2012 6:06 am

Just reading this now for the first time and I have the same issue. Does this fix the abandoned orders issue? The issues do not seem related at all. I don't understand how a file with a random name in the xml folder is going to accomplish this fix. Can someone please help / explain? Thanks.

Newbie

Posts

Joined
Wed Sep 12, 2012 7:51 am

Post by olstar » Thu Dec 06, 2012 8:51 pm

This is starting to really annoy me.

I have OC 1.5.4 and stock paypal standard module.

Place order, take me to paypal, takes money, feeds back to the site, "Thanks for your order"

However in the back end, the order is set to abandoned.

Ive tried a multitude of these fixes and i just get back to the site to a "The page you requested could not be found..." error...

Can someone package me up a working paypal module for 1.5.4 please?

Im trying the 1.5.4.1 paypal module.. will post results! ??? :-\

Professional UK Based eCommerce - Our Free Opencart Mods - Our Premium Opencart Mods
Kashflow Integration


User avatar
New member

Posts

Joined
Tue Jul 05, 2011 3:53 pm


Post by olstar » Thu Dec 06, 2012 8:56 pm

It wasnt a problem with the module... but amazingly using the 1.5.4.1 module makes it work again... ::)

Whooodathunkit?

Professional UK Based eCommerce - Our Free Opencart Mods - Our Premium Opencart Mods
Kashflow Integration


User avatar
New member

Posts

Joined
Tue Jul 05, 2011 3:53 pm


Post by josiahgarber » Fri Mar 29, 2013 1:41 am

I had 1.5.4 and upgraded (upload and overwrite the old one) the pp_standard.php to 1.5.4.1 and it fixed all my problems with paypal. I am running the seo urls. Thanks for the help.

New member

Posts

Joined
Mon Sep 24, 2012 10:31 pm
Who is online

Users browsing this forum: No registered users and 13 guests