Discovering Dynamics

Main Menu

Handling different supplier shopping basket with punch out catalogs

In a previous post we looked at the return URL and some things you need to look at setting up for different suppliers. Once you have that configured there might be differences in the data that is sent back in the shopping basket from the suppliers web site. This video walks through an example where you will have to modify the OCI protocol handler class to handle the basket data. This class is called the message handler and as you can see in this example you may need to modify in an implementation.

You will see in this example the suppliers shopping basket data has the product number I the field NEW_ITEM-VENDORMAT where in the sample OCI handler class in AX uses NEW_ITEM-EXT_PRODUCT_ID.

This is the example message that comes back from the suppliers you saw in the video.

This is an example of a return message from another supplier has a fully filled out set of fields included the optional custom fields. But you will see in this example the item number is populated in 3 fields NEW_ITEM-MANUFACTMAT, NEW_ITEM-VENDORMAT, NEW_ITEM-EXT_PRODUCT_ID

If you look at the OCI documentation there could actually be a few different fields that represent the product number. Some suppliers web sites will send the basket data back with all of the different version filled out.

Also you see in the video I use Fiddler to look at the web data from the suppliers site. You can download that from here http://www.telerik.com/fiddler