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

Slugs with Special Characters Not Converted to ASCII During Product Import #1523

Open
romainpoirier opened this issue Oct 3, 2024 · 2 comments
Assignees

Comments

@romainpoirier
Copy link

Description

When importing products via the FeedMe plugin, slugs with special characters are not converted to ASCII, even though the limitAutoSlugsToAscii configuration is set to true. This issue is observed during the import process, but when manually editing and saving the products in the Control Panel, the slugs are cleaned as expected.

Steps to reproduce

  1. Set the limitAutoSlugsToAscii config to true in the config/general.php file.
  2. Import a product with a title containing special characters (e.g., "Spätburguner") via FeedMe.
  3. Check the slug generated during the import.

Expected behavior: The slug should be converted to ASCII, removing special characters like "ä".
Observed behavior: The slug retains special characters and is not cleaned.

Additional info

  • Craft version: 5.4.6
  • PHP version: 8.2.20
  • Database driver & version: MySQL 8.0.36

Plugins & versions:

  • craftcms/commerce: 5.1.3
  • craftcms/feed-me: 6.4.0
@romainpoirier
Copy link
Author

For your information, upon opening this ticket, I received an alert: "Add issues to project: All jobs have failed" (GitHub Actions run failure). It seems there might be a configuration issue with the repository.

@i-just
Copy link
Contributor

i-just commented Oct 9, 2024

Hi, thanks for getting in touch! I can’t replicate this behaviour. When importing products and entries, the Spätburguner title results in a spatburguner slug in my tests.

Could you please clarify when you experience this issue? Is it when importing a new product? Could you share a snippet of your feed and a screenshot of the mapping screen?

@i-just i-just self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants