Commerce Url Hash

Component ID

2888356

Component name

Commerce Url Hash

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

287

Component created

Component changed

Component body

Many times we come across a situation when we want to hide the Url from end users.
So Commerce Url Hash module is used to hide Order ID from Url for Commerce Checkout Urls.

Let's consider example,
In Drupal Commerce, we have Checkout flow, which has following Urls,

  • /checkout/123/order_information
  • /checkout/123/payment
  • /checkout/123/confirmation

So 123 is the Order ID, so the intent of this module is to hide the Order ID from Urls and provide the hash('###') value.

Requirements:

  • A clean Drupal 8 installation.
  • Commerce module.

Installation and Usage:

  1. Download Commerce Url Hash module
  2. Enable the Commerce Url Hash module.
  3. Now you can go to checkout Urls you will see Order ID is converted to hash value.
  4. Note:- In this module for encypt/decrypt service is available. So in custom module if you want to convert Order ID to hash or hash to Order ID you can use service (commerce_url.encrypt_decrypt) available in services.yml