I'm making a code modification that won't index products if they match a certain criteria. Therefore they won't display on "example.com/index.php?route=feed/google_base".
Testing it out, I made a tiny modification to the catalog/controller/feed/google_base.php right before the ($products as $product) loop. This is what I did:
Code: Select all
foreach ($products as $product) {
if ($product['name'] !== 'Example Product' ) {
.... add to index
} else {
.. don't add to index
}
}
What is going on here? Why did I lose an item even after I reverted the code?