Maybe this can be explained by the fact that there are two different places where customer can add an VAT number. Customer address has a VAT ID field that is stored to the vat_id field in customer_address_entity table.
Customer entity on the other hand has a different Tax/Vat field that is used for example when customer is registering and he is put to ...
There are many different ways to do this.
One way is to make an after plugin for place order like this:
I have been chasing my tail for hours on this ... :/
lm713: "Try changing the PHP handler used by Apache on the Magento server"
this did the trick, i am running magento 2 in cpanel environment and the php version was configured to use CGI as the PHP Handler. I changed it to suphp and all my api queries are now working!
Most effective is probably to use a SQL query with joins. E.g. like this
public function execute()
$customerId = 1;
$salesTable = $this->resource->getTableName('sales_order');
$salesItemTable = $this->resource->getTableName('sales_order_item');
$connection = $this->resource->getConnection();
$select = $connection-&...
I have used ViewModel instead of block class - Magento 2.3 onwards
class BasysInfo implements \Magento\Framework\View\Element\Block\ArgumentInterface
You could do this with a layout XML file inside of your module. You need to have a section in your module's config.xml like this to let Magento load your module's layout XML (path: app/design/frontend/base/default/layout/mymodulename.xml):
in \app\design\adminhtml\default\default\template\sales\order\view\tab\info.phtml you have <div class="order-totals">. This is the place where order_totals block is rendered.
to add row under subtotal:
override : app\design\adminhtml\default\default\template\sales\order\create\totals\subtotal.phtml.
Please follow the below steps to get the shipping method and its details in phtml file.
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/...
We need to create a plugin for the retrieve custom option from the cart to order.
First We need to create di.xml.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">