Giter Club home page Giter Club logo

Comments (10)

 avatar commented on June 14, 2024 1

Hi @aimeric, i see that you need place the following lines after all imports on config.yml:

- { resource: "@OdiseoSyliusVendorPlugin/Resources/config/app/config.yml" }
- { resource: "@OdiseoSyliusVendorPlugin/Resources/config/grids/vendor.yml" }

Doing that i could make it work.
Also i added you to skype.

Thanks.

from syliusvendorplugin.

aimeric avatar aimeric commented on June 14, 2024 1

Hi @odiseoteam ,

I have place the following lines after all imports and it works well.

- { resource: "@OdiseoSyliusVendorPlugin/Resources/config/app/config.yml" }
- { resource: "@OdiseoSyliusVendorPlugin/Resources/config/grids/vendor.yml" }

I have received your invitation on skype.

Thank you so much for your help, you're the best :)

from syliusvendorplugin.

 avatar commented on June 14, 2024

Hi @aimeric, first of all, thanks for use our plugin.
To solve the issue, you need add the Bundle/Plugin on the Kernel before of the SyliusResourceBundle. To do that you need to replace the registerBundles method like this:

public function registerBundles(): array
{
    $preResourceBundles = [
        new \Odiseo\SyliusVendorPlugin\OdiseoSyliusVendorPlugin(),
    ];

    $bundles = [
        ...
    ];

    return array_merge($preResourceBundles, parent::registerBundles(), $bundles);
}

Sorry for not explain this on the Readme, i will do now.
Also, I recommend you to use the last stable version of the plugin and not the dev-master version.

Let me know if you can fix this issue.

Regards.

from syliusvendorplugin.

aimeric avatar aimeric commented on June 14, 2024

Hi @odiseoteam, Thanks for developing a multi vendor bundle for Sylius. I have been able to fix the error , by editing my Appkernel.php as you explained. After accessing to the vendors page , when I'm trying to create a new vendor I'm getting this error:

Expected argument of type "Odiseo\SyliusVendorPlugin\Model\ChannelInterface", "Sylius\Component\Core\Model\Channel" given

I have also downgrade to stable version.

from syliusvendorplugin.

 avatar commented on June 14, 2024

Hi @aimeric, i tried to reproduce your error but i couldn't. Please, try again following the Readme step by step after install a new sylius project. We updated the Readme today and also we published a new version of the plugin.

Please, let me know if you could solve the issue and thanks for the feedback.

from syliusvendorplugin.

aimeric avatar aimeric commented on June 14, 2024

Hi @odiseoteam , It work nicely with a new sylius project. I can add a new vendor without any error. But with my current sylius project it doesn't work.

If I tried to create a vendor I keep having this error:

Expected argument of type "Odiseo\SyliusVendorPlugin\Model\ChannelInterface", "Sylius\Component\Core\Model\Channel" given

If I tried to create a new product I have this error:

Neither the property "vendor" nor one of the methods "getVendor()", "vendor()", "isVendor()", "hasVendor()", "__get()" exist and have public access in class "Sylius\Component\Core\Model\Product".

It would be nice if I can use your plugin in my current website.

I have few suggestions for you:

  • A vendor should only be able to see (edit, delete ) his own products.

  • In the dashboard tab the vendor should only see his orders and his total sales.

  • The tab configuration and client shouldn't be visible to a vendor, only to the admin of the website.

  • When the admin user create a new vendor he should be able to create a password for the new vendor.

What do you think about my suggestions?

Thanks

from syliusvendorplugin.

 avatar commented on June 14, 2024

Hi @aimeric. I think your error is because the "@OdiseoSyliusVendorPlugin/Resources/config/app/config.yml" file was not loaded. The Sylius model classes for Channel and Product need to be overrride by the plugin.
Can you share me the project that you are working?

About your suggestions i think are great features. Can you add them like to another github task?

Thanks!

from syliusvendorplugin.

aimeric avatar aimeric commented on June 14, 2024

Hi @odiseoteam ,

I have added a github task lists with features to be added to the plugin.

Yes of course I can share with you the project. Do you have a bitbucket account ? If yes can I have your email or username so I can share the project with you.

Thanks

from syliusvendorplugin.

 avatar commented on June 14, 2024

Hi @aimeric, yes i have a bitbucket account. My account id is: songecko.

Regards.

from syliusvendorplugin.

aimeric avatar aimeric commented on June 14, 2024

Hi @odiseoteam , I have share my repository with your account. I have deleted some personal details in the parameters.yml

we can also talk about it via skype, username -> aimericmoser.hotmail.fr

Thanks!

from syliusvendorplugin.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.