betweenGo

CommerceItem, which one is the SKU ID?

by on Nov.15, 2007, under Commerce

Colors | Flickr

Colors by CurveTo

The CommerceItem has two properties, catalogRefId and catalogId.

I always forget which one is which so I am writing this post so I can remember. I guess it was because some companies have different conventions about SKU’s and products.

ATG Real World
catalogRefId SKU ID
catalogId Product ID

Maybe one day someone will explain the reason for the naming.

Note that sometimes the catalogId is null though I’ve never seen the catalogRefId be null.

You can also try to get the product ID by using the auxiliaryData property. This property has a productId property.


Share

Related posts:

  1. How to Add Multiple Items to the Shopping Cart in ATG
  2. ATG Product Bundles
  3. Accessing JavaBean’s Getters and Setters
  4. Limiting the Quantity Added to a Cart
  5. user-defined property type gotcha’s

:

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!