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: 
- When adding a product to the basket from an ... (2008-08-27 19:02)
- I have the module configured to add the key ... (2008-08-13 14:50)
- What is the format for the htaccess file if ... (2008-08-12 14:50)
- Is there any way to look up a customer's ... (2008-08-06 18:04)
- I am looking for a module that will allow ... (2008-08-06 18:00)
Top 10 
- 2843 views:
Adding Tokens to Evaluate Expressions - 2779 views:
Is there a way to "Limit" the number of ... - 2724 views:
Why won't you call me for technical support? I ... - 2615 views:
Are license keys valid for more than one store? ... - 2509 views:
I'm trying to enter a license key and get ... - 2495 views:
How do I install a module? - 2346 views:
How do I check for a module upgrade? - 2313 views:
How can display and change the parameters of an ... - 2160 views:
The total on my checkout pages are not correct. ... - 1973 views:
I have select and radio type attributes in my ...
















