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.
Anup Chaudhary
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
Thursday, December 3, 2015
Synaptic Package Manager For Ubuntu- Best GUI based package manager
If you are having problem with installing and uninstalling any package in Ubuntu and you are frequently used windows then "Synaptic Package Manage" will defienetly gonna help you.
I was having problem with wine installation, due to some reason it was not installing properly and even it was not uninstalling .But "Synaptic Package Manage" helps you to install or uninstall any package in Ubuntu.
Try it once-
Here is some information about it-
Synaptic is a GTK+-based graphical user interface for Advanced Packaging Tool (APT)—the Package management system used by Debian and its derivatives. Synaptic is usually used on systems based on deb packages but can also be used on systems based on RPM packages. It can be used to install, remove and upgrade software packages and to add repositories.
Features
- Install, remove, upgrade and downgrade single and multiple packages
- System-wide upgrade
- Package search utility
- Manage package repositories
- Find packages by name, description and several other attributes
- Select packages by status, section, name or a custom filter
- Sort packages by name, status, size or version
- Browse available online documentation related to a package
- Download the latest changelog of a package
- Lock packages to the current version
- Force the installation of a specific package version
- Undo/Redo of selections
- Built-in terminal emulator for the package manager
- Allows creation of download scripts (see Usage for more details)
- Configure packages through the debconf system
- Xapian-based fast search
- Get screenshots from screenshots.debian.net
Usage
The package manager enables the user to install, to upgrade or to remove software packages. To install or remove a package a user must search or navigate to the package, then mark it for installation or removal. Changes are not applied instantly; the user must first mark all changes and then apply them.Synaptic Screenshot-
Installation Steps in Ubuntu-
sudo apt-get update
sudo apt-get install synaptic
Thank You, if you like please make comment below.
Tuesday, December 1, 2015
Baxi- 'Bike as a Taxi Service', an on demand app- based service.
Gurgaon-based 74 BC Technologies Pvt Ltd, which will launch its bike-as-a-taxi service under the brand name “Baxi”, has raised about $1.5 Mn (INR 10 Cr.) in a seed round funding from friends and family.
The startup, will start its two wheeler taxi services from 1 December in Gurgaon. Baxi has already received the necessary permits from the government of Haryana.
The first set of bikes, with a contract carriage permit and operating with yellow number plates, will be flagged off by the Deputy Commissioner of Gurgaon, Sh TL Satyaprakash IAS, at 3 PM today (November 30), at the Mini Secretariat. Sh Sushil Sarwan, the RTA Secretary of Gurgaon will also be present at this occasion. Commercial operations of Baxis – the Bike Taxis, will start from Tuesday (1st December) morning, which is also the “Car Free Day” in Gurgaon.
Started by Ashutosh Johri and Manu Rana, Baxi will offer affordable last-mile connectivity to offices, colleges, schools and residential areas, from metro and bus stations. Baxis can be hailed directly from government allocated stands, or called to the customer’s location, anywhere in the city, using a mobile application that will be available on the Google Play store.
The company is taking a 360 degree approach to safety. Health and Hygiene is taken care of by providing hair nets to all the passengers to protect their hair while wearing helmets. Each bike comes with insurance policies where even the passengers are covered for accidents. An in-house Emergency Response Team is being set up, and there will be tie-ups with hospitals across the city.
As part of the Induction Process, the ‘buddies’ will be getting police verification, and ID cards will be provided to all of them. Buddy details will be furnished to the RTA, and the local police stations. They will be given training on defensive driving, soft skills and customer handling. Technology will also be used to monitor every buddy in real time, on parameters like speed, location, and safety. Every passenger is mapped to the buddy they are riding with, and they will both have SOS buttons on their mobile app.
Speaking on the development, Ashutosh Johri stated, “We did a large seed round as we did not want to start very small and risk an early death after doing the hard work for regulatory approvals. We got 25 of our college friends and former colleagues to invest into the venture. I believe that it is good karma that people who know us so closely trusted our capabilities enough to invest in Baxi.”
The Bike Taxi is looking to get over 500 Baxis in Gurgaon in the next 3 months. The startup also plans to penetrate deep in Haryana. Johri has estimated, said that Haryana has over 75,000 Autos, from his interactions with the Transport department, and expects that the state can easily accommodate at least 50,000 Baxis.
Besides, Johri is also confident to get similar permissions from 3 more states very soon. With this, Baxi plans to again raise a sizeable next round of investment in the $25 to $30 Mn range and has received commitment of 50% of this amount from its existing investors.
Two wheeler taxi services are already popular in many countries across the world, like New York, London, Paris, Indonesia, Thailand, Nigeria & Uganda. Baxi hopes to reach 500 bikes in Gurgaon in the next few months.
Just yesterday, in this space, M-TAXI, an on-demand app-based 2-Wheeler taxi service, had raised an undisclosed amount of angel funding led by Mandeep Singh and Jairaj Singh.
Sunday, November 29, 2015
Magento- Free Shipping For International Users
Hi EveryOne, here is the trick for giving free shipping when customer is out side from you country, Just follow below steps-
1. If You are using Magento Theme the goto- /app/design/frontend/yourtheme/default/template/tax/checkout/subtotal.phtml
2. Get Current 'Country Id' and 'Shipping Amount' , just put below code
$countryId=Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getData('country_id');
$shipamount=Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingAmount();
3.Find out if( $getModuleName.$getControllerName != 'checkoutcart' ){ *Code* }
4. Copy and Paste following code instead if( $getModuleName.$getControllerName != 'checkoutcart' ){ *Code* } this loop.
Note: Please mention your '$countryid' and '$subtotal' amount in below if block
if( $getModuleName.$getControllerName != 'checkoutcart' )
{
if ($countryId == 'US' || 'UK' && $subtotal >= 1000 )
{?>
<div class="disCount clearfix">
<div class="fRt">
<div class="clearfix discBlock">
<span>Discount- FREE SHIPPING</span>
<?php
$shipamount = round( $shipamount );
$grandtotal = $grandtotal - $shipamount;
?>
<span class="price">-<i class="WebRupee">Rs. </i><?php echo $shipamount; ?></span></div></div></div>
<?php
}?>
<span class="price"><?php echo $this->helper('checkout')->formatPrice($grandtotal); ?></span>
<?php
}
4. Clear the cache and run the code.
Simple...........
Thank You, If you have any queries post it below.
Monday, November 23, 2015
BigRock Offer
".Com" Domains at just Rs.79 - BigRock
Yes Its True, Now you can purchase domain Just at Rs. 79/- On Big Rock This is google offer, to avail this offer You must need to be new customer.
Follow the below link-
http://www.bigrock.in/special-deals-on-domains
Subscribe to:
Comments (Atom)

