a samples for macula framework, clone functions from open-cart project