Hi everyone,
I was stuck here for some time, every time when user paid through paypal the order confirmation email not being send to the user This is very conman problem with Magento and just wanted to share the solution with you And I already tried multiple solution but it didn't work for me-
Let me give some idea why it is not working-
As I am from India I wanted to show all product's prices in Rs(Indian Currency), So for paypal I need to convert it to US. I did this with some trick you can see in my previous blog.
Ok. Now when use pays through the request send in US dollar only but response comes in Rs. For example if order is of Rs 2000/- then the request should be Paypal i.e $29.866. But On successful payment the response comes to magento is Rs29.866(Yes its Rs) only not Rs 2000/- So Magento detect this as Fraud Payment and it simply not send email to customer. Here is the Code which will solve your issue.
You need to add some code in
app/design/frontend/base/default/template/checkout/success.phtml
<?php
$order = Mage::getModel('sales/order');
$customer = Mage::getSingleton('customer/session')->getCustomer();
$incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
$order = Mage::getModel('sales/order')->loadByIncrementId($incrementId);
$countryCode = $order->getShippingAddress()->getCountry();
if($countryCode!='IN')
{
if($order['status']=='payment_complete')
{
try
{
$order->sendNewOrderEmail();
}
catch (Exception $ex)
{
echo "Email Not Sent...";
}
$customer = Mage::getSingleton('customer/session')->getCustomer();
$email = $customer->getEmail();//End Email Sending
}
}?>
its Done Here!!!!
Let me know your comment on this if you like the article.
Technology gives us power, but it does not and cannot tell us how to use that power. Thanks to technology, we can instantly communicate across the world, but it still doesn't help us know what to say.
Saturday, June 11, 2016
Wednesday, March 9, 2016
Trick & Script To Buy Xaiomi Redmi Note 3 (Latest Updated 9 March)
I have tried it and got my one on very first flash sale from amazon.in- Just Follow Below Step To Get Your One.
1. Open Chrome Browser
2. Open this link-http://amzn.to/1p6hkEP and apply the script
3. Right click and select Inspect Element.
4. Click on Console Copy Script of your choice from below and paste it in console and hits enter.
Gold 32gb-
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
setInterval(function(){ jQuery("button:eq(0)").trigger('click'); console.log(' Working... '); },10);
Silver 16gb
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
setInterval(function(){ jQuery("button:eq(1)").trigger('click'); console.log(' Working... '); },10);
Gold 16gb
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
setInterval(function(){ jQuery("button:eq(2)").trigger('click'); console.log(' Working... '); },10);
Dark grey 16gb
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
setInterval(function(){ jQuery("button:eq(3)").trigger('click'); console.log(' Working... '); },10);
Tuesday, January 5, 2016
Reasons Why Not To Support FreeBasics By Facebook???!!!
What Facebook won't tell you about FreeBasics
The top 10 facts about FreeBasics
- There are other successful models (this, this, this)
for providing free Internet access to people, without giving a
competitive advantage to Facebook. Free Basics is the worst of our
options.
- Facebook doesn’t pay for Free Basics, telecom operators do. Where
do they make money from? From users who pay. By encouraging people to
choose Free Basics, Facebook reduces the propensity to bring down data
costs for paid Internet access.
- Free Basics isn’t about bringing people online. It’s about
keeping Facebook and its partners free, while everything else remains
paid. Users who pay for Internet access can still access Free Basics for
free, giving Facebook and its partners an advantage. Free Basics is a
violation of Net Neutrality
- Internet access is growing rapidly in India. We’ve added 100
million users in 2015. Almost all the connections added in India the
last 1 year are NOT because of Free Basics.
- Free Basics is not an open platform. Facebook defines the
technical guidelines for Free Basics, and reserves the right to change
them. They reserve the right to reject applicants, who are forced to
comply with Facebook’s terms. In contrast they support ‘permissionless
innovation’ in the US.
- The only source of info on Facebook’s Free Basics is Facebook,
and it misleads people. Facebook was criticised in Brazil for misleading
advertising. (source)
Their communication in India is misleading. People find the “Free” part
of Free Basics advertising from Facebook (or FreeNet free Internet)
from Reliance misleading. (source)
- Facebook gets access to all the usage data and usage patterns of
all the sites on Free Basics. No website which wants to compete with
Facebook will partner with them because it will have to give them user
data. Facebook gives data to the NSA (source) and this is a security issue for India.
- Research has shown that people prefer to use the open web for a shorter duration over a limited set of sites for a longer duration. (source)
- Facebook says that Free Basics doesn’t have ads, but does not say that it will never have ads on Free Basics.
- Facebook has shown people as saying that they support Free Basics when they haven’t. They may claim 3.2 million in support, but how many of those mails are legitimate?
How you can help
- Click here to ask the TRAI to investigate Facebook’s submissions for authenticity.
- Click here to send an email to TRAI in support of Net Neutrality
- Click here to mail your MP to support Net Neutrality.
Source- savetheinternet.in
Subscribe to:
Comments (Atom)