Only change it in the 2nd occurance of that IF where the IF is preceeded with the comment so that this code:
PHP Code:
// final check for display of Free Options
if ($this->ck_freeoptions_total or $this->ck_freeoptions_weight or $this->ck_freeoptions_items) {
$this->enabled = true;
} else {
$this->enabled = false;
}
Will now read as this code (in just this one place):
PHP Code:
// final check for display of Free Options
if ($this->ck_freeoptions_total and $this->ck_freeoptions_weight or $this->ck_freeoptions_items) {
$this->enabled = true;
} else {
$this->enabled = false;
}
Bookmarks