Web Design Forum: Magento checkout and shipping - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Magento checkout and shipping How to make sure your customers select shipping! Rate Topic: -----

#1 User is offline   McGarryMA 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 54
  • Joined: 13-September 08
  • Reputation: 6
  • Gender:Male
  • Location:Leeds
  • Experience:Advanced
  • Area of Expertise:Designer

Posted 03 October 2011 - 10:38 PM

HI I've been made to feel pretty stupid in the Magento forum with comments like what planet are you from...and this has been answered a thousand times....but quite frankly the magento forum is now so big that it takes hours to narrow down your problem and as for a support forum 90% is moronic riduculing of new users and mindless exchanges of pleasentries with no actual support!

I need help... I have a store that requires express checkout as well as the standard magento checkout... however using the express checkout bypasses the add shipping option in the cart which means a user can freely navigate to paypal without adding a shipping value to their order. Has anyone got any experience with Magento that they would gladly share without questioning my orgins of birth!

Thanks Martin
0

#2 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,590
  • Joined: 12-August 10
  • Reputation: 558
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 04 October 2011 - 09:52 AM

...this is why I love Magento - if there's a problem with core, you don't have to hack it with changes that would be overwritten by an update, and you can override anything.

Your problem is with Mage_Paypal_Model_Express_Checkout - you need to override it safely so your changes are not overwritten by a core update.

Once you've got it running from app/code/local instead of app/code/core, you can then edit your version like so:

public function returnFromPaypal($token)
{
        // Copy the rest of the function as it stands, just add these two lines at the end:

        $this->_quote->getShippingAddress()->setCollectShippingRates(true);
        $this->_quote->collectTotals()->save();
}

This post has been edited by Renaissance-Design: 04 October 2011 - 10:02 AM

1

#3 User is offline   Dx3webs 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 156
  • Joined: 07-August 10
  • Reputation: 9

Posted 07 October 2011 - 07:37 PM

got to love magento
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users