Здраствуйте форумчане, есть модуль который выводит на странице контактов время работы магазина, он сделан vqmod. офф ссылка: http://www.opencart.com/index.php?r...&extension_id=13752&filter_search=store hours код модуля Код: <modification> <id>Store Hours</id> <version>1.0</version> <vqmver>2.1.6</vqmver> <author>dony_b</author> <!-- Instructions Here:: To update store hours simply change the hours inside the quotes ( example: "9:00am - 5:00pm" //Change Monday Hours). If you are closed that day just enter closed as its shown on Sunday. If you get an error try disabling "Display Errors" from the admin menu. Settings > Server then check No to not display any errors. Thats it. --> <file name="catalog/view/theme/*/template/information/contact.tpl"> <operation> <search position="replace"><![CDATA[<?php echo $address; ?></div>]]></search> <add> <![CDATA[ <?php echo $address; ?> <br /> <br /> <?php $today=date(l); //Define daily open hours as you wish if($today==Monday){ echo "<span style='color:#008000;'>●</span> "; echo "Today "; echo "9:00am - 5:00pm"; //Change Monday Hours } elseif($today==Tuesday){ echo "Hours for Tuesday"; echo "Today "; echo "9:00am - 5:00pm"; //Change Tuesday Hours } elseif($today==Wednesday){ echo "<span style='color:#008000;'>●</span> "; echo "Today "; echo "9:00am - 5:00pm"; //Change Wednesday Hours } elseif($today==Thursday){ echo "<span style='color:#008000;'>●</span> "; echo "Today "; echo "9:00am - 5:00pm"; //Change Thursday Hours } elseif($today==Friday){ echo "<span style='color:#008000;'>●</span> "; echo "Today "; echo "9:00am - 5:00pm"; //Change Friday Hours } elseif($today==Saturday){ echo "<span style='color:#008000;'>●</span> "; echo "Today "; echo "9:00am - 5:00pm"; //Change Saturday Hours } elseif($today==Sunday){ echo "<span style='color:#ff0000;'>●</span> "; echo "Today "; echo "CLOSED"; //Change Sunday Hours } ?> </div> ]]> </add> </operation> </file> </modification> Если в админке в вкладке система-сервер сделать показывать ошибки, то в магазине выскакивает вот такое: Код: Notice: Use of undefined constant l - assumed 'l' in /var/www/globestar/data/www/catalog.cv.ua/demo/vqmod/vqcache/vq2-catalog_view_theme_default_template_information_contact.tpl on line 22Notice: Use of undefined constant Monday - assumed 'Monday' in /var/www/globestar/data/www/catalog.cv.ua/demo/vqmod/vqcache/vq2-catalog_view_theme_default_template_information_contact.tpl on line 25Notice: Use of undefined constant Tuesday - assumed 'Tuesday' in /var/www/globestar/data/www/catalog.cv.ua/demo/vqmod/vqcache/vq2-catalog_view_theme_default_template_information_contact.tpl on line 31Notice: Use of undefined constant Wednesday - assumed 'Wednesday' in /var/www/globestar/data/www/catalog.cv.ua/demo/vqmod/vqcache/vq2-catalog_view_theme_default_template_information_contact.tpl on line 37 ● Today 9:00am - 5:00pm строка ● Today 9:00am - 5:00pm это то что должен показывать модуль без ошибок, естественно когда я нажимаю не показивать ошибки, то всё отлично выводиться, но хочеться узнать из чего ети ошибки.?