Magento 2.2.6 overriding css or less files or locating the actual file to edit

Not sure why i’m finding this so difficult but I have a file that has some css that needs to be fixed. The file and code are in these files:

pub/static/frontend/website/mywebsite/en_US/css/styles-l.min.css var/view_preprocessed/pub/static/frontend/website/mywebsite/en_US/css/styles-l.min.css 

The style change i need to make is only on checkout/cart/ as well.

I looked for this same styles-l.min.css file in app/design/frontend/website/mywebsite/ but it’s no where to be found.

I know i’m not suppose to edit those files but when i edit those files directly i get the outcome that i want… but of course when i deploy it gets rinsed. How do i make the proper change?

Not much of a frontend guy so any help would be greatly appreciated. Thank you.

Magento 2.2.6 How to add product custom attribute to Sales Order Grid

I have managed to add a column “product name” to Sales Order Grid.
I also would like to add Product custom attribute “Item Location” to the sales Order Grid.
This attribute has been created in Stores>Product>Attributes then assigned to the default attribute set.
My code is bellow:
Vendor/Module/etc/module.xml

<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">     <module name="FriendshipForever_CustomSalesOrderGrid" setup_version="1.0.0" schema_version="1.0.0">     </module> </config> 

Vendor/Module/Ui/Component/Listing/Column/Products.php

<?php namespace FriendshipForever\CustomSalesOrderGrid\Ui\Component\Listing\Column; use \Magento\Sales\Api\OrderRepositoryInterface; use \Magento\Framework\View\Element\UiComponent\ContextInterface; use \Magento\Framework\View\Element\UiComponentFactory; use \Magento\Ui\Component\Listing\Columns\Column; use \Magento\Framework\Api\SearchCriteriaBuilder; class Products extends Column { protected $  _orderRepository; protected $  _searchCriteria; public function __construct( ContextInterface $  context, UiComponentFactory $  uiComponentFactory, OrderRepositoryInterface $  orderRepository, SearchCriteriaBuilder $  criteria, array $  components = [], array $  data = []) { $  this->_orderRepository = $  orderRepository; $  this->_searchCriteria  = $  criteria; parent::__construct($  context, $  uiComponentFactory, $  components, $  data); } public function prepareDataSource(array $  dataSource) { if (isset($  dataSource['data']['items'])) { foreach ($  dataSource['data']['items'] as &$  items) { $  productArr = []; $  order  = $  this->_orderRepository->get($  items["entity_id"]); foreach ($  order->getAllVisibleItems() as $  item) { $  productArr[] = $  item->getName(); //to get product name } $  items['products'] = implode(' - ', $  productArr); unset($  productArr); } } return $  dataSource; } } 

Vendor/Module/view/adminhtml/ui_component/sales_order_grid.xml

<?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <columns name="sales_order_columns">         <column name="products" class="FriendshipForever\CustomSalesOrderGrid\Ui\Component\Listing\Column\Products">             <argument name="data" xsi:type="array">                 <item name="config" xsi:type="array">                     <item name="visible" xsi:type="boolean">true</item>                     <item name="label" xsi:type="string" translate="true">Products</item>                 </item>             </argument>         </column>     </columns>  <column name="image" class="FriendshipForever\CustomSalesOrderGrid\Ui\Component\Listing\Column\Thumbnail">             <argument name="data" xsi:type="array">                 <item name="config" xsi:type="array">                     <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/thumbnail</item>                     <item name="sortable" xsi:type="boolean">false</item>                     <item name="has_preview" xsi:type="string">1</item>                                         <item name="label" xsi:type="string" translate="true">Slider Image</item>                 </item>             </argument>         </column> </listing> 

Could you help how to add products custom attribute “Item Location” to the Sales Order Grid?

Magento 2.2.6 | Uncaught Error: Undefined class constant ‘CACHE_TAG’

I am very new to Magento, i created a CRUD custom module, when I input some data in form, and hit save button, I got an error like this:

Fatal error: Uncaught Error: Undefined class constant 'CACHE_TAG' in C:\xampp\htdocs\test-local\app\code\Testing\SimpleNews\Model\News.php:9 Stack trace: #0 C:\xampp\htdocs\test-local\vendor\magento\framework\App\Cache\Tag\Strategy\Identifier.php(25):Testing\SimpleNew\Mode\News->getIdentities()  #1 C:\xampp\htdocs\test-local\vendor\magento\framework\App\Cache\Tag\Resolver.php(43): Magento\Framework\App\Cache\Tag\Strategy\Identifier->getTags(Object(Testing\SimpleNews\Model\News))  #2 C:\xampp\htdocs\test-local\vendor\magento\module-page-cache\Observer\FlushCacheByTags.php(64): Magento\Framework\App\Cache\Tag\Resolver->getTags(Object(Testing\SimpleNews\Model\News))  #3 C:\xampp\htdocs\test-local\vendor\magento\framework\Event\Invoker\InvokerDefault.php(72): Magento\PageCache\Observer\FlushCacheByTags->execute(Object(Magento\Framework\Event\Observer))  #4 C:\xampp\htdocs\test-local\vendor\magento\framework\Event\Invoker\InvokerDefault.php(60): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Magento\ in C:\xampp\htdocs\test-local\app\code\Testing\SimpleNews\Model\News.php on line 9 

This is my htdocs\test-local\app\code\Testing\SimpleNews\Model\News.php code:

<?php  namespace Testing\SimpleNews\Model;  class News extends \Magento\Framework\Model\AbstractModel implements \Magento\Framework\DataObject\IdentityInterface {     public function getIdentities()     {         return [self::CACHE_TAG . '_' . $  this->getId()];     }      public function getDefaultValues()     {         $  values = [];          return $  values;     }      /**      * Define resource model      */     protected function _construct()     {         $  this->_init('Testing\SimpleNews\Model\Resource\News');     } } 

upgrade from Magento 2.2.6 to 2.3.1 CLI command error

When upgrading from 2.2.6 to 2.3.1. I am following the command line upgrade as explained here. All, was well and the commands ran just as they should have until I ran the following command.

php bin/magento setup:upgrade 

Upon running this command I am seeing the following error. Please advise me on how can I go about solving this error.

Error

Magento 2.2.6 Catalog Search indexer process unknown error – Notice: Undefined offset: 53

I’m currently using Magento 2.2.6. I’ve recently encountered the following error while trying to reindex the catalogsearch_fulltext:

Notice: Undefined offset: 53 in vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/Full.php on line 384

Does anyone know how to fix this error?

Any help would be much appreciated.

Payment method in Checkout page issue in Magento 2.2.6

I am facing the serious issue which road block for the order placement in my Magento instance. I have made some customization in Checkout side. And it was working properly. Suddenly, I am facing this issue like, getting Payment method instead of Shipping address template.enter image description here

I don’t know what wrong with that, because no error is showing in console.

Magento 2.2.6: Scheduled catalog_product_alert cron jobs failing with NotLoadInfoImageException: Can’t get information about picture:

I’m currently experiencing an issue where my scheduled catalog_product_alert cron jobs in the cron_schedule table are all failing to send a back-in-stock product alert. Each time these are executed, the following exception is thrown and the product alert email is never sent out while also setting the alert as having been sent in the product_alert_stock table.

[2019-03-26 00:45:03] main.CRITICAL: Can’t get information about the picture: {“exception”:”[object] (Magento\Catalog\Model\Product\Image\NotLoadInfoImageException(code: 0): Can’t get information about the picture: at /home/xxx/public_html/yyy/vendor/magento/module-catalog/Model/Product/Image.php:834, TypeError(code: 0): Argument 1 passed to Magento\Catalog\Model\Product\Image::loadImageInfoFromCache() must be of the type string, null given, called in /home/xxx/public_html/yyy/vendor/magento/module-catalog/Model/Product/Image.php on line 880 at /home/xxx/public_html/yyy/vendor/magento/module-catalog/Model/Product/Image.php:913)”} []

Does anyone know any possible reasons that I might be running into this issue? All of the products that I have been testing the back-in-stock alert with have images (base, small, thumbnail) so I don’t know what could possibly be causing this issue.

I am currently using Magento ver 2.2.6

Any and all help would be really appreciated!

Magento 2.2.6 Configurable Product How to Show Old Price and Special Price?

I have used Magento 2.2.6 version.I have a one configurable product.I have added special price into the associate product.The Special Price is Display but old price is not display how to show them ?

Please refer following screenshot:

In Frontend:

enter image description here

In admin Special Price:

enter image description here

In admin Product add/edit area:

enter image description here