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

[5.x]: Cannot copy billing or shipping address on order edit screen #16763

Open
philipboomy opened this issue Feb 24, 2025 · 2 comments
Open
Labels

Comments

@philipboomy
Copy link
Contributor

What happened?

Description

It would be nice to be able to copy the address on the order edit screen. We some times reply to customers where we list their address for confirmation. We cannot copy paste the address anymore. We have to click the edit of the address and then copy paste 1 input field at a time. I am not sure if this is a setting change or on purpose.

Craft CMS version

5.6.6

Craft Commerce version

5.3.2.2

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Copy link

linear bot commented Feb 24, 2025

@nfourtythree
Copy link
Contributor

Hi @philipboomy

Thank you for your message.

Commerce implements the address card preview as dictated by Craft itself. So for this we will need a figure out a solution that works in the core of Craft (you can see the same behaviour if you look at addresses on a user).

Will transfer this issue across to the Craft repo so we can track any progress.

If you urgently require a solution for you could add the following code in a custom module's init() method.

if (Craft::$app->getRequest()->getIsCpRequest()) {
    Craft::$app->getView()->registerCss('.order-address-display .card { -webkit-user-select: initial; -moz-user-select: initial; -ms-user-select: initial; user-select: initial; }');
}

Thanks!

@nfourtythree nfourtythree transferred this issue from craftcms/commerce Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants