If you receive the error Error: Call to undefined method Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor::getCollectionClone() in /vendor/mageplaza/layered-navigation-m2/Model/Layer/Filter/Price.php:179 , the wrong search engine may be configured. For example, Elasticsearch may be running on the server while Magento is configured to use OpenSearch. Check the Magento…
Magenerds Baseprice no longer works in Magento 2.4.x
After upgrading to Magento 2.4.x, the Magenerds Baseprice extension may no longer work correctly: base prices no longer update when customers select options on the storefront. The following changes to the file /vendor/magenerds/baseprice/view/frontend/templates/configurable/afterprice.phtml may resolve the issue:
|
1 2 3 4 5 |
//aus require(['jquery', 'jquery/ui', 'domReady!'], function($) { // will be applied require(['jquery', 'jquery/ui', 'domReady!', 'Magento_Swatches/js/swatch-renderer'], function($) { |
|
1 2 3 4 5 6 7 |
//aus swatchWidget.element.find('.' + swatchWidget.options.classes.attributeClass + '[option-selected]').each(function () { options[$(this).attr('attribute-id')] = $(this).attr('option-selected'); // will be applied swatchWidget.element.find('.' + swatchWidget.options.classes.attributeClass + '[data-option-selected]').each(function () { options[$(this).data('attribute-id')] = $(this).attr('data-option-selected'); |
The…
Installing or using Magento 2.4 without Elasticsearch or OpenSearch?
Want to use Magento 2.4 or later but cannot install Elasticsearch or OpenSearch on your server? Or perhaps your host charges too much to configure and operate them? One possible workaround is to replace them with the traditional direct MySQL…
Order details missing from confirmation emails after updating to Magento 2.4.x
After upgrading to Magento 2.4.x, order details such as purchased products, subtotal and grand total may be missing from confirmation emails. Open the email template in Magento admin and look for {{layout handle=”sales_email_order_items” order=$order area=”frontend”}}. Replace that value with {{layout…
Pager missing after updating to Magento 2.4.3?
If the pager disappears from your Magento category page after upgrading to version 2.4.3, you may have overridden templates/product/list.phtml in your theme. Open the file and replace the following code:
|
1 |
<?= $block->getToolbarHtml() ?> |
with
|
1 |
<?= $block->getChildBlock('toolbar')->setIsBottom(true)->toHtml() ?> |
That should resolve the problem.
Installing Magento 2.4 using the CLI
Starting with Magento 2.4.0, the installation wizard was removed. Magento must now be installed through the command line (CLI). The following command installs Magento 2.4.x on your server:
|
1 |
bin/magento setup:install --base-url="https://yoururl.com/" --db-host="localhost" --db-name="yourdb" --db-user="yourdbuser" --db-password="yourdbpassword" --admin-firstname="Firstname" --admin-lastname="Lastname" --admin-email="you@whatever.com" --admin-user="youruser" --admin-password="youradminpassword" --language="en_US" --currency="EUR" --timezone="Europe/Berlin" --use-rewrites="1" --backend-frontname="admin_whatever" |
After the command completes, you should find a standard Magento 2.4…