Skip to content

Modules

Mark Moffat edited this page Oct 7, 2020 · 2 revisions

It's possible to extend the basic functionality of expressCart using modules. All modules are loaded from /lib/modules folder at startup and added to the config for use throughout the app. There is an example module shipping-basic to calculate the flat shipping rate. One way to extend this basic module is to call a Postage service like easypost to get an accurate rate for your location, package size etc.

"modules": {
    "enabled": {
        "shipping": "shipping-basic",
            "discount": "discount-voucher",
            "reviews": "reviews-basic"
         },
    "loaded": {
        "shipping": {},
        "discount": {},
        "reviews": {}
    }
}
Clone this wiki locally