-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Description
Title
Paypal "Display buttons on shopping cart" doesn't work for shippable itemsEnvironment
Application: nopCommerce
Plugin: Paypal Commerce 4.80.17
Browser: Chrome 144.0.7559.133 (Windows 11)
Build/Version: 4.80.6Preconditions
- Only one shipping provider is configured(Shipping.FixedByWeightByTotal)
- Only one shipping option is configured
- Paypal Commerce has been configured with the option "Display buttons on shopping cart" enabled
- One product that requires shipping has been setup in the store
High level description of issues:
- Guest users with no shipping address receive an error when clicking Paypal on the the cart page
- Logged in users in a fresh session who have not proceeded to the checkout pages and selected an address also receive an error.
Steps to Reproduce
- Access the site as a guest user(or as a logged in user with no previous cart)
- Add a product to the cart that requires shipping
- Proceed to to the cart page
- Click the paypal button
Expected Result (This one is difficult on what the intention should be)
- Ideally, user should be able to proceed to Paypal to continue with their purchase
- Alternatively, user should be asked to select an address before proceeding to paypal
- Least preferable, paypal buttons should not display if the state of the user doesn't allow them to checkout
Actual Result
- An error is displayed to the user on the frontend: "Expected an order id to be passed"
- Error logged in the backend: Payments.PayPalCommerce error: No available shipping options
Nop.Core.NopException: No available shipping options
at Nop.Plugin.Payments.PayPalCommerce.Services.PayPalCommerceServiceManager.PrepareShippingDetailsAsync(CartDetails details, String selectedOptionId, Boolean isApplePay)
at Nop.Plugin.Payments.PayPalCommerce.Services.PayPalCommerceServiceManager.<>c__DisplayClass68_0.<b__0>d.MoveNext()Impact
- The option to Display buttons on shopping cart is misleading if it only works for non shippable products
- There isn't an option to force a user to select an address before clicking the Paypal button
- Affects user browsing / purchasing experience
Severity
MediumPriority
MediumNotes / Attachments:
If you estimate shipping before clicking the paypal button this allows you to proceed through