ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Fix to Multiple Custom Search Fields
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Fix to Multiple Custom Search Fields

 Post Reply Post Reply
Author
Message
slinc View Drop Down
Newbie
Newbie


Joined: 10-February-2007
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote slinc Quote  Post ReplyReply Direct Link To This Post Topic: Fix to Multiple Custom Search Fields
    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.
Back to Top
lelady View Drop Down
Newbie
Newbie


Joined: 22-November-2005
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote lelady Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
slinc View Drop Down
Newbie
Newbie


Joined: 10-February-2007
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote slinc Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
lelady View Drop Down
Newbie
Newbie


Joined: 22-November-2005
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote lelady Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.