Magento 2.3.1: Showing configurable products price in products grid

I’m trying to display the price of configurable products.After I imported it from a csv the price was there but if I save it the product price disappears.

I would like to know how to show the price of its childs or save the price from the form.

This is how the product form looks like: enter image description here and that’s the product grid: enter image description here

What is the least intrusive way to make tiny changes in 2.3.1?

While I wasn’t terrible with Magento 1, M2 has such changes that I’m not sure where to start. And everyone talking about “plugins” simply copy and paste the developer’s guide and no one gives example or explains what the whys or hows.

What are the ways to make small UI improvements for these examples (extension or plugin or what is “an extension with a plugin”):

  1. In admin area, the bar appears encouraging you to update the cache. When I go to the page, it already knows which need updating, so I want to make those already selected.
  2. Remove the “Select All” option in drop-downs?
  3. Change from name in the order and contact Emails?
  4. Copy the comments block in adminhtml order page to checkout?

Everyone wants to make themes and grandiose projects, where I’m more about the smallest amount of changes and impact on the code.

magento 2.3.1 – Invalid template file

I been working on new webpage recently and got unfortunate error, when I click on a product in catalog page i get this error:

 1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Magento_Catalog::product/view/product_info_main.phtml' in module: 'Ves_Themesettings' block's name: 'ves.product.info.main'  Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Magento_Catalog::product/view/product_info_main.phtml' in module: 'Ves_Themesettings' block's name: 'ves.product.info.main' <pre>#1 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668] #2 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:557] #3 Magento\Framework\View\Layout->_renderBlock() called at [vendor/magento/framework/View/Layout.php:533] #4 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #5 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #6 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #7 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #8 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #9 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #10 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #11 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #12 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #13 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #14 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #15 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #16 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #17 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #18 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #19 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #20 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #21 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #22 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #23 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #24 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #25 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #26 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #27 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #28 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #29 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #30 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #31 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #32 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #33 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #34 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #35 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #36 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #37 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #38 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #39 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206] #40 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #41 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193] #42 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:954] #43 Magento\Framework\View\Layout->getOutput() called at [vendor/magento/framework/Interception/Interceptor.php:58] #44 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #45 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #46 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:494] #47 Magento\Framework\View\Layout\Interceptor->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258] #48 Magento\Framework\View\Result\Page->render() called at [vendor/magento/framework/View/Result/Layout.php:171] #49 Magento\Framework\View\Result\Layout->renderResult() called at [vendor/magento/framework/Interception/Interceptor.php:58] #50 Magento\Framework\View\Result\Page\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #51 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #52 Magento\Framework\View\Result\Page\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.php:130] #53 Magento\Framework\View\Result\Page\Interceptor->renderResult() called at [vendor/magento/framework/App/Http.php:140] #54 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:24] #55 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:258] #56 Magento\Framework\App\Bootstrap->run() called at [index.php:39] </pre> 

Any helps would ba highly appreciated . thank you

Magento 2.3.1 clear carts and start over

I want to clear all shopping carts from database and start from scratch. But I don’t want to create problems in database for my customer accounts or store orders. I just want to remove all carts which are abandoned.

I am thinking to use this queries in database:

SET FOREIGN_KEY_CHECKS=0;  TRUNCATE TABLE `quote`; TRUNCATE TABLE `quote_address`; TRUNCATE TABLE `quote_address_item`; TRUNCATE TABLE `quote_id_mask`; TRUNCATE TABLE `quote_item`; TRUNCATE TABLE `quote_item_option`; TRUNCATE TABLE `quote_payment`; TRUNCATE TABLE `quote_shipping_rate`;  SET FOREIGN_KEY_CHECKS=1; 

Will these do my job? Or I break everything?

Upgrading from Magento 2.2.6 to 2.3.1 broke credit memo partial refund functionality

In credit memo, there is a field “Adjustment Refund” on the bottom. Before upgrading to 2.3.1 If I entered a value in this field, there was an “Update Totals” Button which would update total. But after upgrading to 2.3.1 this button does not appear. Attaching screenshots for more details.

Credit Memo Broken[![][1]]2

Magento 2.3.1 data migration transform field values

I’m trying to trasform some field values during data migration from Magento 1.9.4.0 to Magento 2.3.1.

In map.xml I added the following:

<source>     - - -     <field_rules>        - - -        <move>             <field>m_helpdesk_ticket.is_spam</field>             <to>mst_helpdesk_ticket.folder</to>         </move>         <transform>             <field>m_helpdesk_ticket.is_spam</field>             <handler class="\Migration\Handler\Convert">                 <param name="map" value="[0:1;1:3;]" />             </handler>         </transform>     </field_rules> </source> 

But i get the following error:

[2019-06-21 20:20:36][ERROR]: Invalid map provided to convert handler In Data.php line 126:    Data Migration failed 

What I need is:

m_helpdesk_ticket.is_spam = 0 should be transfered as st_helpdesk_ticket.folder = 1

and

m_helpdesk_ticket.is_spam = 1 should be transfered as st_helpdesk_ticket.folder = 3

What is wrong in param tag?

magento 2.3.1 elastic search index name

I have recently updated our store to magento 2.3.1 it seems to work fine but when we run it with Elastic search we get error:

fielddata is disabled on text fields by default

I enabled that using a curl call but every time the indexer runs it creates a new index with a new name i.e magento2_product_1_v{index/count}. The version number at the end of the index name changes everything. So every time indexer runs I enabled it manually via curl. I was wondering if there is a way to permanently enable fielddata?

thanks

Include custom template file in catalog listing page in magento 2.3.1

I am using Magento 2.3.1, i wanted to include custom template in product listing page for all products just above the add to cart button as shown in the attachment.

enter image description here

Below is my code i tried.

<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">     <body>         <referenceContainer name="product_list">             <block class="Magento\Framework\View\Element\Template" name="yousave" template="MyVendor_MyModule::yousave.phtml" after="additional" />         </referenceContainer>     </body> </page> 

and template is

<?php echo 'hello world'; ?> 

but i am not getting proper output