- Posts: 50
- Thank you received: 0
Hoe filter ik items eruit zonder prijs?
7 years 9 months ago #4125
by leyla20
Replied by leyla20 on topic Hoe filter ik items eruit zonder prijs?
Hi Bram,
Because lately i see a lot of items with 0,0 euro or to low amounts. i decided to use the above way to get everything below 80 out. But its not working. It is still showing all the amounts. Can you see what is going wrong?
Thanks in advance.
Kind regards,
Michel
Because lately i see a lot of items with 0,0 euro or to low amounts. i decided to use the above way to get everything below 80 out. But its not working. It is still showing all the amounts. Can you see what is going wrong?
Code:
function isoreizen_cb(&$item) {
generic_cb($item);
$item['description']='';
if (empty($item['prijs']) || ((float)$item['prijs'] >= 80)){
$item['title']='';
}
else if (($item['menu_2'] !== 'Turkije') AND ($item['menu_2'] !== 'TR')) {
$item['title']='';
}
isoreizen($item);
}
Thanks in advance.
Kind regards,
Michel
Please Log in to join the conversation.
Time to create page: 0.294 seconds