I add an alias to collection for priority sort product with price first. $collection->getSelect() ->columns(["IF((price_index.price && price_index.price > 0),1,0) as have_price"]) ->order('have_price DESC'); It worked well on magnento 2.3 but after upgrade to 2.4, the query return no order have_price , only order FIELD(e.entity_id,1,2,3,4) Is there any way to sort […]
Magento
Hi I use this module EaDesgin/Magento2-City-Dropdown and I observe that the “name” for the input is missing. the value name=”” is blank. How I can add the name for the city or a class or id? All I want is to add there for the city dropdown the css style=”width: […]
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 […]
On Magento 2.3.4 from the console I can run all reindex and running php bin/magento indexer:reindex catalog_product_price error > Product Price index <!DOCTYPE html> <html style="height:100%"> <head> <meta name="viewport" content="width=device-width, > initial-scale=1, shrink-to-fit=no" /> <title> 403 Forbidden > </title></head> <body style="color: #444; margin:0;font: normal > 14px/20px Arial, Helvetica, sans-serif; height:100%; […]
I’m trying to create admin configuration with two SKU’s fields, where later you can choose main product and second product will automatically add to cart for free. So, I created system.xml file first: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> <system> <tab id="learning" translate="label" sortOrder="10"> <label>Learning</label> </tab> <section id="sku" translate="label" sortOrder="130" showInDefault="1" […]
I finally pointed my domain to the server and now I need to set up the SSL certificate. However, the Virtual Host (on Ubuntu 18.04) is giving me a lot of trouble. My website is hosted in /var/www/html/ (bad idea?), so this is what my current host file looks like: […]
I am trying fetch orders using store_id but I am not getting response from Magento rest API which I am using. So far, I have tried follwowing URL patterns to check the response but none of them worked. /rest/V1/orders/{store_id} /rest/default/V1/orders/ /rest/{store_id}/V1/orders/ /rest/all/V1/orders/ After trying above URL patterns I got error […]
I have a CMS page, and in certain place it references a custom block from my module as such: {{block class="MyNotificationBlockNotificationForm" name="notification.form" template="My_Notification::form.phtml"}} This works and shows the template, but I don’t know how to define child block within this template. In my module I have view/frontend/layout/default.xml: <?xml version="1.0"?> <page […]
I’m trying to create a tag extension in Magento PWA studio but it is throwing the below error. I’m following this documentation to create a tag extension. ERROR in ./tagList/src/TagList/tagList.js 24:11 Module parse failed: Unexpected token (24:11) File was processed with these loaders: * ./node_modules/@magento/pwa-buildpack/node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js You may need an additional […]