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 “charge $5 for up to 2 pounds, but $10 for 2.01 pounds to 7 pounds,” 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.”

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




Still have questions? No problem! Just 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 July 27, 2020 by Scott C Wilson (c1a473a).