logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to forums.ablecommerce.com. Please use your AbleCommerce username and password to Login. Forums Registration.

Notification

Icon
Error

Options
Go to last post Go to first unread
sweeperq1766875  
#1 Posted : Friday, May 28, 2021 12:51:25 PM(UTC)
sweeperq1766875

Rank: Newbie

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 7

Thanks: 8 times
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?

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. Forums Registration.

shaharyar  
#2 Posted : Friday, May 28, 2021 1:40:53 PM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 484

Thanks: 1 times
Was thanked: 59 time(s) in 58 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.
sweeperq1766875  
#3 Posted : Friday, June 4, 2021 9:57:17 AM(UTC)
sweeperq1766875

Rank: Newbie

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 7

Thanks: 8 times
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.
Joe Payne @ AbleMods LLC  
#4 Posted : Friday, June 4, 2021 10:09:17 AM(UTC)
Joe Payne @ AbleMods LLC

Rank: Advanced Member

Groups: HelpDesk
Joined: 11/9/2018(UTC)
Posts: 419

Thanks: 58 times
Was thanked: 12 time(s) in 11 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.
sweeperq1766875  
#5 Posted : Friday, June 4, 2021 2:06:38 PM(UTC)
sweeperq1766875

Rank: Newbie

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 7

Thanks: 8 times
I thought NuGet was supposed to help remove us from DLL hell?! :P
judy at Web2Market  
#6 Posted : Monday, June 7, 2021 6:26:27 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 147

Thanks: 12 times
Was thanked: 2 time(s) in 2 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.
sweeperq1766875  
#7 Posted : Monday, June 7, 2021 9:07:13 AM(UTC)
sweeperq1766875

Rank: Newbie

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 7

Thanks: 8 times
@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 :)
Users browsing this topic
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.