I am using Magento 2.4.4CE and I have successfully added a jquery based JS file to a CMS page’s header by using a cms_page_view_selectable_url_somename.xml file in my custom theme. I have the following line added in the head section to attach the JS file to the page: <script src="Magento_Cms::js/somefunction.js"></script> I […]
Blog
my media/catalog/product/cache directory is growing very hard. Digging a bit deeper I see that every picture gets around 30 different files in my cache directory. In the picture you see the original file on top, and 30 different variants in the cache folder. We have 80K+ products and adding a […]
I Want to send a url to customer from admin panel custom form. I use below steps to perform the task. 1 – email_templates.xml file content <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd"> <template id="ayakil_hometry_email_carturl_template" label="Home Try On Cart Url" file="hometry_cart_url.html" type="html" module="Ayakil_HomeTry" area="adminhtml"/> </config> 2 – hometry_cart_url.html (app/code/Ayakil/HomeTry/view/adminhtml/email/hometry_cart_url.html) file content <!--@subject […]
After I created a module following this tutorial Magento 2.4 Add Recaptcha in Custom From I put my module in a popup and I would like to avoid to load all unnecessary js until I open my popup. I know that this issue comes because I modify the frontend layout […]
Wipro Coding Sheet is prepared to crack Wipro interviews. Wipro Limited is a leading technology, service, and consulting company that thrives on innovation. It has… Read More The post Wipro Coding Sheet – Interview Preparation appeared first on GeeksforGeeks.
Given a string S consisting of only lowercase English letters of length N, the task is to find the count of substrings such that each… Read More The post Maximize count of Substrings containing at least 1 vowel and 1 consonant appeared first on GeeksforGeeks.
Given two arrays x[] and y[] of N integers, the task is to form an array z[] of x[i] + y[j], (0 ≤i, j <… Read More The post Maximize median of Array formed by adding elements of two other Arrays appeared first on GeeksforGeeks.
4 – Queens’ problem is to place 4 – queens on a 4 x 4 chessboard in such a manner that no queens attack each… Read More The post 4 Queens Problem appeared first on GeeksforGeeks.
ArrayDeque in Java The ArrayDeque in Java provides a way to apply resizable-array in addition to the implementation of the Deque interface. It is also… Read More The post How to use a Stack and Queue using ArrayDeque in Java appeared first on GeeksforGeeks.