HCL Commerce Developer

Customizing the SEOURLMapper class for local stores

To handle additional redirects between the legacy URLs to your new SEO URLs, you must create an extended SEOURLMapper class.

Procedure

  1. Open your HCL Commerce Development environment.
  2. In the Enterprise Explorer view, expand the WebSphereCommerceServerExtensionLogic project.
  3. Right-click src, then click New > Package.
  4. In the Name field, enter com.mycompany.commerce.seo.url.helpers, where mycompany is your company prefix.
  5. Click Finish.
  6. Right-click the new package and then click New > Class.
  7. In the Name field, type ExtendedSEOURLMapperImpl, and then click Finish.
  8. Download and extract the following code_sample.zip file. Copy the contents of the ExtendedSEOURLMapperImpl.java file into the extended SEOURLMapper class that you created.

Results

You extended the SEOURLMapper class to handle redirects between the legacy URLs to your new SEO URLs.