But now when I try to replicate the same for the product grid (the one that shows a list of products) it doesn't work so I think maybe I'm modifying the wrong files.
I was following this topic that seemed to be the same as what I intended but with no luck: http://forum.opencart.com/viewtopic.php?t=54524
These are the steps I did:
- Added:
Code: Select all
$this->data['entry_newoffer'] = $this->language->get('entry_newoffer');
- Also added:
Code: Select all
'newoffer' => $result['newoffer']
Code: Select all
$this->data['products'][] = array(
Code: Select all
$_['text_newoffer'] = 'New Offer!';
Code: Select all
<?php if($product['newoffer']){ ?>
show something
<?php } ?>
BTW I'm using Opencart v1.5.3
Thanks!