Echo content error

Hi, this line:

$body->set('delivery_cost_num_format', echo $config['standard']);

Is showing this error:

Parse error: syntax error, unexpected T_ECHO in /home/www/checkout/index.php on line 81

I cannot see what the issue with that line of code is?

Any help appreciated, cheers.

you cannot echo from within the method.

Thats a bit of a bummer. I assume there is no way round this either?

why not just make it echo from with in the method?

Your first reply said:

you cannot echo from within the method.

And now you’re saying:

why not just make it echo from with in the method?

If echo can be done within the method, how would I do so?

Cheers :slight_smile:

Solved it :slight_smile: - thanks for your comments.