![]() |
Fix to Multiple Custom Search Fields |
Post Reply
|
| Author | |
slinc
Newbie
Joined: 10-February-2007 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Topic: Fix to Multiple Custom Search FieldsPosted: 29-September-2009 at 12:50pm |
|
I decided to revisit the issue of Product Carts inability to assign multiple custom search fields to a product.
Example: Color: Blue Color: Green Color: Black I spent a few minutes looking at the code and think I may have fixed this limitation. I am not a developer so please test this out and let me know if it works for you as well. All I did was comment out a section of javascript code. To do this find the "modifiyProduct.asp" file under whatever you have renamed your admin folder. Then comment out the section of code below at around line 2196: (note: /* and */ are the comment tags): /*for (var i=0;i<=SFCount;i++) { if (SFID==tmpSFID) { SFVID=tmpSVID; SFVALUE=tmpSValue; SFVORDER=tmpSOrder; found=1; break; } }*/ Now save and upload and test it out. If it worked like it did for me I can now add multiple values.
Please let me know if this works for you. I have not tested if there will be any issues on the front end displaying this information but at least it is in the database. |
|
![]() |
|
lelady
Newbie
Joined: 22-November-2005 Location: United States Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 05-February-2010 at 4:57am |
|
Have you now been using this on a live store? Is it working with no issues? This would be VERY helpful for me.
Thank you! Vicky |
|
![]() |
|
slinc
Newbie
Joined: 10-February-2007 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 05-February-2010 at 9:40am |
|
Yes, we have been using this for about 6 months now. It was the only way we could use the Custom Search Fields since only being able to use 1 was not an option for us.
|
|
![]() |
|
Greg Dinger
Certified ProductCart Developers
Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
Quote Reply
Posted: 05-February-2010 at 9:46am |
|
Any chance of seeing it in operation? May we see your site? I have people asking for this all the time and I'd like to see how it works from the visitor's perspective.
|
|
![]() |
|
lelady
Newbie
Joined: 22-November-2005 Location: United States Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 05-February-2010 at 1:08pm |
|
I am in the process of trying this - that same string is found in the AdminCustom.asp file - have you commented it out there too? I found that when I was trying to add multiples from that page. It seems to be working - but needs some refining in how it shows up on my product page. ie:
current: Custom Field 1 : Custom Data Custom Field 1: Custom Data Custom Field 1: Custom Data Custom Field 2: Custom Data Custom Field 2: Custom Data I think this needs to look a bit cleaner - ie: Custom Field 1: Custom Data, Custom Data, Custom Data etc..... Greg - I believe I was one of the folks that asked you about this! Vicky |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() 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 |