GeekShop admin dashboard always shows 2 products

stantyan

Apr 2nd, 2017 06:53 PM

Hi Admin,

GeekShop admin dashboard always shows 2 products no matter how many products are added. Not a big deal for me to be honest. and I'm really afraid to change something inside backend/admin files.

https://app.box.com/s/g6zgnisrhmgucb7w8yjmztznnjx6lm57

devdojo

Apr 4th, 2017 01:50 AM

Hey Stantyan,

Wow, thanks for catching this and thanks for bringing this to my attention. I'll be sure to include this in the next update as well. For the meantime you can change line 23 inside of app\Widgets\Products.php from:

$count = Voyager::model('Page')->count();

to:

$count = \App\Product::count();

And you should be good to go. Thanks again for bringing it to my attention.

Talk to you soon.