Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unavailable edit address in FO #33991

Closed
2 tasks done
metacreo opened this issue Sep 20, 2023 · 11 comments
Closed
2 tasks done

Unavailable edit address in FO #33991

metacreo opened this issue Sep 20, 2023 · 11 comments
Labels
8.1.x Branch Addresses Label: Which BO under menu is concerned Bug Type: Bug FO Category: Front Office Invalid Resolution: issue closed because invalid

Comments

@metacreo
Copy link

metacreo commented Sep 20, 2023

Prerequisites

Describe the bug and add attachments

On editing address in FO, you always must enter state. Even on countries without states.

PrestaShop.Live.Demo.Mozilla.Firefox.Private.Browsing.2023-09-21.14-08-01_1.mp4

Expected behavior

Option State must be only for countries with states

Steps to reproduce

  1. Create address with country France or any other without states. Save it.
  2. go to address edit by clicking Update
  3. click Save

PrestaShop version(s) where the bug happened

8.1.1

PHP version(s) where the bug happened

8.2.10

If your bug is related to a module, specify its name and its version

No response

Your company or customer's name goes here (if applicable).

No response

@metacreo metacreo added Bug Type: Bug New New issue not yet processed by QA labels Sep 20, 2023
@florine2623
Copy link
Contributor

Hello @metacreo ,

I can't reproduce your issue.

Screen.Recording.2023-09-20.at.17.08.19.mov

Could you please send a screen record of your issue and the configuration of the concerned country ?

Waiting for your feedback.

@florine2623 florine2623 added Waiting for author Status: action required, waiting for author feedback FO Category: Front Office NMI Status: issue needs more information Addresses Label: Which BO under menu is concerned 8.1.x Branch and removed New New issue not yet processed by QA labels Sep 20, 2023
@metacreo
Copy link
Author

metacreo commented Sep 20, 2023

@florine2623 now click edit on address who without states
Screencast from 20.09.2023 19:38:55.webm

@prestashop-issue-bot prestashop-issue-bot bot removed the Waiting for author Status: action required, waiting for author feedback label Sep 20, 2023
@aniszr
Copy link

aniszr commented Sep 21, 2023

Hello @metacreo

I couldn't either reproduce your issue when editing an address for a country without states!

See attached screenrecord:

address_edit.mp4

Could you please check in your BO that you imported Stated for the chosen country !

See attached screenshot :

image

Waiting for your Feed-back.

Thank you!

@aniszr aniszr added the Waiting for author Status: action required, waiting for author feedback label Sep 21, 2023
@metacreo
Copy link
Author

@aniszr not need change any row
go to demo.prestashop.com
click Sign In
click No account? Create one here
fill form and click Save
click on name on top to go to profile
click Add First Address
fill form, choose France and click Save
click Update on address
click Save

@prestashop-issue-bot prestashop-issue-bot bot removed Waiting for author Status: action required, waiting for author feedback labels Sep 21, 2023
@Steven44223
Copy link

Steven44223 commented Sep 21, 2023

I'm am having the same problem on 3 different installs (PS version 8.1.1).

This happens only in Google Chrome (desktop and mobile). Firefox, Edge and Opera are not showing the state dropdown when you edit an address for a Country without states from the My Account page.

Also, if you edit the address from the checkout, the form is displayed correctly, the state dropdown is not displayed in Chrome.

@metacreo
Copy link
Author

@Steven44223 I`m using Firefox only. Just now tried Chrome. Confirm, on chrome no State dropdown.

@Steven44223
Copy link

@Steven44223 I`m using Firefox only. Just now tried Chrome. Confirm, on chrome no State dropdown.

Strange, I'm only having this problem in Chrome.

@florine2623
Copy link
Contributor

Hello @metacreo @Steven44223 ,

You need to add states if you enable this option.
Screenshot 2023-09-21 at 15 06 45

We use GitHub issues only to discuss about bugs and new features in the PrestaShop project. If you have questions about using PrestaShop or third-party modules, or if you need help with your shop, please consider one of our support plans.

Alternatively, you can also ask for help in the community forums or in the public Slack channel.

Thank you

@florine2623 florine2623 added Invalid Resolution: issue closed because invalid and removed NMI Status: issue needs more information labels Sep 21, 2023
@metacreo
Copy link
Author

metacreo commented Sep 21, 2023

@florine2623 No. We no need add some. This is a bug and is not related to states addition or some.
Already 2 people have confirmed that the bug exists, one only on Chrome, the other on Firefox.
If you don't understand what the bug is, look at the description carefully.
In top of this page I used prestashop demo site and latest browser FF and chrome, everything is clearly visible there

@metacreo
Copy link
Author

@Steven44223 how do you like this ?? they just closed. without even understanding what's going on. (^^)

@Steven44223
Copy link

Hello @florine2623

The problem is not about Adding addresses but Editing an existing address with a country that does not contain states. I checked the database and the BO and the option "Contain states" is not enabled for countries that do not have states.

And if you edit an address when you Check Out it shows the correct form without the State field. The problem just occurs in the My Account section.

So, editing an existing address should not contain the State field unless you select a country where states are enabled. It's also inconsistent between browsers.

If you need more information let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.1.x Branch Addresses Label: Which BO under menu is concerned Bug Type: Bug FO Category: Front Office Invalid Resolution: issue closed because invalid
Projects
None yet
Development

No branches or pull requests

4 participants