There is a custom tab “Ask Question” in a product that has a form (it has a logic for saving data to the database). My task is to create an event observer for the attribute that I have created programmatically via Setup/Patch/Data and remove the tab if the value is […]
Magento2
Around a year ago, a client considered moving to Magento 2 and at the advice of another developer, they installed the data-migration-tool to prepare for a migration to Magento 2. However, they realized the (unnecessary) cost of re-writing all their extensions and they have since made the decision to stick […]
I am trying to deploy magento on Kubernetes, I am using php-fpm as a base image with nginx, the magento files are available locally on Docker, but when I move it to Kubernetes i do notenter code here see anything in the PVC, FROM php:8.2.12-fpm@sha256:2aa938b6d62f7415e9c84d867d9ceed18ef8ec3cf3944d389e088c93f9678a84 as base ENV MAGENTO_PUBLIC_KEY “” […]
“message”: “No record found with %fieldName = %fieldValue”, “parameters”: { “fieldName”: “id”, “fieldValue”: “0” }, <?php namespace handymustFilterModel; use handymustFilterApiFilterInterface; use MagentoFrameworkExceptionLocalizedException; class Filter implements FilterInterface { protected $_layerResolver; public function __construct( MagentoCatalogModelLayerResolver $layerResolver ) { $this->_layerResolver = $layerResolver->get(); } /** * {@inheritdoc} * @throws LocalizedException */ public function getFiltersByCategoryId($categoryId) […]
i added a new custom theme, in that theme i listed the products, now i need to add functionality of wish list, phtml file contains wishlist button, so how i can achive wishlist by clicking this button
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 […]
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 […]
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 […]
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 […]