Comments (10)
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.
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.
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.
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.
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.
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.
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.
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.
Hi @aimeric, yes i have a bitbucket account. My account id is: songecko.
Regards.
from syliusvendorplugin.
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)
- Can't extend plugin HOT 1
- Can't extend VendorTranslation HOT 3
- Register own listeners on create/update vendor HOT 3
- Seems mappedBy attribute missing : OneToMany mapping on field 'products' requires the 'mappedBy' attribute. HOT 6
- Bugs related to sylius 1.9 latest version of sylius HOT 1
- Slug And Name Have to be translated
- The table with name 'sylius.odiseo_vendor' already exists. HOT 2
- Adding features to the plugin HOT 1
- Deprecated issue: Creation of dynamic property VendorUrlProvider::$channel is deprecated
- can't install vendorplugin on sylius1.0.5 HOT 6
- Can't update database HOT 2
- Database migration issue HOT 4
- Error after installing SyliusVendorPlugin HOT 8
- Wrong image path HOT 5
- Error after install HOT 1
- Update plugin to support Sylius 1.4 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syliusvendorplugin.