Section 6. The provisions of this chapter shall not apply to a written contract executed prior to its effective date, unless either the parties agree by mutual consent that the provisions of this chapter shall apply or such contract is extended or renewed after the effective date of this chapter. The provisions of this chapter shall prevail over any conflicting or inconsistent provisions of chapter one hundred and four and chapter one hundred and six.