define([ 'mage/adminhtml/grid' ], function () { ‘use strict’; return function (config) { var selectedProducts = config.selectedProducts, categoryProducts = $H(selectedProducts), gridJsObject = window[config.gridJsObjectName], tabIndex = 1000; /** * Show selected product when edit form in associated product grid */ $('bliss_products').value = Object.toJSON(categoryProducts); /** * Register Category Product * * @param {Object} […]
Magento2
Physical themes Magento changes to virtual theme when you change branch on git it is at 1 on the database it should be set to 0. /** * Checks all physical themes that they were not deleted * * @return $this */ public function checkPhysicalThemes() { $themes = $this->_collectionFactory->create()->addTypeFilter(ThemeInterface::TYPE_PHYSICAL); /** […]
Magento 2.4.6 // vendor/module-user-access-control-admin-ui/view/adminhtml/ui_component/customer_form.xml <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <fieldset name="test_control"> <!-- Profile field --> <field name="profile" formElement="select" component="Vendor_UserAccessControlAdminUi/js/form/element/profile"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="filterOptions" xsi:type="boolean">false</item> <item name="multiple" xsi:type="boolean">false</item> </item> </argument> <settings> <label translate="true">Access profile</label> <elementTmpl>Vendor_UserAccessControlAdminUi/form/element/profile</elementTmpl> </settings> </field> <field formElement="checkbox" name="is_profile"> <settings> <dataType>boolean</dataType> <dataScope>is_profile</dataScope> <label translate="true">Is Profile</label> <notice translate="true">Check this […]
I need to edit titles, meta descriptions, etc. for my products, but there is no “Search Engine Optimization” section under the products. It shows up under Categories and other pages, but not products. Catalog>Products>Edit brings me to the page where it should be, but it is not there. There is […]
On specific categories (not all of them), when switching between store views for products, I am getting 403 Forbidden (Nginx). This only happens for products, not categories. Following the debugging process, I found out that the problem comes from the “uenc” parameter (vendor/magento/module-store/App/Response/Redirect.php > _getUrl() method) which is not returning […]
I’m trying to create a custom dropdown for the size swatch of configurable products. I was getting an error on my iPhone which doesn’t show the size attribute on mobile so I was converting the size swatch to a phtml file rather than javascript, some developers already created the custom […]
i want to make search like below image in Magento2 please guide me When we click All button on left of the input field , it will list categories we can use feature like search in category
<?php namespace BlissPricePerCustomerBlockAdminhtmlTab; use MagentoCatalogModelProductVisibility; use MagentoFrameworkAppObjectManager; use MagentoStoreModelStore; use MagentoBackendBlockTemplateContext; use MagentoBackendHelperData; use MagentoCatalogModelProductFactory; use BlissPricePerCustomerModelResourceModelCustomerPriceProdcutCollectionFactory; use MagentoFrameworkRegistry; use MagentoFrameworkModuleManager; use MagentoStoreModelStoreManagerInterface; use MagentoBackendBlockWidgetGridExtended; class Productgrid extends Extended { /** * @var MagentoFrameworkRegistry */ protected $coreRegistry = null; /** * @var MagentoCatalogModelProductFactory */ protected $productFactory; /** * @var BlissPricePerCustomerModelResourceModelCustomerPriceProdcutCollectionFactory […]
I’m in the process of migrating my magento 2.4.4 to magento 2.4.6. This version of magento removed some Zend classes and replaced them with laminas. I’ve been able to fix my custom code almost entirely, my only issue is the Zend_Http_UserAgent_Mobile class which keeps throwing errors. How can I replace […]