Rank: Advanced Member
Groups: Authorized User, Developers Joined: 5/30/2020(UTC) Posts: 125
Thanks: 14 times Was thanked: 3 time(s) in 3 post(s)
|
I have been trying really hard to keep my customizations separate from the AC9 code. I'm now trying to create a custom Category Grid view that includes Products, Categories, Links, and Webpages, sorted by the OrderBy value in ac_CatalogNodes. I was going to register it as a Widget in my plugin, but tons of the Models and Helper classes (PageVisitHelper for example) reside in the AbleCommerce web project. One of the things that drove me nuts about AC7 was circular relations causing issues with building the application. Is it safe to reference the AbleCommerce web project from custom plug-ins, or will it create the same circular reference issues we experienced in the past?
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
This is safe to reference Ablecommerce project in your custom plugin. We had a plugin that is using the code reference from Ablecommerce project. It works perfectly fine.
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 5/30/2020(UTC) Posts: 125
Thanks: 14 times Was thanked: 3 time(s) in 3 post(s)
|
Well, I tried adding the reference. There were library mismatches that had to be resolved by adding binding redirects in the app.config for the plugin. Not sure why since the NuGet package versions are the same for each project. It also broke my plug-in Intellisense again. I'm about to chuck plug-ins out the window and start coding in the main project.
|
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
Whatever you do, don't tell NuGet to restore all your packages. I spent two days sorting our MVC version differences that IntelliSense wouldn't shut up about on every. freaking. view.
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 5/30/2020(UTC) Posts: 125
Thanks: 14 times Was thanked: 3 time(s) in 3 post(s)
|
I thought NuGet was supposed to help remove us from DLL hell?! :P
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
We pretty much gave up on plugins after trying a few. I doubt if we'll ever have a site where we don't need to change something that needs compilation (even default number of items to show per page in the admin!) so we mostly just integrate the code into the main solution.
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 5/30/2020(UTC) Posts: 125
Thanks: 14 times Was thanked: 3 time(s) in 3 post(s)
|
@judy, that is pretty much where we are at. We thought we would try to keep things as separate as possible to assist with future upgrades and potentially spin off the inventory and pick/pack as a 3rd party plug-in. We really liked how the plugin was integrated into the nav and we were able to wire up configuration screen and routes. However, the constant Intellisense issues we've encountered and library version mismatches are making it more of a headache than it is worth. Guess it is time to purchase the full source code version and get rolling :)
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close