In my module, I want to know when the user had entered their billing and shipping information. I have two events that I listen for:
controller_action_postdispatch_checkout_onepage_saveBilling
controller_action_postdispatch_checkout_onepage_saveShipping
When going through the Magento one page checkout, the billing stage has a checkbox "Ship to this address". If you check this box, the shipping address entry stage is skipped and the controller_action_postdispatch_checkout_onepage_saveShipping event does not fire.
Is there a way that my observer of the controller_action_postdispatch_checkout_onepage_saveBilling event can determine whether the user checked that box or not?
Thank you
rather simple to ask it directly from shipping address object
$quote->getShippingAddress()->getSameAsBilling();
Related
I've a Magento website that I'm using for some tests and I need to setup an easy payment method that can make me able to buy something without any risk to get real payment from random users but I also need to register this order with a "complete" status immediately (I've also another add-on that will export complete orders to an external platform but only if they're completed).
I was thinking to use the "Check / Money Order" but there is only one option configurable from "System/Configuration/Payment Methods" and it's the "Pending" status.
I'm quite new with Magento so, is there any easy method to change that status and register automatically the Order as Complete also if using the Payment method? If not, there is the possibility to enable another payment method without any Credit Cards, CC, Bank transfert,... option??
Thanks a lot!
Cheers
Francesco
I'm trying to set up FedEx shipping on my Magento cart 1.7.0.2, and I have entered all the information, such as the weight of the product, my own shipping address, as well as all the information I have received from Fedex.com/developer (KEY, Meter #, ID and Pass), but I can't seem to view FedEx as an option during checkout.
I've had a look at other threads, but I can't seem to find a solution to my issue.
Also, should my postal code also be A3B 2C1, or A3B2C1 (without a space between)?
You should probably double check to make sure that your FedEx account is able to submit international shipments.
I have run into this before, though I can't recall if it was FedEx or UPS.
It will also be helpful for you to turn on "Debug Mode" which will generate a log of the shipment request/response under /var/log/.
I'm looking into integrating Google Checkout into our website. At the checkout stage of our website we calculate the delivery cost based on where they are shipping to, however it appears to me that the user could change the shipping address once they reach Google Checkout i.e the user could indicate on our website that they want it shipped down the road, and then at Google Checkout indicate they want it shipped to Australia!
Is there anyway of passing a shipping address across to Google Checkout, and then prevent the user from changing that address? Failing that, is it at minimum possible to pass the shipping address to GC?
Consider using "merchant-calculated shipping".
Merchant-calculated shipping allows you to wait until the buyer selects the shipping address for an order before you determine the availability and cost of different shipping options for that order.
You must provide a callback URL and Google Checkout will call you back with the final shipping address and request from you the available shipping methods and costs.
More info in this doc:
http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Merchant_Calculated_Shipping.html
If the order has been placed by this time, you should be OK - from http://checkout.google.com/support/bin/answer.py?hl=en&answer=99746
You may add shipping addresses to your
account or revise them at any time.
Changes cannot be applied to existing
orders; you will need to contact the
seller to request shipping address
updates
And
Any changes you make to your shipping
address are not retroactive -- Once
the order is placed, any changes to
the order must be applied by the
seller. Contact the seller directly
with your request
often when customers complete and pay their order in our store, the order is set to processing but with the amount due still equal to the grand total and amount paid equal to zero. From the magento backend I can then create an invoice and capture the payment online, which solves this issue. Now I would like to do this automatically. Can anybody help me out with the coding?
I do succeed in creating the invoice, but I cannot find the right function to capture the payment.
I'm not sure which payment method you have enabled, but it seems that you have to update your settings, and as example I will use Authorize.net.
If you go to Admin -> System -> Configuration -> Payment Methods -> Authorize.net, you will see it's settings, and one of this settings is "Payment Action" with two options:
Authorize Only
Authorize and Capture
If the first option is selected, than Magento will not capture the order amount, but will check if there's enough funds on customer's Credit Card.
If the first option is selected, than Magento will check for available funds, and will capture order amount from customer's Credit Card.
PayPal has a similar options, and Here is the related forum topic.
By default, Magento sends out a confirmation email (to the user) after a user subscribes to the newsletter. Is it possible to change the email address to which the confirmation is sent?
Thanks
Refer to my answer to your question about changing the action path of the subscribe.phtml file. If you override the newAction in subscriberController.php, you will be able to add in all your extra requirements, such as emailing the store admin, changing the information in the outgoing email, etc.
There is a detailed walkthrough on the Magento wiki on how to configure Magento to use your custom controller instead of the core. This is best practice as it means that future patches/upgrades from Magento shouldn't break your customization.