I would like to show a product with its details in my module view page. There is summery of my code, it maybe boring but I have exhibit my issue clearly. 1)File name, path and code: MyVendor/MyModule/Api/Data/ViewInterface.php namespace MyVendorMyModuleApiData; interface ViewInterface { const VALUE = 'value '; /** * Get […]
Magento2
I am trying to push code from my local to staging and getting the below error. Shouldn’t on deploy magento update the composer.lock file based on what’s in my json composer file? I am not getting how to add magento/inventory-composer-metapackage to the lock file. Warning: The lock file is not […]
The default livereload host is 127.0.0.1, but I have the access problems to access the this host directly in WSL2. Need to change it to http://localhost:35729/livereload.js Found the solution to change it via appetcenv.php – to add system' => [ 'default' => [ 'design' => [ 'footer' => [ 'absolute_footer' […]
I have created custom layout as below created 3-columns-double-footer.xml file inside Magento_Theme/page_layout folder <?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd"> <update handle="3columns"/> <referenceContainer name="page.wrapper"> <container name="footer-bottom" as="footer-bottom" after="footer" label="Footer Bottom" htmlTag="footer" htmlClass="page-footer-bottom"> <container name="footer-bottom-content" as="footer-bottom-content" htmlTag="div" htmlClass="footer content" /> </container> </referenceContainer> </layout> and also created layouts.xml file inside Magento_Theme folder as below […]
Our website is on Magento 2.4.2 and it runs on PHP 7.4. We also have different third party modules running with older versions. Anyone please help how to update to Magento 2.4.5 p1 which supports PHP 8.1 (is this mean which doesn’t support PHP 7.4?) but the server is currently […]
We set the “Add Store Code to URLs” option to Yes, so now our store URL’s looks like: https://www.example.com/en/ https://www.example.com/de/ https://www.example.com/fr/ And by default Magento redirects the url without the last slash to the url with a slash. So https://www.example.com/en redirects to https://www.example.com/en/ How can we disable this? We want […]
I’m trying to install a store but I have an error related to the setup made with MySQL as the search engine, which isn’t supported anymore. Your current search engine, 'MySQL', is not supported. You must install a supported search engine before upgrading. See the System Upgrade Guide for more […]
I’m confused. I’m querying categories and tried to add id field but it says it’s deprecated and suggested to use uid instead. But to get products we need category id, when I tried to use uid it doesn’t work. Anyone any ideas?