Skip to main content

Callbacks functions

This page  tries to explain the usage of callback functions. callbacks are php-functions used to filter and manipulate feed data. Each item in a feed is parsed  by the callback function. In the feed configuration the default callback is set to generic_cb. You can change this to your own functions. Callback functions go into the feeds.php script, there is a 'edit callbacks' tab/link in the menu's

 

Read more …Callbacks functions

Using 404 caching for local images

Almost all datafeeds contain links to images, located on the server of the merchant, a CDN or at the networks servers. You might want to host the images on your own server:

  1. A lot of external images might be a trigger voor google
  2. Sometimes the images are ridiculous large
  3. Even with images of decent size, resizing them using an image library like GD gives better quality then using  html/css

Fetching the images during feed parsing is not a good idea, it will take a lot of time, and with a bit of bad luck the merchants server will block your IP for abuse. A better option is to fetch and store the images when needed with a technique similar to 404-caching

The component allows to modify the image url used in the components and modules templates

license users  can obtain code examples.

 

 

CSV files

The component can import any CSV formatted file delimited with tab, ',', ';' or '|' and enclosed with '"' (optional). The CSV files must have a header row:

Read more …CSV files

CSV files

The component can import any CSV formatted file delimited with tab, ',', ';' or '|' and enclosed with '"' (optional). The CSV files must have a header row:

Read more …CSV files