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 AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
IDAutomation  
#1 Posted : Monday, August 26, 2019 9:44:40 AM(UTC)
IDAutomation

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.

UserPostedImage

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:
UserPostedImage


The last set of 10, only half would attach and then I was unable to attach a second digital to the first two options:
UserPostedImage

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

IDAutomation  
#2 Posted : Monday, August 26, 2019 11:24:09 AM(UTC)
IDAutomation

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

IDAutomation  
#3 Posted : Monday, August 26, 2019 12:09:57 PM(UTC)
IDAutomation

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 :(
shari  
#4 Posted : Thursday, August 29, 2019 5:31:51 AM(UTC)
shaharyar

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!
shari  
#5 Posted : Monday, September 2, 2019 10:00:18 AM(UTC)
shaharyar

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
IDAutomation  
#6 Posted : Tuesday, September 3, 2019 10:06:28 AM(UTC)
IDAutomation

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.)
shari  
#7 Posted : Tuesday, September 3, 2019 10:50:38 AM(UTC)
shaharyar

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.

shari  
#8 Posted : Tuesday, September 3, 2019 11:19:23 AM(UTC)
shaharyar

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.
thanks 1 user thanked shaharyar for this useful post.
IDAutomation on 9/6/2019(UTC)
IDAutomation  
#9 Posted : Wednesday, September 4, 2019 8:11:29 AM(UTC)
IDAutomation

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 Go to Quoted Post
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.
IDAutomation  
#10 Posted : Wednesday, September 4, 2019 10:41:00 AM(UTC)
IDAutomation

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.

UserPostedImage

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

shari  
#11 Posted : Wednesday, September 4, 2019 12:55:07 PM(UTC)
shaharyar

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.
MikeR  
#12 Posted : Wednesday, September 4, 2019 12:57:57 PM(UTC)
MikeR

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?
Thank you for your support!
Mike Randolph
AbleCommerce.com
IDAutomation  
#13 Posted : Wednesday, September 4, 2019 1:20:32 PM(UTC)
IDAutomation

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 Go to Quoted Post
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.
IDAutomation  
#14 Posted : Wednesday, September 4, 2019 1:24:00 PM(UTC)
IDAutomation

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 Go to Quoted Post
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.
MikeR  
#15 Posted : Wednesday, September 4, 2019 2:17:23 PM(UTC)
MikeR

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.
Thank you for your support!
Mike Randolph
AbleCommerce.com
IDAutomation  
#16 Posted : Friday, September 6, 2019 1:47:17 PM(UTC)
IDAutomation

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

IDAutomation  
#17 Posted : Friday, September 6, 2019 3:15:29 PM(UTC)
IDAutomation

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.
Users browsing this topic
Guest (12)
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.