Format cart and pages with merge