Skip to content

products

Auto Added by WPeMatico

Hide a Ui Component Field based on condition on product edit

I have created custom field in Magento 2.4.1 product edit page, product_form.xml <field name=”type” formElement=”select”> <argument name=”data” xsi:type=”array”> <item name=”options” xsi:type=”object”>CeymoxDigitalCardModelDigitalCardOptions</item> <item name=”config” xsi:type=”array”> <item name=”source” xsi:type=”string”>block</item> </item> </argument> <settings> <dataType>select</dataType> <label translate=”true”>Digital Card Type</label> <dataScope>type</dataScope> </settings> </field> <file name=”csv_uploader”… Read More »Hide a Ui Component Field based on condition on product edit

Paginator doesn’t work on catalogsearch/result page, site loads all the products; Retrieving SKU and rendering block on frontend

There is 3rd party module that has the class called ExactMatch. public function getExactMatch() { $params = $this->request->getParams(); if (!empty($params[‘q’])) { $sku = strtoupper(urldecode($params[‘q’])); try { $product = $this->productRepository->get($sku); $result = ($product->getStatus() == 1) ? $product : 0; } catch… Read More »Paginator doesn’t work on catalogsearch/result page, site loads all the products; Retrieving SKU and rendering block on frontend