vanilophp / demo

Vanilo Demo Application
https://vanilo.io/docs/
190 stars 54 forks source link

Master product demo #113

Closed mihaisolomon closed 1 year ago

mihaisolomon commented 1 year ago

Hey,

I installed the demo application I added a master product with variants but could not see it in the frontend. Any idea how I can see it? Or it's not available in the demo?

fulopattila122 commented 1 year ago

Salut Mihai,

The issue is not on your end, currently the ProductFinder doesn't retrieve master products. The fix is coming this week.

Are you using MySQL or some other DB engine? Because for MySQL there's a relatively quick fix.

mihaisolomon commented 1 year ago

I'm using MariaDb Mysql.

fulopattila122 commented 1 year ago

Yes, MariaDB works as well, of course :)

fulopattila122 commented 1 year ago

Do you plan to use both plain products and masters/variants or only master/variants?

mihaisolomon commented 1 year ago

I have both. I would prefer to use both if it's posible. From what I saw it's either simple or master product, correct?

mihaisolomon commented 1 year ago

Hey,

Do you have an answer for me?

fulopattila122 commented 1 year ago

Hey Mihai,

sorry for the slow response. The good news is that it works now, regardless of the DB engine.

With the fresh Vanilo v3.7 release, the new ProductSearch class has been added that is a drop-in replacement of the former ProductFinder class. The most important difference between the two is that ProductSearch works with both simple products and masters products as well.

This demo repository has been updated accordingly. Please pull the latest version that is capable of handling this situation. Most of the changes have happened in this commit 5cc97293f7c27690a9bb55b2e3a3011e0db5451f

Thanks for your patience!