Print Page | Close Window

Fix to Multiple Custom Search Fields

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=3071
Printed Date: 20-July-2025 at 10:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Fix to Multiple Custom Search Fields
Posted By: slinc
Subject: Fix to Multiple Custom Search Fields
Date Posted: 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.



Replies:
Posted By: lelady
Date 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


Posted By: slinc
Date 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.


Posted By: Greg Dinger
Date 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.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: lelady
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net