You can get Shared Catalog data by shared catalog id programmatically.
Magento\SharedCatalog\Api\SharedCatalogRepositoryInterface Interface used to get, delete and save Shared catalog related things.
You can get Company Programmatically by getByCustomerId( ) function from CompanyManagementInterface.
Magento\Company\Api\CompanyManagementInterface Interface will be used to get Company data using the customer id in Magento 2.
You can get Company admin Programmatically by getAdminByCompanyId( ) function from CompanyManagementInterface. Magento\Company\Api\CompanyManagementInterface Interface will be used to get Company Admin-related data from the Company in Magento 2. You need a Company id to achieve this. You can get assigned a company admin details programmatically by the below way, Using this way you can get the customer object …
Welcome to my Magento 2 blog Today, we’ll explore different cache types in Magento 2 and discover how they can make your store run faster. Cache types in Magento 2 play a vital role in improving the speed and performance of your online store. By caching various components, such as configuration settings, layouts, block output, …
In Magento 2, custom extensions play a crucial role in enhancing functionality and extending the capabilities of online stores. However, keeping track of these extensions and their respective versions can become challenging, especially in larger projects. In this blog post, we will explore a code snippet that allows you to effortlessly extract the names and …
In Magento 2, you may need to serialize a value into an array format for various reasons, such as storing the value in a database or passing it as a parameter in a method call. Fortunately, Magento 2 provides several standard ways to serialize data. Method 1: Using Magento’s SerializerInterface Magento’s SerializerInterface provides a simple …
Hello Magento Devs, In today’s tutorial, i’m going to show you how you can delete file in magento 2 programatically. Method 1 : Using injecting class in constructor We can delete file in magento standard way by injecting below class in constructor. Let’s understand it by a simple example. Method 2 : Directly using object manager (Not …
Hello Magento Devs, All orders have an order status that is associated with a stage in the order processing workflow. In this tutorial we are going to see how we can change order status programatically instead of doing it manually. Here are some default magento 2 order states which you can use in set Order State …
Git is a powerful version control system that is widely used by developers for managing their codebase. One of the lesser-known features of Git is the stash command. This feature allows developers to save changes temporarily and switch to a different branch without losing their work. In this blog post, we will discuss what Git …
Magento 2 is a powerful e-commerce platform that allows developers to create custom solutions for their online stores. One important aspect of any e-commerce solution is the ability to interact with external APIs and services, and CURL is a common tool used for this purpose. In this post, we’ll explore various ways to check the …