When i try get temp order after buy product: protected function getTempOrder($customer) { $address = []; if(!empty($customer->getAddresses()) && $existingAddress = $customer->getAddresses()[0]) { $address['street'] = implode(', ', $existingAddress->getStreet()); $address['city'] = $existingAddress->getCity(); $address['country_id'] = $existingAddress->getCountryId(); $address['region'] = $existingAddress->getRegion(); $address['region_id'] = 1; $address['postcode'] = $existingAddress->getPostcode(); $address['telephone'] = $existingAddress->getTelephone(); $address['fax'] = $existingAddress->getFax(); } else […]
Magento
how can I send a 404 header if a product image is not found? Background: I have updated the product name and wants to remove the old named images. Actually it shows the placeholder image and image link worked.
I created the image type field in the grid edit form. Now my requirement is to display the custom Popup when the admin will click on the upload button. It always goes to the local directory for Image upload. $fieldset->addField( 'image', 'image', [ 'name' => 'image', 'label' => __('Upload Image'), […]
I own a Magento 1.9.4.2 store which has only downloadable products in it. Once a customer buy a digital product, Magento sends an email with the download link generated by Magento itself from the Dropbox one. This is worked since 2013 from 31/01/22. Suddenly, it doesn’t work anymore. All the […]
I am trying to get a project that is already live in production setup and installed on my local for development. After running my bin/magento-docker up -d all of my containers start successfully. But when I use the following command: sudo bin/magento-docker ece-deploy I am getting the following output and […]
I’m trying to modify the admin grid’s “filterSearch” field from default query if I type a whole word eg “Iphone”, I’m trying to change the type search criteria in SQL to LIKE %ipho% and finding a result with that information is currently not like that. In the previous image I […]
I want to get a list of all unused product attributes through database or code. Any help would be appreciated.
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 […]