CartProductFeed API: Feed Generation Part 4 – PActionAfterFeed

Get ExportFeed Now

Data leaves the Content Management System and enters a feed in a controlled process. There are four points where your custom modifier can hook the feed generation process. This post discusses the fourth of those four points and the differences.

FeedGenPartTwo

PActionAfterFeed is the final hook. It does not return a result because it sees the entire product after the feed-provider has converted it into the target format. For XML files, the data it sees will be a multi-line XML output. For CSV formats, the data will be a single line with the delimiters in place.

A simple example:

FeedGenE4

Note: This built-in custom modifier takes XML output and converts HTML entities into XML-compatible formats.

Note: Unlike the three other hooks, PActionAfterFeed has no getValue(). The output format takes the & symbol.