All Projects → elgentos → regenerate-catalog-urls

elgentos / regenerate-catalog-urls

Licence: MIT license
This extension adds console commands to be able to regenerate; a product rewrite URL based on its url path; a category rewrite URL based on its url path; a category URL path based on its URL key and its parent categories.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to regenerate-catalog-urls

module-dsu-client
No description or website provided.
Stars: ✭ 17 (-92.74%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
module-notifications
Notify the Magento 2 admin user about disabled caches or new customer reviews.
Stars: ✭ 20 (-91.45%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
module-lazyload
magefan.com/magento-2-image-lazy-load-extension
Stars: ✭ 47 (-79.91%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
module-blog-m22
Fixes for Blog on Magento 2.2.x
Stars: ✭ 21 (-91.03%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
m2.IndexerUrlRewrite
Magento2. Extension rebuild UrlRewrite index.
Stars: ✭ 38 (-83.76%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
magento2-guest-to-customer
Guest to Customer for Magento2 - Quickly and easily convert existing guest checkout customers to registered customers.
Stars: ✭ 66 (-71.79%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
magento2-link-product
Custom Product Relation for Magento 2.2.x and 2.3.x sample extension
Stars: ✭ 45 (-80.77%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
magento-2-security
Magento 2 Security extension FREE. Security extension gives store owners the ability to detect the IP addresses that are intentionally attacking their store at any given time. Therefore, they have timely measures to prevent this issue such as blocking those IP addresses or sending warning emails to store owners.
Stars: ✭ 40 (-82.91%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
m2.Price
Magento2. Rounding Price to Prettier Value for Multi-Currency Stores.
Stars: ✭ 60 (-74.36%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
LargeConfigProducts
Large Configurable Products workaround for Magento 2
Stars: ✭ 83 (-64.53%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
module-dsu
No description or website provided.
Stars: ✭ 18 (-92.31%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
magento-2-layered-navigation
Magento 2 Layered Navigation extension Free optimizes the navigation process, redirects users to product catalog pages, and makes finding products easier
Stars: ✭ 16 (-93.16%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
Dev-Tools-Magento-2-Module
A collection of utilities meant to improve the experience of developing modules for Magento without breaking existing functionality.
Stars: ✭ 18 (-92.31%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
magento2-edit-order-email
Magento2 - Edit Order Email from Admin
Stars: ✭ 30 (-87.18%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
module-translation
magefan.com/magento-2-translation-extension
Stars: ✭ 35 (-85.04%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
PagSeguro-Magento-Transparente-M2
Módulo PagSeguro para Magento 2
Stars: ✭ 15 (-93.59%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
module-catalog
Fixes for some known Magento 2 issues in Catalog
Stars: ✭ 23 (-90.17%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
module-geoip
Detect Country by IP in Magento 2
Stars: ✭ 51 (-78.21%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
magento-2-ajax-cart
Magento 2 Ajax Cart allows customers to add products to cart right on the current window without having to redirect to another page. Completely reduce redirect wait times and improve the shopping experience.
Stars: ✭ 16 (-93.16%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free
module-checkout-designs
Allow multiple options for Magento 2 checkout layout. Provides capabilities to AB test checkout changes and more.
Stars: ✭ 28 (-88.03%)
Mutual labels:  magento2-extension, magento2-module, magento2-extension-free

Elgentos Regenerate Catalog URLs

What does it do

This extension adds console commands to be able to regenerate;

  • a product rewrite URL based on its url path;
  • a category rewrite URL based on its url path;
  • a CMS page rewrite URL based on its url path;
  • a category URL path based on its URL key and its parent categories.

Install

Using Composer;

composer require elgentos/regenerate-catalog-urls
php bin/magento setup:upgrade

Or download and copy the src directory into app/code/Elgentos/RegenerateCatalogUrls and run php bin/magento setup:upgrade.

How to use

Usage:
 regenerate:product:url [-s|--store="..."] [pids1] ... [pidsN]
 regenerate:category:url [-s]--store="..."] [-r]--root="..."] [cids1] ... [cidsN]
 regenerate:category:path [-s]--store="..."] [-r]--root="..."] [cids1] ... [cidsN]
 regenerate:cms-page:url [-s]--store="..."] [pids1] ... [pidsN]

Arguments:
 pids                  Products (or Pages) to regenerate
 cids                  Categories to regenerate

Options:
 --store (-s)          Use a specific store (store Id, store code or 'all')
 --root (-r)           Regenerate for root category and its children, ignoring cids. 
 --help (-h)           Display this help message

Eg:

# Regenerate url for all products and the global store
php bin/magento regenerate:product:url

# Regenerate url for products with id (1, 2, 3, 4) for store 1
php bin/magento regenerate:product:url -s1 1 2 3 4

# Regenerate url for all CMS pages
php bin/magento regenerate:cms-page:url -s all

# Regenerate url for root category 4 and its children for store 1
php bin/magento regenerate:category:url -s1 -r4

FAQ

What's the difference between url_key and url_path?

url_key contains the key, like joust-duffle-bag for the product "Joust Duffle Bag". The url_path is generated by taking the url_key and adding the suffix (which for products is stored in catalog/seo/product_url_suffix and defaults to .html). So the url_path would by default become joust-duffle-bag.html. It also adds the category slugs of the parent categories so the url_path might become bags/joust-duffle-bag.html. However, the use of url_path has been deprecated since early Magento 2.1 versions (see here). If you are running on a recent Magento 2 version, you can safely delete those values by running DELETE FROM catalog_product_entity_varchar WHERE attribute_id = (SELECT attribute_id FROM eav_attribute WHERE attribute_code = 'url_path' AND entity_type_id = 4).

URL paths are still used in categories though, so don't remove those.

Why am I getting a 'Duplicated url' warning when running the command?

If you see this error, you have duplicate url_key values (within a store) in catalog_product_entity_varchar. You can use this extension to check those (and you need to fix them manually): baldwin/magento2-module-url-data-integrity-checker.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].