While we are making a site responsive, we can make too many alterations especially while making image gallery responsive. My requirement was to make each of the image project 150% to the front in small devices. One image should occupy the entire row and next image after the other. The cod used here to change… Continue reading Project the image gallery to front(150%) without using extra images(while making responsive)
Category: Magento
Magento 2 attribute value is empty (or must be set). Set the attribute and try again.
The “Attribute_name” attribute value is empty. Set the attribute and try again or The value of attribute “is_new” must be set error may happen when you create a new configurable product or migrating from Magento 1 to Magento 2, or after you import products. Some sample error message you may see: The “Is New” attribute value is empty.… Continue reading Magento 2 attribute value is empty (or must be set). Set the attribute and try again.
Adding a Plugin to call before customer API
sometimes when we need to modify the last name or first name after the API call to the website we may create a plugin to interrupt the call and modify the data before creating on the website create a di.xml file inside etc in a vendor modulelocation vendor/module/etc/webapi_rest/di.xml plugin location Vendor/module/plugin here done an example… Continue reading Adding a Plugin to call before customer API
How do you override Magento\Catalog\Block\Category\View?
For this purpose, we need to replace the constructor
How to detect when the user scrolls to the bottom of the div with jQuery
There are some properties/methods you can use: code is mentioned below.
How to increase the page speed of the website.
What is a Lottie animation?
A Lottie is a JSON-based animation file format that allows you to ship animations on any platform as easily as shipping static assets. They are small files that work on any device and can scale up or down without pixelation. LottieFiles lets you create, edit, test, collaborate on, and ship a Lottie in the easiest way… Continue reading What is a Lottie animation?
How to play and pause a video by on click
How to get and set video src by clicking on div using jquery.
$(“.new-video #sub-video”).parent().click(function(e){const videoSource = ($(this).children().attr(‘src’))$(‘.video source’).attr(‘src’, videoSource)});
What is Window.requestAnimationFrame() in JavaScript?
The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser calls a specified function to update an animation before the next repaint. The method takes a callback as an argument to be invoked before the repaint. Example: In this example, an element is animated for 2 seconds (2000… Continue reading What is Window.requestAnimationFrame() in JavaScript?