0

I've a notice message appears while using compare in opencart (when using Arabic language only - in Eng Lang it is fine -) the message is as follows

Notice: Undefined index: attribute in /home/mmmm/public_html/store/catalog/view/theme/default/template/product/compare.tpl on line 116Warning: Invalid argument supplied for foreach() in /home/mmmmm/public_html/store/catalog/view/theme/default/template/product/compare.tpl on line 116

compare.tpl

<?php foreach ($attribute_group['attribute'] as $key => $attribute) { ?>

Please help to hide this notice

1 Answer 1

0
<?php if (!empty($attribute_group['attribute']))
{
foreach ($attribute_group['attribute'] as $key => $attribute) { ?>
...
<?php } ?> 
<?php } ?> //endforeach
<?php
 } //endif
 ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.