Well, I managed to get this to work. The code needed to be altered a little.
Maybe it can help someone else in the future, so this is what I did:
In cart - showcart.php I added the following code to get the variables in the session:
<?php
$session = JFactory::getSession();
$registry = $session->get('registry');
$session->set('value_format', $value_format);
$registry->set('value_format', $value_format);
?>
In the email HTML-version I added the following code:
<?php
// Grab session ##
$session = JFactory::getSession();
$value_format = $session->get('value_format');
echo $value_format;
?>
One tip if you want to know what Joomla stored in the session (this helped me a lot):
<?php
$registry = $session->get('registry');
echo $registry;
?>
Maybe it could be better or cleaner, but it works!
So, maybe someone can
help me with my other question
???