Skip to main content

Posts

Showing posts from October, 2023

Sync prices in Magento from ERP system

Price synchronization is a critical aspect of e-commerce applications, and its importance cannot be understated. Price synchronization in e-commerce applications is essential for maintaining consistency, competitiveness, and customer trust. It also streamlines operations, reduces errors, and enables businesses to adapt to market changes, ultimately leading to better customer experiences and increased revenue. So it's important to have a fast and efficient synchronization process for syncing prices from another application to Magento. Let's see how we can achieve this. This is the main function that needs to be called for importing the price. In this, we can see we have imported the price for a multiwebsite setup. If you have a system with a single website, you can remove the loop and use the rest of the code. public function execute() { $prices = []; $websites = $this->systemConfig->getWebsites(); foreach ($websites as $website) { if (