Colon Separated Pair configuration

Specifying configuration values using colon-separated pairs in Zen Cart

Frequently a configuration setting will require several pieces of input - for example, the Table Rate shipping configuration.

To express the configuration “for up to 2 pounds, charge $5, but for over 2 pounds but under 7 pounds, charge $10,” the following string is used:

2:5,7:10 

This could also express the configuration “1-2 items, charge $5, 3-7 items, charge $10.” How the figures are interpreted depends on the context in which they are used.

This pattern of configuration, called “colon-separated pairs” is used in a number of places in Zen Cart.




Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.

Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified August 23, 2020 by Scott C Wilson (9bee9b7).