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
Magento
“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) […]
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 […]
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 […]
please help me how to override the default place order button functionality in Magento during cash on delivery selection
In my magento we are using Mexbs Bunlde Discount extension to create cart price rules. i created one rule like – A product from X category + B product form Y category + C product from Z category for 10$ Now i added three products from three categories and applying […]