Translate Page To German Tranlate Page To Spanish Translate Page To French Translate Page To Italian Translate Page To Japanese Translate Page To Korean Translate Page To Portuguese Translate Page To Chinese Translate Page To Russian Translate Page To Dutch

09 Jan 2009 
Support Center » Knowledgebase » What is field expression, what can I specify here when importing products?
 What is field expression, what can I specify here when importing products?
Solution

You can specify simple calculation for numeric fields rather that just directly importing data from .csv. Current field value defined as "x" variable, just use it in your expressions.

Examples:

=x*1.2

- value will be multiplied by 1.2 (increased by 20%) and imported into a field. Usefull when importing product prices from your wholesale .csv file. You may just put your markup.

=x*abs(x^2-34.67) + sin(x) - pi

- it is useless but may give an idea of what can be used in this field.

This expression will return 1 if field value is greater than 0 and 0 if it is 0 or smaller:

=Round((abs(x)+x)^0.0000001)

- it can be used to automatically set product status (In stock / Out of stock) depending on product quantity. You have to assign product quantity .csv column to "Product status" field and use mentioned expression. You can assign product quantity .csv column to products_quantity database field as well - one column can be assigned to two or more database fields at the same time.

Mathematical operations supported: * - multiplication; / - division; - subtraction; + addition; < less than; < more than; = equal List of functions: sqrt, div, mod, int, frac, random, trunc, round, sin, sinh, arcsin, arcsinh, cos, cosh, arccos, arccosh, tan, tanh, arctan, arctanh, cotan, cotanh, arccotan, arccotanh, sec, arcsec, sech, arcsech, csc, csch, arccsc, arccsch, abs, ln, lg, log, pi, exp, ! (factorial), ^ (degree)

Note*: Expressions are mathematical equations so they can be used only on numeric fields such as price, quantity etc. You should not use them for string, date/time and other fields.



Article Details
Article ID: 11
Created On: 23 May 2007 03:38 AM

 This answer was helpful  This answer was not helpful

 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | Troubleshooter | News | Downloads | Support Forum | Public Bug Tracker | Documentation | Beta Testers
Language:

Help Desk Software By Kayako SupportSuite v3.30.01