2

I want to show only shipping title not shipping code in Paypal express checkout in Magento2.
enter image description here

  • did you solve it? – fmsthird Apr 12 '19 at 7:26
  • 1
    Yes I solved it now! see screen shot in my answer shipping code not showing – Jugal Kishor Apr 12 '19 at 7:27
1

You can prevent the shipping options from showing up in Paypal Express by doing some settings in the Magento Admin:

Go to Paypal Express Checkout Advance Setting

enter image description here

Set Transfer Shipping Options to No

I hope this will help

| improve this answer | |
  • I want transfer shipping option with name and price but without shipping code? – Jugal Kishor Apr 12 '19 at 7:14
1

Go to

/vendor/magento/module-paypal/Model/Express/Checkout.php

line no. 984

and comment 'code' => $rate->getCode(),

$options[$i] = new \Magento\Framework\DataObject(
[
 'is_default' => $isDefault,
 'name' => trim("{$rate->getCarrierTitle()} - {$rate->getMethodTitle()}", ' -'),
 /*'code' => $rate->getCode(),*/
 'amount' => $amountExclTax,
]
);

enter image description here

| improve this answer | |

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.