I’m working with a Magento 2.3 store and looking to customize the search result logic – fulltext search. Specifically, I want the search results to consider the “Position” attribute of products, which is set in Admin -> Catalog -> Categories -> Product in Categories. Currently, our store uses the default […]
Daily Archives: November 28, 2023
On Magento 2.4.6: When our ERP executes an API request on the PUT method /all/V1/product/:sku with the following JSON content: { "product": { "custom_attributes": [ { "attribute_code": "delais", "value": "30" } ] } } Another attribute, warranty_type, also gets updated (its value becomes null) on this product, leading to the […]
module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd"> <module name="Magetrend_Custom" schema_version="2.0.0" setup_version="2.0.0"> <sequence> <module name="Magetrend_Email"/> </sequence> </module> </config> registration.php <?php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::MODULE, 'Magetrend_Custom', __DIR__ ); event file C:xampphtdocsmyshopappcodeMagetrendCustometc events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name="magetrend_email_collect_additional_vars"> <observer name="mtemail_custom_var" instance="MagetrendCustomObserverCustomVar"/> </event> </config> observer file C:xampphtdocsmyshopappcodeMagetrendCustomObserver CustomVar.php <?php namespace MagetrendCustomObserver; class CustomVar implements MagentoFrameworkEventObserverInterface […]
I have created the registration.php, theme.xml,composer.json in app/design/frontend/myvendorname/themename_theme/ and _extends.less in app/design/frontend/myvendorname/themename_theme/web/css/source. Ran the following commands rm -r /home/magento/pub/static/* /home/magento/var/view_preprocessed/* /home/magento/var/cache/* cp /root/.htaccess /home/magento/pub/static/ #re-copying htaccess above to static folder just in case it got lost magento cache:flush magento setup:static-content:deploy -f chown -R www-data:www-data /home/magento chmod -R 777 /home/magento So […]
Magento 2.4.6 I have a very specific requirement. I want to not load images in the media gallery on the product page, if the image is a placeholder. Do not ask why :-D, its a requirement and can not be solved any other way (it does not work to hide […]
i tried running a program on a virtual machine and i keep getting banned from it.If i try a different type of VM it does not get banned only for the first time.For example i tried switching from virtual box to vmware and it worked only for the first VM.i […]
I’m very new to networking and especially the Hardwere part of the networks, but I started working on something for which I don’t have enough knowledge, but hopefully this is an opportunity to learn. Is it possible to connect a PC to a router, but not in the usual way. […]
I’m migrating to a new laptop for work (Mac -> Mac, both on Sonoma). To migrate my ssh keys I made a tarball of my ~/.ssh directory and copied it over to the new machine. I went to ssh to one of my servers with my pubkey and ran into […]
I have more than 20 SSDs from Crucial, Samsung, and other companies. Let’s take the example of my Samsung 970 Plus 2TB which I use with a 10 Gbps USB C enclosure. On the product page it says that the SSD has a write speed of up to 3,300 MB/s. […]