I am using Ultimo Infortis theme. I am facing issue in adding product to mini cart. First time when i click on Add to Cart button, it do not show product in mini cart but on cart page it show added product. If i again add product to cart then mini cart show added products lists.
This is happening form the first day. I disabled magento cache but still the issue is there.
Can anyone suggest me how to fix this issue.
Best Answer
That is magento2's default bug
https://github.com/magento/magento2/issues/5377
https://github.com/magento/magento2/issues/4170
for the temporary solution, you can refresh mini cart in all page for that you can use below code.
default.xml
refreshMinicart.phtml
EDIT
/app/design/frontend/Magento/luma/Magento_Theme/layout/default.xml
/app/design/frontend/Magento/luma/Magento_Theme/templates/refreshMinicart.phtml
or if you have created module then you can paste at
app/code/Vendor/Module/view/frontend/layout/
app/code/Vendor/Module/view/frontend/templates/