New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 728173 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Don't show shipping option section if there're no shipping options to display

Project Member Reported by rouslan@chromium.org, May 31 2017

Issue description

URLs (if applicable) : https://emerald-eon.appspot.com/

What steps will reproduce the problem?
1. Click "Demo" on https://emerald-eon.appspot.com/.

What is the expected result?
Shipping option section should be absent, because there're no shipping options.

What happens instead of that?
Shipping option section is displayed without any shipping options.
 
Screenshot_20170531-110526.png
195 KB View Download
is this really necessary? The shipping option section is shown because the PR requests shipping, the shipping option must be available after the user chooses a valid shipping address.
Cc: gogerald@chromium.org
Owner: wuandy@chromium.org
wuandy@, could you take a look if this is required since you worked on those codes recently,
Cc: -gogerald@chromium.org zkoch@chromium.org
Labels: -Pri-3 M-61 Pri-2
Owner: gogerald@chromium.org
Status: Assigned (was: Untriaged)
Summary: Don't show shipping option section if there're no shipping options to display (was: Don't show option section in bottom sheet if there're no shipping options to display)
Talked to Zach. We agree the shipping option should not be shown if it's empty. Ganggui: can you look into this? (You reviewed Andy's change to the shipping option section.)
Okay, so this is only the case on the bottom sheet, right?
Bottom sheet is highest priority. If you can get it removed from fullscreen sheet as well, that would be great.
So the shipping options may change (add or remove) dynamically based on users operation (like select different shipping addresses) on expanded sheet, then the shipping option section has to show and hide dynamically. Is this what we preferred?
Here we can be guided by what's the simplest to implement. I would prefer to hide the shipping option only initially, but always show it after the first set of shipping options comes from the website. If shipping options are later removed, gray out the "SELECT" button for the shipping options section. If the amount of effort to implement this is disproportionate, we can be less fancy.
Amazing! Ship it.
Project Member

Comment 10 by bugdroid1@chromium.org, Jun 16 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e10aedf65eacdd8b5f31355318a29cdf40e886a6

commit e10aedf65eacdd8b5f31355318a29cdf40e886a6
Author: gogerald <gogerald@chromium.org>
Date: Fri Jun 16 20:14:33 2017

Only show shipping option section once there are shipping options

BUG= 728173 

Review-Url: https://codereview.chromium.org/2940353002
Cr-Commit-Position: refs/heads/master@{#480146}

[modify] https://crrev.com/e10aedf65eacdd8b5f31355318a29cdf40e886a6/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java

Status: Fixed (was: Assigned)
Components: -UI>Browser>Autofill>Payments UI>Browser>Payments

Sign in to add a comment