It's hard to imagine how such commitments might be maintained, which suggests that fines are more effective than boycotts, especially if they are written into law rather than imposed on an ad hoc basis.
People follow the law to avoid any trouble. 