Skip to content

How to Switch Currency in Magento2

I am creating mobileApp using APIs i used my custom API to return products and used the the function that return price according to the currencycode given below is the code public function getPriceByCurrency($price) { $rate = $this->_currencyFactory->create()->load($this->apiHelper- >getStoreBaseCurrency($this->_storeId))->getAnyRate($this->_currencyCode); $itemAmount… Read More »How to Switch Currency in Magento2

Getting error after overwrite core file of sitemap module. magento2

I have successfully overwrite core file: MagentoSitemapModelResourceModelCatalogProduct but getting error in public function getCollection($storeId) for this: $this->scopeConfig->isSetFlag and $this->getConnection() method not found. When try to overwrite whole file getting this error: Incompatible argument type: Required type: MagentoSitemapHelperData. Actual type: string;… Read More »Getting error after overwrite core file of sitemap module. magento2