In Magento 2, both InstallSchema and InstallData are used to set up the database schema and initial data for your custom module during installation. However, they serve slightly different purposes: InstallSchema:The InstallSchema script is used to define and modify the database schema, including creating new tables or modifying existing ones. It runs only once during… Continue reading InstallSchema and InstallData
Author: Jerin devassy
setup_version
The setup_version attribute in the module.xml file specifies the version number of your module. This version number is used to track the current version of your module’s database schema and data. setup_version=”1.0.1″. This means that the current version of your module is 1.0.1. When you make changes to your module’s database schema, such as adding… Continue reading setup_version
Document Object Model
In web development, when a browser loads a web page, it processes the HTML and creates a Document Object Model (DOM) representation of the page’s structure. This DOM includes all the elements on the page, their properties, and their relationships to each other. JavaScript can interact with the DOM to add interactivity and dynamic behavior… Continue reading Document Object Model
filter property in CSS
The filter property in CSS is used to apply graphical effects and transformations to an element’s rendering. It allows you to modify the appearance of elements, such as images and background images, without the need for complex image editing. The filter property supports a variety of filter functions that can be combined to create various… Continue reading filter property in CSS
The Scroll event listener in JavaScript
The Scroll event listener in JavaScript is a built-in event handler that allows you to detect and respond to scrolling actions performed by the user on a webpage. This event is triggered whenever the user scrolls the page, either by using the mouse scroll wheel, touchpad gestures, arrow keys, or any other method of scrolling.… Continue reading The Scroll event listener in JavaScript
How to dump Database.
Exporting from MySQL The best tool for exporting a MySQL database to a text file is mysqldump. To use mysqldump, you will need to know the login credentials of an appropriate MySQL user that has the necessary privileges to export the database . mysqldump -u root -p corp > /home/jandj/Pictures/db_dump.sql
Transform: translate Property.
In HTML, you can use CSS to apply transformations to elements, including translating along the x and y axes. The CSS property you would use is called transform, specifically the translate() function. Here’s an example: htmlCopy code<style> .my-element { transform: translate(20px, 30px); } </style> <div class=”my-element”> This element has been translated. </div> In the example… Continue reading Transform: translate Property.
Magento CMS – FAQs
1. What is Magento CMS? With a plethora of built-in CMS features, Magento makes itself a giants in terms of content capabilities. With effective SEO, high website performance, content-optimized themes and extensions, Magento CMS can bring e-merchants to the next level of controlling website content! 2. Is Magento good for CMS? Yes, definitely! With excellent… Continue reading Magento CMS – FAQs
The HTML Tag.
HTML Audio – How It Works The controls attribute adds audio controls, like play, pause, and volume. The <source> element allows you to specify alternative audio files which the browser may choose from. The browser will use the first recognized format. The text between the <audio> and </audio> tags will only be displayed in browsers that do not support the <audio> element. HTML <audio> Autoplay… Continue reading The HTML Tag.
How to check the maximum height of a group of wrapper divs and apply this height to all wrapper divs using JavaScript ?
Identify the wrapper divs you want to target. In your provided HTML code, it seems like the divs with the class “product-item-info” are the wrapper divs. Use JavaScript to iterate over these wrapper divs and find the one with the maximum height. Once you have the maximum height, apply it to all the wrapper divs.… Continue reading How to check the maximum height of a group of wrapper divs and apply this height to all wrapper divs using JavaScript ?