<?php /* @noEscape */ $date = $block->formatDate($_order->getCreatedAt()); $newdate = new DateTime($date); $strip = $newdate->format(‘d-m-Y’); echo $strip; ?>
Category: Magento
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 Remove a Link from My Account Menu
To remove a link from the My Account Menu, add the customer_account.xml layout via JJ/Statements/view/frontend/layout/customer_account.xml with the following content: <?xml version=”1.0″?> <!– /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ –> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <referenceBlock name=”block_name” remove=”true”/> </page>
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
Logger Working in Magento From V 2.4.1
There is a problem with the logger from the version of Magento 2.4.1 usually, we were using the logger as follows: This belongs to the old library From the new version of Magento we could use the loggers as follows: or
How to get current category in magento2?
How to remove white space around product image in Magento 2
write the code on etc>view.xml <transparency>false</transparency> <aspect_ratio>false</aspect_ratio> <frame>false</frame> example: <image id=”category_page_list” type=”small_image”> <width>240</width> <height>300</height> <transparency>false</transparency> <aspect_ratio>false</aspect_ratio> <frame>false</frame> </image>
Magento/Adobe commerce 2.4 Documentation
New Adobe commerce Documentation link: https://magento.redoc.ly/2.4.5-admin Refer to the above link for new Adobe Commerce 2.4.Many changes are made in API & API Data.
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