I've installed Avored E Commerce locally and everything works fine except when I click on the cart icon I got below message :
ErrorException (E_ERROR) Invalid argument supplied for foreach() (View: /laravel-ecommerce/themes/avored/default/views/cart/_single_product.blade.php) (View: /laravel-ecommerce/themes/avored/default/views/cart/_single_product.blade.php)
<?php $currentLoopData = $product->attributes(); $env->addLoop($currentLoopData); foreach($currentLoopData as $attribute): $env->incrementLoopIndices(); $loop = $env->getLastLoop(); ?>
How do I solve this issue ?
Feel like its a bug so i am looking at it. Just a question have you during installation have you install dummy data?
I think so because there are few products at the front page.
I can't replicate your bug. I have try it with dummy data and without dummy data but i can't replicate your bug in my copy.
can you export your database and put it on google drive or share me your database dump file with me then i can take a look at it and fixed it.