I created an numeric attribute, and product has assigned 2 categories (parent category and subcategory), is it possible update product attribute only for subcategory? or is it possible create custom product attribute only for subcategory? This would apply for all products. MOTOR (Subcategory) Colecciones (Parent Category) I need to set […]
Magento2
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 […]
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 […]