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
rlopez397954  
#1 Posted : Monday, October 26, 2020 12:27:38 PM(UTC)
rlopez397954

Rank: Advanced Member

Groups: Authorized User, Registered, Developers, HelpDesk
Joined: 11/30/2018(UTC)
Posts: 86

Thanks: 8 times
Was thanked: 1 time(s) in 1 post(s)
After upgrading from 9.0.2 to 9.0.3 there are two new localization strings that will not update when clicking the save button in the Resource add box. Below are the two listed that will not save. I believe it has to do with Syntax length of the strings. As a note all of the others saved ok.

retail.validatepaymentprofile.billingaddressmessage
Before adding a new payment profile, check to make sure the <i><b>billing address</b></i> for your account <i><b>matches the card</b></i> being entered below.

retail.validateeditpaymentprofile.billingaddressmessage
Before editing a payment profile, check to make sure the <i><b>billing address</b></i> for your account <i><b>matches the card</b></i> being entered below.

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

shari  
#2 Posted : Monday, October 26, 2020 12:46:18 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)
I am able to reproduce the issue. All resource strings that contain HTML tags will not be updated.
Just to confirm that this issue isn't related to release 9.0.3. It was there from start but never identified.

Thanks for identifying the issue. I am registering this as a bug.

To solve the issue:

1- Open file \Website\Areas\Admin\Models\LocalizationModel.cs
2- Search for
Code:
public class ResourcesModel
    {
        [Required]
        public string Name { get; set; }

        public string Translation { get; set; }

        public int LanguageId { get; set; }

        public int Id { get; set; }
    }

3- Replace with
Code:
public class ResourcesModel
    {
        [Required]
        public string Name { get; set; }
        [AllowHtml]
        public string Translation { get; set; }

        public int LanguageId { get; set; }

        public int Id { get; set; }
    }

4- Compile the project

Thanks
Katie S  
#3 Posted : Monday, October 26, 2020 4:12:49 PM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 472

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
An easier update is to remove the html from the message text.
This string was added specifically for the Payment Profile feature that is used with Authorize.net CIM. If you are not using this feature, then the text will never appear in the store.

Thanks for reporting the issue.
Katie
Thanks for your support!

Katie
Secure eCommerce Software and Hosting
rlopez397954  
#4 Posted : Thursday, October 29, 2020 10:40:48 AM(UTC)
rlopez397954

Rank: Advanced Member

Groups: Authorized User, Registered, Developers, HelpDesk
Joined: 11/30/2018(UTC)
Posts: 86

Thanks: 8 times
Was thanked: 1 time(s) in 1 post(s)
Just getting back to this. We don't use that Payment Profile. I just removed the HTML and it worked with adding the resources.

Thank all for your help.
Katie S  
#5 Posted : Thursday, October 29, 2020 1:13:32 PM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 472

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
Your welcome!

This morning, I removed the html from the language string text in the upgrade instructions. It certainly wasn't necessary to have in there.

Katie
Thanks for your support!

Katie
Secure eCommerce Software and Hosting
Users browsing this topic
Guest (4)
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.