I am trying to sort an order collection (MagentoSalesModelResourceModelOrderCollectionFactory) based on custom product attribute data for the product items in the order. It is ok just to sort based on the first product item row. How can I achieve this? I know I can add a custom column on the […]
Magento
I need to install the following extension on Magneto store: https://github.com/bitExpert/magento2-force-login I’m using this commend: composer.phar require bitexpert/magento2-force-customer-login but after enter “Authentication required (repo.magento.com)”, it is start “Generating autoload files” then the following error appears Installation failed, reverting ./composer.json to its original content. [ErrorException] chmod(): Operation not permitted as alternative […]
I am looking for an bash script which will create the basic new module skeleton. I’ve found this post useful but it only works from the root. Any solution? Thanks in Advance!
This is an image from a product page. Notice that there’s a semi-transparent overlay at each side of the image, each containing the left and right arrows. The overlay should be eliminated, but the arrows maintained. Can that be done? Please note: while the cursor is over the image is […]
When I create a simple product with a single image it takes 17 seconds to save, I have changed the indexing to schedule and removed all extensions and themes. On debugging further I can see that the delay is caused by the media(media/catalog/product) I have 3000 products where my product […]
I am looking to implement the checkout using the API as documented here: https://devdocs.magento.com/guides/v2.4/rest/tutorials/orders/order-intro.html I can do the whole checkout using the API if I use a simple payment method such as “Check / Money order”. However, if I use an advanced third-party payment integration that has its own payment […]
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 […]
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.