[docs] xmldocs - heins modified refs/AutoModifier

docs at icdevgroup.org docs at icdevgroup.org
Sun Oct 23 10:38:21 EDT 2005

User:      heins
Date:      2005-10-23 14:38:21 GMT
Modified:  refs     AutoModifier
* Add some docs for AutoModifier that describe my most recent change.

Revision  Changes    Path
1.4       +33 -0     xmldocs/refs/AutoModifier

rev 1.4, prev_rev 1.3
Index: AutoModifier
RCS file: /var/cvs/xmldocs/refs/AutoModifier,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- AutoModifier	20 Oct 2005 14:09:50 -0000	1.3
+++ AutoModifier	23 Oct 2005 14:38:21 -0000	1.4
@@ -31,6 +31,39 @@
 or other custom product attributes. These attributes will probably
 be used in a custom &PERL; code which will scan the items in the electronic
 &glos-cart; and make decisions.
+There are several forms of the specification. The simplest is
+a field with no table specification:
+	AutoModifier heavy
+This one has a bit of "magic" associated. To account for matrix-option
+products, the various product tables are searched, for both the item
+code and the base SKU associated with the item.
+You can also rename the attribute to something different than the
+	AutoModifier heavy=heavy_item
+This would place the contents of the "heavy_item" field in the
+"heavy" attribute.
+If you want to use a non-products table to load the modifier, you
+specify it in the usual Interchange colon-separated syntax:
+	AutoModifier extra:heavy
+This would look in the <database>extra</database> table for the
+"heavy" field.
+You can also specify that another attribute holds the key for
+the modifier:
+	AutoModifier extra:heavy:category
+This would look in the <database>extra</database> table for the
+"heavy" field, using the "category" attribute in the item as
+the key.
 __NAME__ notes

More information about the docs mailing list