I’ve been working with a couple of developers in my office on React JS projects, who have varied levels of React JS experience. We’ve been solving some crazy problems like handling the weird way Redux does state initialization and making an axios request payload work with PHP and understanding what […]
Daily Archives: October 18, 2019
This article was created in partnership with Flatfile.io. Thank you for supporting the partners who make SitePoint possible. Close your eyes and imagine what it is like to import data into your application. Now open them. Does it look something like this? When creating a new or improving an existing […]
I have a custom eav attribute on a product that is a of type dropdown. When the product is saved, the attribute is saved as the optionId. How do I get its label to be able to display it properly on the frontend. Note: I do not want to load […]
I am working on a magento project. it was working fine till today.but today when i open it its not working and following error is coming in error log PHP Fatal error: Uncaught TypeError: Argument 1 passed to MagentoCatalogModelResourceModelProductCollection::addIsSaleableAttributeToFilter() must be of the type array or null, integer given, called […]
I am trying to get a magento customer increment ID. I’m thinking I have to use the resource-model class just not sure what the best way to access it is or how to get it. public function __construct( MagentoCustomerApiCustomerRepositoryInterface $customerRepositoryInterface, MagentoCustomerModelResourceModelCustomer $resourceModel, ) { parent::__construct(); $this->customerRepo = $customerRepositoryInterface; $this->customerResource = […]
Magento 2.2 How to redirect to homepage on store view switch? I have a multilingual site and want to redirect to homepage every time the store view change. Thanks!