Announcement

Collapse
No announcement yet.

searching custom property

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    searching custom property

    We are building an accessories catalog in which many of the products correspond to a certain year (or number of years) of a motor vehicle.

    Most of our products have a custom property called "DateRange". It contains an array of years that the product applies to. For example, product A's DateRange variable contains the following info:

    1996, 1997, 1998, 1999

    We would like customers to be able to search based on vehicle and the year of that vehicle. The setup to search on vehicle has been accomplished, but when we try the year we run into a bit of an issue... it seems that Actinic searches for an exact match in the DateRange field.

    We would like to know how to modify any scripts or setup in Actinic that would allow us to search for a partial match in the DateRange values.

    Does this make sense? We've tried a number of things including changing line 467 of "Search.pm" to:

    my $sWord = "!!$sPropertyName!*$sPropertyValue*";

    But nothing's worked yet.

    Thanks for your help.

    Brendan

    #2
    Instead of using custom properties, create attributes and choices that contain the dates - i.e. an attribute called 'Date' and choices of '1996', '1997', '1998' and '1999'.

    Then you can set up the search to search for across all products that are available in a particular year.

    Comment

    Working...
    X