Magento

Error is : Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in

I am keep getting this error with my code although I only followed their instructions. <?php namespace Training\Test\App; class FrontController extends \Magento\Framework\App\FrontController { protected $routerList; protected $response; protected $logger; public function __construct( \Magento\Framework\App\RouterList $routerList, \Magento\Framework\App\Response\Http $response, \Psr\Log\LoggerInterface $logger) { $this->routerList = $routerList; $this->response = $response; $this->logger = $logger; } public ....

Everett Everett: 7 hours ago

Magento

Uploading multiple files in custom module does not work in Magento 2

I am new to magento 2. I have been overriding a module in which I am trying to post images through a form. Here is my template file code: <form action="somecontroller.." enctype="multipart/form-data"> <!-- here is the module code --> <div class="field review-field-media"> <label class="label"><span><?php echo __('Attachments') ?></span></label> <div class="control"> <input ....

Maya Maya: 7 hours ago

Magento

Magento 2: Product image to be displayed one by one instead of slider

Right now the images are shown in slider but I want to show them one by one like 1st image 2nd image 3rd Image Not like the slider Gallery.phtml contain the following code <div class="product-image-popup" style="width:<?= /* @noEscape */ $_width ?>px;"> <div class="buttons-set"><a href="#" class="button" role="close-window"><span><?= $block->escapeHtml(__('Close Window')) ?></span></a></div> <?php ....

Logan Logan: 7 hours ago

Magento

How to override addAddressByType() in class Magento\Framework\Mail\Template\TransportBuilder as it is a private function?

I tried to override addAddressByType() function in Magento\Framework\Mail\Template\TransportBuilder but I can't override this function only as it is a private function. Then I tried to override whole class but getting the below error. 1 exception(s): Exception #0 (Magento\Framework\Exception\RuntimeException): Type Error occurred when creating object: Magento\Customer\Model\Customer\Interceptor Exception #0 (Magento\Framework\Exception\RuntimeException): Type Error ....

Everleigh Everleigh: 8 hours ago

Magento

How to get the Admin code of an option from an attribute? REST API

I have a problem, and I want you to give me a light at the end of the tunnel. I am doing an integration REST and need to get some information from the options of an attribute, in the admin panel I have 4 options being them. Among them Admin, ....

Elias Elias: 8 hours ago

Magento

Upgrade Magento2.3.5-p1 to Magento 2.3.5-p2

How can update Magento2.3.5-p1 with the security patch to Magento2.3.5-p2? I can not find the p2 patch on the Magento website; https://magento.com/tech-resources/download ....

Beau Beau: 8 hours ago

Magento

magento2, create correctly SELECT used collection

i have this code $collection = $this->orderCollectionFactory->create() ->addFieldToSelect() ->addAttributeToFilter('status', ]) ->addAttributeToFilter('created_at', , 'to' => $result]); $collection->getSelect()->joinLeft(, "main_table.entity_id = billingTable.parent_id AND billingTable.address_type = '{$this->addressType}'"); i have this SQL main_table.billingTable.vat_id' in 'field list', query was: SELECT `main_table`.`entity_id`, `main_table`.`increment_id`, `main_table`.`global_currency_code`, `main_table`.`status`, `main_table`.`updated_at`, `main_table`.`total_due`, `main_table`.`billingTable.vat_id`, `billingTable`.* FROM `sales_order` AS `main_table`\n LEFT JOIN `sales_order_address` AS ....

Jaxson Jaxson: 8 hours ago

Magento

Magento 2 remember me (log in)

I understand that the built in "remember me" functionality of Magento persists the shopping cart. However, I want it to also keep the customer logged in if they select "Remember me". How can this be accomplished? ....

Madelyn Madelyn: 8 hours ago

Magento

How to display customer email in order grid?

I need to display customer-email and product-name in admin panel order grid but my code return error. ....

Beau Beau: 8 hours ago

Magento

How to Post data from ajax get by post not working in postman?

Below is my code when I try to post data but not working URL is http://localhost/test1/modulename/login/request my ajax code for javascript var request_data = 'id='+id+'&name='+name+'&email='+email+'&social_type='+social_type; var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var data = JSON.parse(this.responseText); var url = ....

Amara Amara: 9 hours ago