Please delete this, somehow I created it twice
-
Hello again,
I believe that polylang permalinks mess up with Paypal IPN response in Woocommerce.
I’ve configured 3 languages, English, Spanish and Italian. en_GB , es_ES, it_IT.
I setup correctly everything but the IPN from paypal never reaches the IPN listener in woocommerce, thus order are always in payment pending status.
After a log debugging I solved changing manually on the woocommerce.php core file the api_request_url function, but is a very bad idea to leave it like this. Now it works but I ignore the impact that can have in other parts and every upgrade it will be overwritten.
Could you please have a look and address this issue in a permanent way?
This is what I change to solve, the commented lines are the original and my change is just inserting “en/” between “/index.php/” and “wc-api/”
Also have a look here
https://stackoverflow.com/questions/34675064/payment-gateway-adding-language-url-wordpress-polylang-woocommerce/34676747#34676747Here the screenshot of what I modified to make it work.
https://snag.gy/7ytne.jpgThank you in advance
Cheers
My configuration:
Wordpress 4.4.1polylang 1.7.12 latest version
Permalink settings: Custom – https://localhost/index.php/%year%/%monthnum%/%day%/%postname%/
I use a static front page
Default language: English
URL modifications: The language is set from the directory name in pretty permalinks Example: https://localhost/en/my-post/
Remove /language/ in pretty permalinks Example: https://localhost/en/
Detect browser language v When the front page is visited, set the language according to the browser preference
Media v Activate languages and translations for media
Custom post types v Portfolio Items Activate languages and translations for custom post types.
Custom taxonomies and Synchronization all checkedWoocommerce version 2.4.12
- The topic ‘Please delete this, somehow I created it twice’ is closed to new replies.