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.
I-ve got exactly the same problem
Just installed avored following instruction and dummy data as well. have you a solution ? Thanks
@marco can you export your database sql file and share with me via Pastebin or any other way (dropbox,google drive).
I have a feeling that this bug is related to some particular way of creating attribute or properties for the product.
Hello @marco i have try your database file and i can do go to home page, cart page or checkout everything is working fine for me.