Synchronous ( async: false ) – Script stops and waits for the server to send back a reply before continuing. There are some situations where Synchronous Ajax is mandatory. In standard Web applications, the interaction between the customer and the server is synchronous. This means that one has to happen after the other. Synchronous part:… Continue reading Difference between Synchronous and Asynchronous Ajax request
Author: Jerin
:: Before,:: after properties not supporting in input type in Mozilla firefox.
:before and :after should only work on the element which can act as a container of content. <input> cannot contain any content so it should not support those pseudo-elements. Chrome supports it because it does not follow the spec (or bug?). Reference : https://stackoverflow.com/questions/37653706/before-with-input-in-firefox
How to design a dashed border using CSS ?
border: dashed 2px #707070 ; border-style reference: https://kovart.github.io/dashed-border-generator/
How to format date in magento using phpframe wrok?
<?php /* @noEscape */ $date = $block->formatDate($_order->getCreatedAt()); $newdate = new DateTime($date); $strip = $newdate->format(‘d-m-Y’); echo $strip; ?>
How to update the dashboard content in magento sidebar
Translator for Magento 2, admin can easily search and translate any string from the store. foldername/theme/i18n/en_US.csv
How to add Goole Maps To our page?
Easiest Method to add google Maps using embed coded I frame Generator. Using this embebed url , select our location and genarate embebed code. Eg: Embedded Location of Jobin&Jismi. https://maps.google.com/maps?width=600&height=400&hl=en&q=jobin%20and%20jismi&t=&z=14&ie=UTF8&iwloc=B&output=embedhttps://mcpenation.com
How to get current category in magento2?
How to Set Background Position
After adding a background image and stopping it from repeating, we are able to further control how it looks within the background of the tag by improving its position. We’ll use the background-position property to do this. The selector takes in two values. The first one is for the horizontal position, or x-direction (how far… Continue reading How to Set Background Position
How to Add a New CMS Page in Magento 2
Step 1: Add a New Page On the Admin Panel, Content > Elements > Pages. Click on Add New Page. Under the Page Information section: Fill out the Page Title, the meta data that shows in the title bar and tab of the browser. Fill out a URL Key for the page, added to the… Continue reading How to Add a New CMS Page in Magento 2
How to add custom font in Magento 2
Add font files to your local theme directory. For example, app/design/frontend/<your_vendor_name>/<your_theme_name>/web/fonts. To add external fonts, configure the font app/design/frontend/<your_vendor_name>/<your_theme_name>/web/css/source/_typography. The mixin generates the CSS, which includes the font. The following example shows how to generate CSS for the Open Sans font in the Blank theme: @font-face {font-family: ‘Open Sans’;src: url(‘../fonts/opensans/light/opensans-300.eot’);src: url(‘../fonts/opensans/light/opensans-300.eot?#iefix’) format(’embedded-opentype’), url(‘../fonts/opensans/light/opensans-300.woff2’) format(‘woff2’), url(‘../fonts/opensans/light/opensans-300.woff’)… Continue reading How to add custom font in Magento 2