Skip to content

admin

Auto Added by WPeMatico

export csv sort according to desc creation time

How to sort export csv file according to desc order by the creation time <exportButton name=”export_button”/> <exportButton name=”export_button”/> <paging name=”listing_paging”/> </listingToolbar> <columns name=”thecoachsmb_blog_post_columns”> <selectionsColumn name=”ids”> <settings> <indexField>customer_feedback_id</indexField> <resizeEnabled>false</resizeEnabled> <resizeDefaultWidth>55</resizeDefaultWidth> <visible>false</visible> </settings> </selectionsColumn> <column name=”post_id”> <settings> <filter>textRange</filter> <label translate=”true”>ID</label> <sorting>desc</sorting> </settings>… Read More »export csv sort according to desc creation time

How to make column resizable

I want to make my columns in admin resizable. This is not working. <resizeEnabled>true</resizeEnabled> <resizeDefaultWidth>150</resizeDefaultWidth> <column name=”title”> <settings> <filter>text</filter> <editor> <validation> <rule name=”required-entry” xsi:type=”boolean”>true</rule> </validation> <editorType>text</editorType> </editor> <label translate=”true”>Title</label> <resizeEnabled>true</resizeEnabled> <resizeDefaultWidth>150</resizeDefaultWidth> </settings> </column>

Hide/Remove selectionsColumn

I want to remove or hide this without affecting the export csv. How? <selectionsColumn name=”ids”> <settings> <indexField>k_id</indexField> <resizeEnabled>false</resizeEnabled> <resizeDefaultWidth>55</resizeDefaultWidth> </settings> </selectionsColumn>

How to save hide image programmatically in magento 2 admin product edit?

I want to set & save the hidden product image( Hide from Product Page ) programmatically in Magento 2 in admin panel? I tried this way $product = $this->productLoader->create()->load($productId); $mediaAttribute = array (); $productImage = ‘/Applications/MAMP/htdocs/magento245p1v1/pub/media/catalog/product/W/S/WS03-XS-Red_1219111980.jpg’; $product->addImageToMediaGallery($productImage, $mediaAttribute, false, false);… Read More »How to save hide image programmatically in magento 2 admin product edit?