We have been experiencing a bug with PayPal
sending a order cancelled message to Magento
, then sending a order paid message. But because Magento got the cancelled message it cancels the order (and ignores the paid message). It was happening very rarely but it happened twice in the last week. A few people seem to have the same issue on the magento forms with one (only) solution was to ingorre PayPal
cancel message using the code (in the index.php file):
if (strpos($_SERVER["REQUEST_URI"], '/paypal/standard/cancel') !== false) {
header("Location: http://<your customer gets redirected here>");
die();
}
But we have 2 website running on our Magento
( different domains), can I get it to return the homepage (base url
) of the site the user is/was, using (so the get returned to the correct homepage?