When I attempt to use the example filters provided in the 4.x documentation for the module I get errors. Why?
The problem here is lack of 5.x specific documentation. the 4.x filtering approach won't work in the 5.x version of the store.
In 4.x, all stores used dbase databases. In 5.x it's a mix of dbase and MySQL but the language used to communicate with the databases, regardless of the type, uses a MySQL format and it is this format that the filters have to use in the 5.x version of the module.
For example, a 4.x filter might have looked like:
(%prodid% EQ '001')
The 5.x/MySQL version would be:
(%prodid% = '001')
Similarly, the 4.x filter:
('01' CIN %prodcode%)
can be approximated with:
(%prodcode% LIKE '%01')
The Miva version of MySQL doesn't support all MySQL operators (or even most) It does however support the string comparison operators including LIKE (but don't be suprised if not all of them work; there is no specific documentation available to developers as to what is and is not supported). You can find the MySQL documentation for these operators here:
http://dev.mysql.com/doc/refman/5.0/en/string-comparison-functions.html
Last update: 2007-10-10 13:25
Author: Brok
Revision: 1.0
You cannot comment on this entry
Most Recent FAQ Entries: 
- I have the UPS Custom Integration configured so that ... (2008-07-11 10:21)
- I would like to conditionally display something for a ... (2008-07-03 17:37)
- Is there any way to configure specific global headers ... (2008-06-02 18:28)
- I pay my affiliates with gift certificates from your ... (2008-05-29 10:42)
- Is there any way to add a negative number ... (2008-05-22 13:51)
Top 10 
- 2528 views:
Adding Tokens to Evaluate Expressions - 2515 views:
Why won't you call me for technical support? I ... - 2496 views:
Is there a way to "Limit" the number of ... - 2405 views:
Are license keys valid for more than one store? ... - 2313 views:
I'm trying to enter a license key and get ... - 2276 views:
How do I install a module? - 2137 views:
How do I check for a module upgrade? - 2135 views:
How can display and change the parameters of an ... - 1964 views:
The total on my checkout pages are not correct. ... - 1846 views:
I have select and radio type attributes in my ...
















