I have a problem where we are using Magento, IWD onepagecheckout and PayPal Express. The problem is it seems to send the shipping address rather than the default address when going through to Paypal.

It seems to be a standard problem but I can't seem to find a fix.

Tried altering firstline in cart.php to (but just caused error): $this->_salesEntity->getBillingAddress() : $this->_salesEntity->getBillingAddress();

            $this->_salesEntity->getBillingAddress() : $this->_salesEntity->getShippingAddress();
        $shippingDescription = $address->getShippingDescription();
        $this->_totals = array (
            self::TOTAL_SUBTOTAL => $this->_salesEntity->getBaseSubtotal(),
            self::TOTAL_TAX      => $address->getBaseTaxAmount(),
            self::TOTAL_SHIPPING => $address->getBaseShippingAmount(),
            self::TOTAL_DISCOUNT => abs($address->getBaseDiscountAmount()),

Found the answer!! See below: -

find app/code/core/Mage/Paypal/Model/Standard.php


$address = $isOrderVirtual ? $order->getBillingAddress() : $order->getShippingAddress();
if ($isOrderVirtual) {
} elseif ($address->validate()) {


$address =$order->getBillingAddress();
if ($address->validate())
| improve this answer | |
  • Do not change in magento core files. Move this file to local codePool or override it – Rohit Kundale Mar 21 '16 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.