Drupal Commerce 2.x Notes & code snippets
Unless you know you want to be reading this you probably don't! It's currently a dumping ground for Commerce 2.x notes and code that we've come across and are likely to need again some time, maybe you need them too?
Formatting prices in code:
NumberFormatterFactoryInterface $number_formatter_factory to create a numberFormatter instance: $this->numberFormatter = $number_formatter_factory->createInstance();
Then set the details you want:
$this->numberFormatter = $number_formatter_factory->createInstance();
Dear Dana and the Blue Fusion team,
Just wanted to say a big thankyou for my website. It looks amazing and it was an absolute pleasure dealing with you.
Thanks for listening so well to what I needed and for providing such a good solution.
Thanks too for your patient tuition which means I can now easily update my course and product info myself. You are my website gurus. I'm already recommending you. Thank you so much for all your help.