Exclude some products of Data Feed

More
8 years 5 months ago - 8 years 5 months ago #3348 by Chris
Hi,

I'm using the free tool to converts affiliate datafeeds into RSS format on SPIP CMS. It works great ! Thanks a lot.

Now I want on my RSS only promo products (Discount_indicator 1 on XML Data Feed). How can I do this.

Thanks

Chris
Last edit: 8 years 5 months ago by Chris.

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #3349 by bram
You can use callback function like they are used for the component:

affiliatefeeds.nl/callbacks.html

so you get something like
Code:
function exclude_cb(&$item) { generic_cb($item) if ( $item['discount_indicator'] != 1 ) { $item=array(); } }

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #3350 by Chris
Thanks a lot it works great !

Please Log in or Create an account to join the conversation.

Time to create page: 0.183 seconds