Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

New answers tagged

1

Please read this tutorial from starting and follow it, then you will get your answer without any issue: https://devdocs.magento.com/guides/v2.3/soap/bk-soap.htmlenter link description here This tutorial is providing by DevDocs, it will help you alot.


1

I just got one solution for this. I dont know it is the right way to implement the requirement. Any way i have done like below. First i just created a before plugin for the filter apply function like below <type name="Magento\Framework\View\Element\UiComponent\DataProvider\FilterApplierInterface"> <plugin name="sales_order_grid_filter_modifier"...


1

Pattern change in Magento 2.3.x: Update Code: $collection = $this->customerCollectionFactory->create(); $collection->addAttributeToFilter( [ ['attribute' => 'email', 'like' => "%{$tim}%"], ['attribute' => 'firstname', 'like' => "%{$tim}%"], ['attribute' => 'lastname', 'like' => "%{$tim}%"] ] );


0

I resolved this by using this code. public function prepareDataSource(array $dataSource) { if (isset($dataSource['data']['items'])) { foreach ($dataSource['data']['items'] as & $item) { $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $updatedat = $objectManager->create('...


2

updated_at field is available in customer_entity table and we are using customer_grid_flat table to display customer grid data in Magento. So if you want to display updated_at field in your grid then you should follow below steps. Create customer_listing.xml file here in your custom module app/code/Vendor/Module/view/adminhtml/ui_component/...


0

Here is the module which worked to create a custom column in any admin grid. You have to implement same for customer grid: https://drive.google.com/file/d/13l29KVZSekCBEmzNtuxc3FsqjoCI9UL1/view


0

Add the following line with your code: $collection->getSelect()->reset(\Zend_Db_Select::COLUMNS) ->columns('time'); $collection->getSelect()->group('time');


0

You will need to write something like this $collection->getSelect() ->joinLeft( array('arl' => new Zend_Db_Expr(" ( $select ) ")), 'rma_log.order_id = arl.order_id', array() ); Where $select is your inner query


0

Try this below code : $collection = []; $finalsearch = 'test,magento,abc,xyz'; $commaList = explode(',', $finalsearch); foreach ($commaList as $key => $value) { $collection[] = $this->collectionFactory->create()->addFieldToFilter('tags', ['like' => '%' . $value . '%'])->getData(); } return $collection; make sure your collection class ...


0

Try using this way $collection = []; $finalsearch = 'test,magento,abc,xyz'; $commaList = explode(',', $finalsearch); foreach ($commaList as $key => $value) { $collection[] = $this->collectionFactory->create()->getCollection()->addFieldToFilter('tags', array('like' => '%'.$value.'%')); } return $collection;


0

this is because you are creating a new collection with every iteration, thus only having the last one $collection = array(); $finalsearch = 'test,magento,abc,xyz' $commaList = explode(',', $finalsearch); $collection = $this->collectionFactory->create(); foreach ($commaList as $key => $value) { $collection->addFieldToFilter('tags', array('...


0

It seems that you want to join to a table that is retrieving data from another table in your join. In this case, i would suggest to use mysql view concept. So login to your phpmyadmin and create a view using following syntax. CREATE VIEW view_rma_log AS SELECT max(created_at) AS created at, order_id FROM rma_log GROUP BY order_id; This view will be ...


1

You've got an issue with your query near order_item.product_id. I've fixed the issue and shared the answer below. Please give a try with it. $customerId = Mage::getSingleton('customer/session')->getCustomer()->getId(); $orders = Mage::getResourceModel('sales/order_collection')->addFieldToSelect('*') ->addFieldToFilter('main_table....


Top 50 recent answers are included