Post by silvalucas90 » Thu Jun 28, 2018 7:19 pm

Fala galera beleza?

Estou tentando usar um banner diferente no header para cada categoria tentei usar esse codigo porem encontro um erro

Code: Select all

<?php if (isset($category_id) && $category_id == '59' ) { ?>
<img class="img-responsive banner" src="image/agrega/banner1.jpg" alt="">
<?php } ?>
erro: Undefined variable: category_id



Mon Mar 26, 2018 8:24 am

Post by straightlight » Thu Jun 28, 2018 7:51 pm

Solution posted here: viewtopic.php?f=190&t=205359#p727768 . Topic re-created (different language but still the same request).

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

Straightlight Administrator / Quality Assurance Analyst / Programmer / Opencart Tester

Legendary Member


Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 1 guest