How to convert current timezone date and time to gmtdate and time ? Here I am adding some hours for todays date and wants to convert in gmtdate to filter order colleciton //MagentoFrameworkStdlibDateTimeTimezoneInterface echo $toDay = $this->timezone->date()->format('Y-m-d H:i'); $fromTime = strtotime($toDay); $toTime = $fromTime + 3600; This below code gives […]
Magento
We can import stocks into our Magento warehouses automatically. For this from supplier we need a csv file. We can import the file direct from ftp or an url. We can also import local file on our server. All we need in this file is that 1 column is ‘sku’ […]
I have added the VAT and address fields to my magento website for the create a new customer page. I have a problem that the auto VAT validation and therefore the auto group assignment is not working ( actually not initiated ) because it seems the VAT field is updating […]
I’ve only recently started working with Magento and developement in general, so I am new at this. I need a (simple) product’s quantity for some custom logic. But I don’t know how to get it into my .phtml template. I used this function: $quantity = $_product->getExtensionAttributes()->getStockItem()->getQty(); and print_r($quantity); to see […]
I created a custom image role drop down. I am trying to save its value into ‘catalog_product_entity_media_gallery_value’ table by using the observer event ‘catalog_product_save_after’: <?php namespace HotcoffeeImageCustomRoleObserver; use MagentoFrameworkEventObserverInterface; class Productsaveafter implements ObserverInterface { protected $request; protected $resource; /** * * @param MagentoFrameworkAppRequestInterface $request * @param MagentoFrameworkAppResourceConnection $resource */ public […]
I had installed mageplaza banner slider followed their guide. but the slider wont show in my custom theme. this happen as well with the default magento 2 slider
we are having a problem with out Magento2 installation. Everything worked fine until recently when we tried to add a new variant to a configurable product. The error happens when navigating to the “add product manually” page, see third image. We tried a few things should have helped, but nothing […]
When I open any page of my website https://www.agoshop.at everytime I will get scrolling circles and after that I will see my new page. This is very disturbing. Therefore I will ask how I can deactivate this. Here a picture of the circles: Hope someone can help me there. kindly […]