(working on local server iMac/MAMP with OC1.5.3.1 installed)
Added to /catalog/controller/product/product.php:
Code: Select all
$this->data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0));
$this->data['button_compare'] = $this->language->get('button_compare');
$this->data['compare'] = $this->url->link('product/compare');
Code: Select all
<div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>
Now everything works OK, no parsing error, except;
- even if there was already a product added to the comparison list (e.g. from on category page), it would only show as text_compare. however, if I refresh the product page or add this product to the comparison list, then it would correctly show the text and how many product there are in the comparison list.
- clicking on "compare products", would get me to the comparison page, though, that is fine!
Thank you!