parc/update-urlkeys 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

parc/update-urlkeys

Composer 安装命令:

composer require parc/update-urlkeys

包简介

Searches for products in different stores and corrects the url key if needed

README 文档

README

The Magento 2 Update URL Keys module allows you to update URL keys for products in Magento 2. It provides an easy way to update the URL keys based on the current name.

When the name of a product changes, the URL key associated with that product should be updated accordingly. Changes to the product name happen frequently, and it is important to keep the URL key in sync to ensure consistent and accurate URLs for the product.

The URL key is a unique identifier used in the URL of a product page. It is generated based on the product name and is used to create a user-friendly and search engine-friendly URL. When the product name is modified, the URL key should be updated to reflect the new name.

This process can be automated by implementing a custom functionality that listens for product name changes and automatically updates the URL key. Whenever the name of a product is modified, the system should trigger the update of the URL key to match the new name.

By keeping the URL key up to date with the product name, you ensure that customers can access the product page using a meaningful and relevant URL, and search engines can properly index and rank the product in search results.

Implementing this functionality can help maintain consistency and improve the overall user experience of your online store.

Features

  • Update URL keys for products
  • Updates are done via Cron or CLI
  • Based on the current products name
  • Supports bulk updating for multiple items at once
  • Easy to install and use

Requirements

  • Magento 2.x

Installation

Run the following Composer command to install the module:

composer require parc/update-urlkeys

Enable the module by running the following commands:

php bin/magento module:enable Parc_UpdateUrlKeys

php bin/magento setup:upgrade

Flush the Magento cache by running the following command:

php bin/magento cache:flush

Usage

1. Backend

Log in to your Magento admin panel. Go to Stores > Configuration > Parc Network > Update Url Keys. Select the store views and the desired update method, which can differ between multiple store views. Configure your own cronjob interval and save the configuration

Note: The cronjob functionality is disabled by default.

2. CLI

Inside your Magento2 root, hit bin/magento parc:updateurlkeys

A list of all possible parameters can be found via -h / --help or below:

Screenshot 2023-06-12 at 12.22.00 PM.png

I would only recommend using the CLI when:

  • you don't want to wait until the cron would be executed the next time.
  • you want to create an overview via CSV, which changes are made, regarding the url keys
  • you want to update the url key for a single product only

Support

If you encounter any issues or have any questions, please create an issue on the GitHub repository.

Contributing

Contributions are welcome! If you would like to contribute to the project, please fork the repository and submit a pull request.

License

This module is licensed under the MIT License.

parc/update-urlkeys 适用场景与选型建议

parc/update-urlkeys 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 39 次下载、GitHub Stars 达 2, 最近一次更新时间为 2023 年 06 月 22 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 parc/update-urlkeys 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 parc/update-urlkeys 我们能提供哪些服务?
定制开发 / 二次开发

基于 parc/update-urlkeys 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 39
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-22