30

Go to Below File /vendor/vertex/module-tax/Model/FlexField/Processor/OrderCurrencyGetterProcessor.php At the end of the "use" clauses in add the following two lines: use Vertex\Tax\Model\FlexField\Processor\InvoiceFlexFieldProcessorInterface; use Vertex\Tax\Model\FlexField\Processor\TaxCalculationFlexFieldProcessorInterface; and run again below ...


15

I run into the same problem. It seems only a speeling problem: https://github.com/magento/magento2/issues/24930#issuecomment-543949135 So it is better to change only the namespace spelling without adding the two use-lines: namespace Vertex\Tax\Model\FlexField\Processor; FlexField instead of Flexfield It could make a difference for external functions that ...


12

We found the solution here: https://github.com/magento/magento2/issues/26647 We've overridden the vendor/magento/module-customer/view/frontend/layout/default.xml in our custom theme. So, changing its structure during the upgrade caused the issue. Ours was missing the "sectionNamesProvider" argument tag for customer.section.config block. <block name="...


12

First take to older version website backup and after your run direct magento 2.4.0 version. Magento Open Source: composer require magento/product-community-edition=2.4.0 --no-update Magento Commerce: composer require magento/product-enterprise-edition=2.4.0 --no-update And you want to read more information check this :- https://devdocs.magento.com/guides/...


11

Open the below js file and update as per given below then do compilation and test. File path: vendor/magento/module-checkout/view/frontend/web/js/action/select-payment-method.js Overwrite to: app/design/frontend/{your theme}/{theme name}/Magento_Checkout/web/js/action/select-payment-method.js Old: define([ '../model/quote' ], function (quote) { '...


11

I solved it by override TransportBuilder. It has many private methods that's why I override whole class. You need only this one file. app/code/vendor/module/etc/di.xml <preference for="\Magento\Framework\Mail\Template\TransportBuilder" type="Vendor\Module\Model\Mail\Template\TransportBuilder" /> app/code/vendor/module/model/mail/template/...


7

If like me you can't edit the file (because our CD will fail) follow these steps: In the root of your project, create a directory patches/composer Create a file called vendor-vertex-compilation-issue.diff In your composer.json add this to the list of "require" "cweagans/composer-patches": "1.6.7" Still in your composer.json add this to the extras "...


6

To get instock product collection. include catalogInventory stock helper class protected $stockFilter; public function __construct( \Magento\Catalog\Model\Product\Visibility $catalogProductVisibility, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productsCollectionFactory, \Magento\Catalog\Model\CategoryFactory $categoryFactory, \Magento\...


6

Try a below code. Tested in M2.3. This will change the sorting option from Relevance to Price only for Search Result Page. You can change the $defaultSortBy and $directionToSet as per your need. File - Custom/SortBy/etc/frontend/di.xml <type name="Magento\CatalogSearch\Block\Result"> <plugin name="Custom_SortBy::setPriceSortBy" type="Custom\...


6

Copy this file : \vendor\magento\module-customer\view\frontend\web\js\logout-redirect.js to \app\design\frontend\Vendor\Theme\Magento_Customer\web\js\ogout-redirect.js change $($.mage.redirect(data.url, 'assign', 5000)); to: $($.mage.redirect(data.url, 'assign', 2000)); Run this command : php bin/magento c:f I hope this will help you. If ...


5

Please run composer require zf1/zend-exception composer require zf1/zend-reflection I had the same issue and that solved.


5

After lot's of debug found that This issue in Magento 2.3.3 Default version. In order to prevent this bug on 2.3.3, you need to update "vendor\magento\module-store\etc or override : magento2/app/code/Magento/Store/etc/di.xml and comment to hashGenerator then the store switcher works for logged in customers. Before <type name="Magento\Store\Model\...


5

Please try the following way using knockout js. you can add following code in your .phtml file, this will help you to resolve login issue while the cache is enabled <ul data-bind="scope: 'customer'" class="header links"> <!-- ko if: customer().firstname --> <li><a href="<?= $this->getUrl('customer/account'); ?>">...


5

Override default.html from vendor\magento\module-checkout\view\frontend\web\template\minicart\item\default.html to app\design\yourvendor\yourtheme\Magento_Checkout\web\template\minicart\item\default.html add + and - button as span tag in line number 74 and 84. <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for ...


5

To check the ElasticSearch on the storefront working or not. Below plugin may help you. di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="\Magento\Elasticsearch\SearchAdapter\ResponseFactory"> <plugin name="...


5

For the cart page First, override this file in your module or theme Path: vendor/magento/module-checkout/view/frontend/templates/cart/item/default.phtml Find the element <div class="control qty"> and replace it with below code <div class="control qty"> <input id="cart-<?= /* @escapeNotVerified */ $_item->getId() ?>-qty" ...


4

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> <system> <section id="section_id_here" translate="label" type="text" sortOrder="400" showInDefault="1" showInWebsite="1" showInStore="1"> <label>Section label</...


4

I don't understand why do you want clone of your collection. But still you can try php object cloning Instead of which is I guess not available in Magento: $productCollection = $filter->getLayer()->getProductCollection(); $productCollectionClone = $productCollection->getCollectionClone(); Try this one: $productCollection = $filter->getLayer()-...


4

You can try to import the database in your new PHPMyAdmin by following the below few steps. Step 1: Export the database using the below command with SSH mysqldump -u USERNAME -p DATABASE_NAME > DATABASE_FILENAME.sql Step 2: Upload the exported database file on the new server where you want to import it. Step 3: You can import the database on the new ...


4

Try to run below command php71 /usr/local/bin/composer.phar require magento/project-community-edition=2.3.3 --no-update You can use below line instead of composer php71 /usr/local/bin/composer.phar Update Try to run commands in below sequence to upgrade Magento version from 2.2.6 to 2.3.3 - php71 bin/magento maintenance:enable - cp composer.json ...


4

You can make the region field optional from admin, follow below steps. Step 1 Login to the back end of Magento 2. On the Admin sidebar, navigate to Stores > Settings > Configuration. Under the panel of General, select General. Scroll down to explore the State Option section. Step 2 In the State Option list: Choose the country where the State/ Region is ...


4

Try with below code. type StoreHolidayInfo { dates: holidayDates, days: String, details: [holidayDetails] } type holidayDates { repetitive: [String] @doc(description: "holiday id"), normal: [String] @doc(description: "holiday id"), shipping_off_day: [String] @doc(description: "holiday id") } type holidayDetails { holiday_id: ...


3

This looks like a bug in temando/module-shipping-m2 which is required by magento/product-community-edition. The data is added in vendor/temando/module-shipping-m2/Setup/UpgradeData.php:73 I first checked if there are any differences between the content in my db and the data the module upgrade step tries to insert: select * from ...


3

There is already an in-built GraphQl query to retrieve customer data. You can get core Magento customer data via below query. { customer { firstname lastname suffix email id addresses { firstname lastname street city region { region_code region region_id } postcode ...


3

I've found the solution. github.com/magento/magento2/issues/25076 You have to patch the following file: vendor/zendframework/zend-mail/src/Headers.php $current = $headers; - $current->setEncoding($encoding); // Delete this line under $current = $headers; + // PATCH + //$current->setEncoding($encoding); + $current->setEncoding(...


3

you need to override subtotal.html file in your theme under : app/design/frontend/Vendor/Theme/Magento_Tax/web/template/checkout/summary/item/details/subtotal.html and remove or comment whole code of subtotal.html file run below command php bin/magento setup:upgrade && php bin/magento cache:flush && php bin/magento cache:clean &&...


3

There is a bug in magento 2.3.3. You need to edit admin layout More information here.


3

Notice the line this.customer = customerData.get('customer'). customerData.get() returns a ko.observable({...}). If you want to dig deeper, you can look at the get function from Magento_Customer/js/customer-data. This one returns buffer.get(sectionName) (buffer is a variable defined in the same file). and buffer.get looks like this: get: function (...


3

Happend same to me. When I try to click in a sub-category who have product with a review, give me the same error. Error comes from this file: vendor/magento/module-review/view/frontend/templates/helper/summary_short.phtml In line 13, ($rating = $block->getRatingSummary()) function getRatingSummary return me an array or an objetct and this give me error....


3

Need to serialize <?php $rating = serialize($block->getRatingSummary()) ?> in vendor/magento/module-review/view/frontend/templates/helper/summary_short.phtml on line 13.


Only top voted, non community-wiki answers of a minimum length are eligible