Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
I have two sets of options set up in my product. 8 Version Types and 4 License Types, when I click on manage Variants, it merges the versions/licenses together. That works fine. I end up with 70 "rows" of variants in a product. I'm having issues with adding digital goods to variants. Sometimes I can add a digital file, sometimes it won't attach at all. I can never add more than one. It's not limited to what files either. Every 10 rows of variants, I repeat the digital goods. As you can see the first 10 attached just fine: The last set of 10, only half would attach and then I was unable to attach a second digital to the first two options:
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
ok, so I was able to add other files, but not the files that I needed that I had already added to other variants. I don't get it :( I have two sets of files that I can add to as many of the license variants that I need to. The other 6 files, that are set up exactly the same I can only add to 5 of the 8. No Rhyme or reason for it not to work. This is very quirky but definitely a HUGE issue for us to set up our store and move forward. Pretty much has us at a standstill :( Edited by user Monday, August 26, 2019 11:51:51 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
Moved on to a new product with just two variants and 6 options and unable to add any digital goods :(
|
|
|
|
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)
|
Hi,
I am able to reproduce the issue and I have registered a bug. It will be fixed shortly.
Thank you for your cooperation!
|
|
|
|
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)
|
Hi,
Can you please confirm that on which version of AC9 are you having the issue?
Also please confirm the number of choices for each option. The example you have shared is telling us that you are using 8 Version Types and 4 License Types and for this example, the total number of variants should be 32 whereas screenshots are showing as 70.
Please confirm the product data details. It will help us in fixing the issue.
Thanks
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
I'm sorry Shari, I did switch products midstream and the package I ended up referring to was one that had 10 Versions and 7 Licenses. I'm sorry for the confusion. We are using AbleCommerce® CMS Version: 9.0.0.5588 (We paid for an incident to have Mike install it on our servers for us, I do believe he's looking into this issue as well on our site server.)
|
|
|
|
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)
|
Thank you for the clarification.
One more question. Did you created your products from the scratch or upgraded your database from a Gold version?
I am asking because I was able to reproduce the issue only with a new fresh install with no sample data. I created a new product and options and able to reproduce it reliably.
|
|
|
|
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)
|
Hi, We have fixed the issue and will be available in an upcoming service release. I am sharing the details for a quick fix in your running application. 1- Please open the file \Website\Areas\Admin\Controllers\ProductController.cs 2- Search for this code Code:
if (dg != null)
{
int index = Product.DigitalGoods.IndexOf(dg.Id);
if (index < 0)
{
ProductDigitalGood pdg = new ProductDigitalGood();
pdg.Product = Product;
pdg.OptionList = DecryptedOptionList;
pdg.DigitalGood = dg;
Product.DigitalGoods.Add(pdg);
}
}
and replace it with Code:if (dg != null)
{
bool isAttached = false;
if (string.IsNullOrEmpty(optionList))
isAttached = Product.DigitalGoods.Where(pdg => pdg.DigitalGoodId == dg.Id && pdg.OptionList == string.Empty).Any();
else
isAttached = Product.DigitalGoods.Where(pdg => pdg.DigitalGoodId == dg.Id && pdg.OptionList == DecryptedOptionList).Any();
if (!isAttached)
{
ProductDigitalGood pdg = new ProductDigitalGood();
pdg.Product = Product;
pdg.OptionList = DecryptedOptionList;
pdg.DigitalGood = dg;
Product.DigitalGoods.Add(pdg);
}
}
3- Now compile the project using Visual Studio Please let me know if you have any queries.
|
1 user thanked shaharyar for this useful post.
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: shari Thank you for the clarification.
One more question. Did you created your products from the scratch or upgraded your database from a Gold version?
I am asking because I was able to reproduce the issue only with a new fresh install with no sample data. I created a new product and options and able to reproduce it reliably.
Yes, it was a start from scratch model. We have an ancient version of AbleCommerce that we are moving up from and starting over with everything.
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
Shari, I opened the same .SLN that I've been using since installation to make the changes and I'm getting an error message that states [Failure] Could not find file 'C:\Users\AbleUser\AppData\Local\Temp\5\.NETFramework,Version=v4.6.2.AssemblyAttributes.cs'. I'm afraid to move forward and mess up my previous updates as well as the store. I'm using Visual Studio Community 2019. The .NET Framework in Version 4.7.03062 but I have the target set at 4.6.2. Any ideas how to fix this? I'm not a developer so it's probably something simple for someone that is... Edited by user Wednesday, September 4, 2019 10:49:36 AM(UTC)
| Reason: Not specified
|
|
|
|
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)
|
Hi,
Before I can help you let me know your complete scenario.
Were you using this VS installation for your previous changes? Is the issue begin to appear after the recent changes?
We are currently using VS 2015 for local development. To resolve the real issue, I will need to download VS 2019.
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, System, Admin Joined: 10/18/2018(UTC) Posts: 183
Thanks: 1 times Was thanked: 6 time(s) in 6 post(s)
|
Have you tried to use the Clean Solution before the build? |
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: shari Hi,
Before I can help you let me know your complete scenario.
Were you using this VS installation for your previous changes? Is the issue begin to appear after the recent changes?
We are currently using VS 2015 for local development. To resolve the real issue, I will need to download VS 2019.
Yes I have and I just noticed it today when I went to make the new changes, it wasn't there before. The last change we made was on 8/30 where we recompiled the dll.
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: MikeR Have you tried to use the Clean Solution before the build? No, didn't know about it, but I did locate it and ran it, and it showed that it was successful. Closed out and restarted and it threw the same error again.
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, System, Admin Joined: 10/18/2018(UTC) Posts: 183
Thanks: 1 times Was thanked: 6 time(s) in 6 post(s)
|
Hi,
I just did a search on that error and there were a few solutions mentioned.
Try to use the "Rebuild All" option instead of build. |
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
Although this is way over my head because I'm not a developer, it looks like it's an ongoing issue when you remote into a server, each session will give a different temp file, but there is a workaround for it by setting something in the .csproj? I just don't know how or if I can do that on my end. https://blogs.msdn.micro...d-assemblyattributes-cs/Edited by user Friday, September 6, 2019 1:53:57 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
Shari, The code fix worked...
I just reimplemented all the changes on my own pc, and carried the DLL over to the remote server instead of remoting in and running VS there, bypassing the issue I was having with not compiling the build correctly.
|
|
|
|
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