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
ray22901031  
#1 Posted : Wednesday, March 11, 2020 11:52:23 AM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
Just a reminder of an issue that's very important to us. Please see the picture enclosed, as you can see when you have a product template that involves multiple selections, they are not being displayed properly.

Beside the lack of space between values, it seems to be breaking the default template.

Be aware that I have tried to add on the option value a leading space, but apparently when you save the template, the system will trim the leading space.

AC-Problem.jpg (680kb) downloaded 11 time(s).

I hope this picture helps in identifying the problem.

Many thanks

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

Naveed Ashraf  
#2 Posted : Wednesday, March 11, 2020 12:24:08 PM(UTC)
Naveed Ashraf

Rank: Advanced Member

Groups: Admin, Administrators, Developers, Registered, HelpDesk, Authorized User
Joined: 7/31/2019(UTC)
Posts: 77

Was thanked: 8 time(s) in 8 post(s)
Hi,


Please share the product template admin side configurations as well.

Thanks,
Naveed Ashraf
Thanks for your support!
Naveed Ashraf
Ablecommerce.com
Developer Assistance Available
ray22901031  
#3 Posted : Wednesday, March 11, 2020 12:32:22 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
AC-Problem-2.jpg (623kb) downloaded 11 time(s).
shari  
#4 Posted : Thursday, March 12, 2020 5:40:14 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,

You have identified this issue in another post and we have already fixed the issue is our upcoming release.

To make the fix in your current install I am sharing the fix here.

1- Please open file: ~\Website\Areas\Admin\Controllers\ProductController.cs

2- Search this line

Code:
return string.Join(",", values.ToArray());


3- Replace it with

Code:
return string.Join(", ", values.ToArray());


4- Now again assign the values from the admin Edit Product screen and you will see the spaces after the comma.


Please note that this is a controller code change and you will need to compile the code.
ray22901031  
#5 Posted : Sunday, April 19, 2020 10:24:18 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
I know you guys are busy with a lot of things but just to let you know this issue is still not fixed under Version: 9.0.2.6218.

Thanks
shari  
#6 Posted : Thursday, April 23, 2020 6:35:11 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)
Can you please confirm if there is still issue with the same configuration as you mentioned in the first post. i-e in the case of multiple list box option.
We fixed this issue and I have confirmed once again but the fix is missed for Checkbox selection.
You must have found this issue in the checkbox option.

Can you please confirm.
ray22901031  
#7 Posted : Thursday, April 23, 2020 8:09:49 AM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
Yes I am confirming that this issue has NOT been fixed.
shari  
#8 Posted : Thursday, April 23, 2020 8:29:09 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)
Reported as a bug not fixed.

Thanks
ray22901031  
#9 Posted : Thursday, April 23, 2020 12:05:30 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
Hello Shari,

I decided to go ahead and make the changes that were suggested in this post. That will fix the display issue on the front end, but creates a secondary issue on the backend. Going into the backend will now only display your first value and completely ignore anything after that, you should be able to produce this with no difficulties.

Stay safe,
-Ray
shari  
#10 Posted : Thursday, April 23, 2020 12:07:59 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)
Can you please share the line number of ProductController.cs file you updated?

Meanwhile, I am trying to reproduce the issue.
ray22901031  
#11 Posted : Thursday, April 23, 2020 12:15:53 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
Line 5424

BackEnd.jpg (598kb) downloaded 2 time(s). FrontEnd.jpg (667kb) downloaded 2 time(s).
shari  
#12 Posted : Thursday, April 23, 2020 12:37:16 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)
Thanks for the screenshots.

Yes, I am able to reproduce the issue. The fix made was missing the admin side handling.

I am sharing the fix for you to make it work on your install.

1- Find in ~/Areas/Admin/Controllers/ProductController.cs

Code:
List<string> SelectedValue = selectedValue.Split(',').ToList<string>();


2- Replace it with

Code:
List<string> SelectedValue = selectedValue.Replace(", ", ",").Split(',').ToList<string>();


3- Build the project



Please share the ablecommerce version you are using right now.

9.0.2.version??
ray22901031  
#13 Posted : Thursday, April 23, 2020 12:46:31 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
Yes, 9.0.2 - Will Build latter and let you know - thanks

Stay Safe,
-Ray
ray22901031  
#14 Posted : Thursday, April 23, 2020 2:21:19 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
Follow-up on the above topic. I have made the changes to the file and compiled. All is working perfectly, many thanks for your assistance.

-Ray
shari  
#15 Posted : Friday, April 24, 2020 6:08:44 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)
Quote:
Yes, 9.0.2 -


Can you please share the sub version.

like it should be Version: 9.0.2.6167
ray22901031  
#16 Posted : Friday, April 24, 2020 8:44:15 AM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
9.0.2.6218
Users browsing this topic
Guest (10)
Similar Topics
Product templates - Automatic refresh (AbleCommerce 9 Feature Requests)
by ray22901031 5/31/2024 2:01:56 PM(UTC)
9.0.4 product template radiobuttonlist on product variant page toggles on/off (AbleCommerce 9 Bug Reports)
by Joe Payne2 7/30/2021 3:10:04 PM(UTC)
How to add Product Template under Product Listings in Grid (Content Management System)
by dennis3396677 4/14/2021 12:45:53 PM(UTC)
Product templates Sort (AbleCommerce 9 Feature Requests)
by ray22901031 6/11/2020 9:57:23 PM(UTC)
Two small issues with product templates (AbleCommerce 9 Bug Reports)
by ray22901031 2/15/2020 1:28:34 AM(UTC)
What is the best way to sort multiple product templates? (General Questions)
by ray22901031 1/27/2020 10:53:53 PM(UTC)
Sorting product templates (General Questions)
by ray22901031 8/16/2019 8:32:34 AM(UTC)
Product Template Field Content Not Saved; Object Model? (AbleCommerce 9 Bug Reports)
by dlee26051217 6/18/2019 11:31:26 AM(UTC)
Product templates (AbleCommerce 9 Bug Reports)
by ray22901031 5/9/2019 12:18:22 AM(UTC)
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.