Checkout issue with custom catalogs.

51 views
Skip to first unread message

Anuj Jaiswal

unread,
Apr 27, 2011, 10:52:04 AM4/27/11
to atg_...@googlegroups.com

Hi Team,


We are working for the some project on ATG 9.1 p2 version.


We are creating multiple catalogs under masterCatalog as US Catalog and UK catalog. See the attached screenshot for the catalog structure (catalog.JPG) . Both catalogs have different categories, products and sku id in it. Each catalog have separate rootNavigationCategory id.


According to the user’s URL as http://www.moltonbrown.co.uk or http://www.moltonbrown.com , we are setting the UK/US catalog with price lists in the user’s profile. So when the user goes to UK site, only UK catalog with categories under root navigation category is visible. Same for the US site.We are using the default CRS implementation for the checkout journey.


The checkout journey runs fine for the products under the UK category, but when we try to checkout for any products under the US catalog, it throws the below error (see attached error.log)


15:21:36,437 INFO  [CartFormHandler] DEBUG adding unchecked form exception: java.lang.NullPointerException


We debugged the code and find out that the issue is with following methods of ATG class atg.commerce.catalog.custom.CustomCatalogTools:

1) 1)  boolean verifyCatalog(RepositoryItem pItem)

       2) public RepositoryItem findSKU(String pId)

We have also checked the CatalogTools component, its setting the US catalog correctly, but when we try to verify the catalog or find the sku item using catalog tools, its throwing the above errors. The same runs fine using the products under UK catalog. By looking at the logs, its throwing NPE at CustomCatalogTools.java:2030


Kindly let us know is there any existing issue with 9.1 version of handling multiple catalogs. Do provide us some pointers, where to look in the code to handle the multiple catalogs checkout issue.Let me know if you need any further information. How can I verify the consistency of the catalog other than CatalogMaintainance Service


--
Thanks and Regards,
Anuj Jaiswal
+44-7550664836
catalog.JPG
error.log
Reply all
Reply to author
Forward
0 new messages