If you wan to get some info from ORDER entity there is a method to do that. We can do that by loading by some property or by loading order per ID
If you wan to get some info from ORDER entity there is a method to do that. We can do that by loading by some property or by loading order per ID
To setup SSL on DrupalVM with self-signed certificate you need a few commands and to change config, choose a place where you will store your certificates and then run first
sudo openssl genrsa -out "devcert.key" 2048
then do the
Drupal commerce has rather good documentation for D8 commerce but I will try to summarise here how each order is made, what it needs to be completed and what goes on in lifespan of an order.
So lets start by order entity it self, check
If you are using currency resolver module in d8 you might need to change resolved currency quickly go to
namespace Drupal\commerce_currency_resolver;
and in getCurrency method, put
If you are having any problems with checkout flow (designing custom checkout flow or new payment gateway) check in
Drupal\commerce_checkout\Controller;
and see formPage method, debug it and you can track what is step sent from URL, what is step set in order and do they match and adjust accordingly when needed.
In each controller you make, there are special objects you can use to get data you may need. They are
If for some reason your commerce site gets stuck while in development with some bad data for user cart, to get rid of all the carts you can fire this code to delete all the carts for that user (probably admin or user 1)
To start docker sync in foreground and see what is actually synching use this
docker-sync start --foreground
to do one time synch, use this
docker-sync sync
To re roll broken patch here are the steps, we will use commerce_stripe module as example,
To setup xdebug with docksal and VSCode there is not much to do. Make your debug profile with info like this