Magento Set Express PayPal, click on the Product detail page or shopping cart page
Direct jump to the PayPal checkout page when there is no related shipping costs, and the normal checkout process freight calculation is no problem.
In the default mode of transport flat rate, you can override the method (module rewrite yourself to handle LOL):
app/code/core/mage/paypal/model/express/checkout.php @function Returnfrompaypal
In
The code is as follows |
Copy Code |
if ($this->_api->getshippingratecode ()) { if ($code = $this->_matchshippingmethodcode ($shippingAddress, $this->_api->getshippingratecode ())) { Possible bug of double collecting rates:-/ $shippingAddress->setshippingmethod ($code)->setcollectshippingrates (true); } } |
Then add:
The code is as follows |
Copy Code |
if (empty ($code)) { $code = ' flatrate_flatrate '; $shippingAddress->setshippingmethod ($code)->setcollectshippingrates (true); } |
$code values can be changed to their preferred default mode of transport.
Tip, if a friend can have a better solution can leave a message to me.