Skip to content

How I could install HtmlPurifier in my custom module?

I made my own form: <?xml version=”1.0″?> <form xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Ui:etc/ui_configuration.xsd”> <argument name=”data” xsi:type=”array”> <item name=”js_config” xsi:type=”array”> <item name=”provider” xsi:type=”string”>customer_form.customer_form_data_source</item> </item> <item name=”label” xsi:type=”string” translate=”true”>Blogpost Actions</item> <item name=”reverseMetadataMerge” xsi:type=”boolean”>true</item> </argument> <settings> <buttons> <button name=”save” class=”MageGuideFirstModuleBlockAdminhtmlEditSaveButton”/> <button name=”back” class=”MageGuideFirstModuleBlockAdminhtmlEditBackButton”/> </buttons> <layout> <navContainerName>content</navContainerName>… Read More »How I could install HtmlPurifier in my custom module?

Does magento2.4 sanitizes form input in order to avoid XSS or I have to implement my own methods?

I made my first form: <?xml version=”1.0″?> <form xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Ui:etc/ui_configuration.xsd”> <argument name=”data” xsi:type=”array”> <item name=”js_config” xsi:type=”array”> <item name=”provider” xsi:type=”string”>customer_form.customer_form_data_source</item> </item> <item name=”label” xsi:type=”string” translate=”true”>Blogpost Actions</item> <item name=”reverseMetadataMerge” xsi:type=”boolean”>true</item> </argument> <settings> <buttons> <button name=”save” class=”MageGuideFirstModuleBlockAdminhtmlEditSaveButton”/> <button name=”back” class=”MageGuideFirstModuleBlockAdminhtmlEditBackButton”/> </buttons> <layout> <navContainerName>content</navContainerName>… Read More »Does magento2.4 sanitizes form input in order to avoid XSS or I have to implement my own methods?

Do magento2 natively support reCaptcha enterprise? How many effort to implement it?If there is third-party support available, could you recommend any?

I search on the offical document (https://experienceleague.adobe.com/docs/commerce-admin/systems/security/captcha/security-google-recaptcha.html) It just say about reCaptcha V2 and reCaptcha V3, none of them mention “reCaptcha Enterprise”. I have searched in the source code of Adobe Commerce and Magento, but I cannot find the external… Read More »Do magento2 natively support reCaptcha enterprise? How many effort to implement it?If there is third-party support available, could you recommend any?

How I can add a `Create New Button` to my Grid in magento2 where redirects to another page?

I am learning magento extention creation, and I try to add a “Create New” record in my admin grid. So far I made this grid: namespace MageGuideFirstModuleBlockAdminhtml; use MageGuideFirstModuleModelFactoriesBlogPostCollectionFactory as BlogPostCollectionFactory; use MagentoBackendBlockTemplateContext; use MagentoBackendHelperData; use MagentoFrameworkObjectManagerInterface; use MagentoBackendBlockWidgetGridExtended; use… Read More »How I can add a `Create New Button` to my Grid in magento2 where redirects to another page?

Magento 2: Add custom value to $parent in checkout summary

I want to add a custom value to the items in the order summary during checkout ($parent). I followed all the other howtos on how to do it: Create plugin for MagentoCheckoutModelDefaultConfigProvider: etc/di.xml: <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <type name=”MagentoCheckoutModelDefaultConfigProvider”>… Read More »Magento 2: Add custom value to $parent in checkout summary