Tuesday, November 29, 2011

The Drupal Commerce Glitch....

It is important to note a small glitch in the Navigation and URL naming convention in Drupal Commerce for creating Product types:
  • If you are an experienced Drupal 7 developers and very used to typing the urls in the address field directly to reach the pages you want to reach to, then you are in for experiencing a bit of a glitch in the Drupal Commerce. In regular Drupal 7 navigation and URL naming for creating content types, we navigate as  Admin > Structure>Content Type> and then click on the "Add a content type" link. And if we have to directly type the URL in the address field, we would type (/admin/structure/types/add). This appears to be following a consistent vocabulary or the naming convention for the path and the site navigation.
  • On the other hand, the navigation and URL naming for creating a new product type in Drupal Commerce is NOT consistent. For example, the navigation for creating Drupal Commerce path is Admin > Store > Products > then the TAB Product Types. But the URL here does not appear to follow the same vocabulary and convention of Drupal. The URL for creating a product type is (/admin/commerce/products/types/add).  The word used here is COMMERCE versus the word used in the navigation path which is STORE.
  • Taking a note of this inconsistency will help you in a lot of situations, more so if you are used to typing URLs in the address bar to reach pages on your Drupal 7 site and are not an expert yet with an ability to be able to notice the difference in the first glance. I ended up typing ( /admin/store/products/types/add) following the navigation pattern and was stuck here for a while. 
Hope you find this useful... thanks for reading...

No comments:

Post a Comment