Skip to content

magento man

Implement store filter on comma seperated store Id values in Magento grid list

My blog post table contains a store_ids field, which stores store IDs as comma-separated for each blog. <filterSelect name=”store_ids” provider=”${ $.parentName }” component=”Magento_Ui/js/form/element/ui-select” template=”ui/grid/filters/elements/ui-select”> <argument name=”data” xsi:type=”array”> <item name=”config” xsi:type=”array”> <item name=”filterOptions” xsi:type=”boolean”>true</item> <item name=”levelsVisibility” xsi:type=”number”>1</item> </item> </argument> <settings> <options… Read More »Implement store filter on comma seperated store Id values in Magento grid list

Magento 2 I tried to retrieve the custom column field value in the product grid using a renderer data is not psot edit time

$this->addColumn( ‘customer_price’, [ ‘header’ => __(‘Customer Price’), ‘type’ => ‘number’, ‘currency_code’ => $store->getBaseCurrency()->getCode(), //’value’=> 10, ‘index’ => ‘customer_price’, ‘header_css_class’ => ‘col-customer-price’, ‘column_css_class’ => ‘col-customer-price’, ‘editable’ => true, ‘edit_only’ => true, ‘filter’ => false, ‘renderer’ => ‘BlissPricePerCustomerBlockAdminhtmlCatalogProductGridColumnRendererCustomerPriceRenderer’ ] ); $this->addColumn( ‘customer_special_price’,… Read More »Magento 2 I tried to retrieve the custom column field value in the product grid using a renderer data is not psot edit time

How to install Magento 2 on Macbook Air M1, running Ventura?

I tried manually installing magento 2 using the command: php bin/magento setup:install –base-url=http://localhost/m2/ –db-host=localhost –db-name=m2 –db-user=root –db-password=root –admin-firstname=Vladimir –admin-lastname=Despotovic –[email protected] –admin-user=admin –admin-password=admin123 –language=en_US –currency=USD –timezone=America/New_York –use-rewrites=1 I also tried using the warden installation, in details and I tried several bugfixes… Read More »How to install Magento 2 on Macbook Air M1, running Ventura?

Magento2 page size not working on custom attribute

I have created custom product widget and it was working fine in 2.4.6 and I recently upgraded the version to 2.4.7-p3 and page size stopped working. Working code without custom attribute release_date: $collection->addAttributeToSelect(‘*’); $collection->addStoreFilter(); $collection->addAttributeToSort(‘release_date’, ‘desc’); $collection->setPageSize($this->getPageSize())->setCurPage($this->getRequest()->getParam($this->getData(‘page_var_name’), 1)); But when… Read More »Magento2 page size not working on custom attribute