By default when I upload an image to Magento using the admin panel, it includes all the Roles (Listing Hover Image, Swatch, etc.). I want it just to select Base, Small and Thumbnail roles. So is there a way for me to change the image uploads default Role selection? (i.e. […]
Magento
I am trying to get the value of system.xml from a plugin I am developing. <field id="Moduleposition" translate="Module" type="multiselect" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1"> <label>Seleccionar tienda</label> <source_model>MageplazaSimpleshippingModelConfigSourceConfigOption</source_model> </field> From the following function I am initially trying to return a test value to show it inside an alert public function getSelectStore() { […]
Is there a way to call multiple blocks in a single controller in Magento 2? The below code only populate the single grid but I want it to return two blocks. public function execute() { /* @var MagentoFrameworkControllerResultRaw $resultRaw / $resultRaw = $this->_resultRawFactory->create(); return $resultRaw->setContents( $this->_layoutFactory->create()->createBlock( VendorModuleNameBlockAdminhtmlReportGrid::class, 'mytestgrid' )->toHtml() ); […]
I need to alter all the top menu from my website based on a user data filled when the user is registered. “Casual” users will are using “root” category, excluding “new menu”. Now, I need the other users to access “new menu”, but not the other categories. Is is possible […]
I’m working on an e-commerce that have many thousands of products, something like 80,000 products. The problem is that when I go to Products page, it keeps loading and then crashes or return a 504 gateway error. I have tried to increase the timeout to 600 seconds, and it still […]
From my understanding I can create my own integration by System->extension->integration. How do I setup the webservice and let third party to connect my Magento to create system user with user-roles account? Is there any documentation for third party how they get connect and posting request? I only found how […]
Getting this error when I am registering one extension. Parse error: syntax error, unexpected ‘?’ in C:wamp64wwwMagento2vendorsymfonypolyfill-php72Php72.php on line 185
I’m trying to show minicart in both header and footer. I have added a new phtml in footer layout and added below code. <?php echo $this->getLayout() ->createBlock('MagentoCheckoutBlockCartSidebar') ->setTemplate('Magento_Checkout::cart/minicart-footer.phtml') ->toHtml(); ?> Now the minicart is showing in footer too but when add to cart is triggered the product is added to […]
I’m using Order’s increment ID in the search by keyword field to get the search results. However, it only works with 00000XXXX and not by XXXX. Search by keyword is using Fulltext searching but how to get the results with the like query? Please share the solution.