Witam
Chciałem stworzyć prosty moduł dla presty 1.5, który pozwala na wpisanie producenta w konfiguracji modułu, a następnie ta nazwa będzie porównywana z nazwą producenta wyświetlanych produktów. Jeśli nazwy były by identyczne to wyświetlana była by dodatkowa grafika.
W pliku php modułu mam następujący kod:
public function getContent() {     if(Tools::isSubmit('submit_text')) {       Configuration::updateValue(               $this->name.'_text_to_show',               Tools::getValue('the_text')               );      Configuration::updateValue(               $this->name.'_text_to_show1',               Tools::getValue('the_text1')             );            $this->_clearCache('fashion.tpl');       }                                                                                                      $this->_generateForm();     return $this->_html; } private function _generateForm() {                                                                                                      $textToShow=Configuration::get($this->name.'_text_to_show');     $textToShow1=Configuration::get($this->name.'_text_to_show1');     $this->_html .= '<form action="'.$_SERVER['REQUEST_URI'].'" method="post">';         $this->_html .= '<div class="margin-form">';     $this->_html .= '<input type="text" name="the_text" value="'.$textToShow.'" ><br>';     $this->_html .= '<input type="text" name="the_text1" value="'.$textToShow1.'" ><br>';     $this->_html .= '<input type="submit" name="submit_text" ';     $this->_html .= 'value="'.$this->l('Submit').'" class="button" />';     $this->_html .= '</div>';     $this->_html .= '</form>'; }     function hookLeftColumn($params)     {         global $smarty;         if (!$this->isCached('fashion.tpl', $this->getCacheId()))             $smarty->assign(array(                 'our_text' => Configuration::get('_text_to_show'),                 'our_text1' => Configuration::get('_text_to_show1'),             ));         return $this->display(__FILE__, 'fashion.tpl');     }W pliku product-list.tpl dodałem
{if ($product.manufacturer_name == {$our_text})||($product.manufacturer_name == {$our_text1})}                     <span id="manufacturer"></span>                     {/if}
Moduł działa ale tylko na pierwszej stronie danej kategorii, jak przejdę do drugiej strony wartość {$our_text} znika.
Będę wdzięczny za pomoc