New answers tagged

0

Give 777 permission to var folder. sudo chmod -R 777 var/*


1

First check the php version PHP 7.1 or 7.2 1- Run command :- composer require magento/product-community-edition=2.3.3 --no-update 2- Run the composer update composer update And finally composer update command is done so run the below commands :- rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/*...


0

Just to Add Shekhar Suman Answer didn't work for me but certainly put me in the right path so Here is my changes to the ConfigProviderPlugin: class ConfigProviderPlugin { /** *@var checkoutSession */ protected $checkoutSession; /** *Constructor * @param CheckoutSession $checkoutSession */ public function ...


0

You Can Try This Following Two Method With Related Factory.. public function saveaddress(\Customapi\Api\Data\CustomerInterface $parameters) { // echo json_encode($parameters);exit; // print_r($parameters); // $postcode = isset($parameters ['postcode'])?$parameters ['postcode']:0; if ($parameters && $parameters->...


0

Add the following captcha block into your customer_account_login.xml <block class="Magento\Captcha\Block\Captcha" name="captcha" after="-" cacheable="false"> <action method="setFormId"> <argument name="formId" xsi:type="string">user_login</argument> </action> <...


0

I had same issue and i fixed it by changing block name <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="product.info.addtocart"> <block class="Package_Name\...


0

Try - {{block class="Magento\Customer\Block\Form\Login" template="Magento_Customer::form/login.phtml"}}


0

I had the same problem after migrating from Magento 1. The solution is to install a fresh Magento 2 and copy the E-Mail template from there or copy the parts you need.


0

I fixed the error by deleting the module in /pub/static/frontend/mycompany/base/


0

Maybe this will help catalog_entity_attribute_save_before / catalog_entity_attribute_save_after 1) Create events.xml inside Vendor/Module/etc/ and add below code inside events.xml For catalog_entity_attribute_save_before Add This : <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...


0

In my case I was setting up a new server and had copied the database over from a development site. Although I had an app/etc/env.php file and it was pointing at the correct db, it was missing the install/date timestamp congfig so the Magento didn't think that the application had been installed and wasn't showing all the commands. Thanks to yaronishs answer I ...


0

It's a common issue when you're using developer mode and have the minify configuration on. To fix it, only on local environment, please run the commands below: bin/magento config:set dev/js/minify_files 0 bin/magento config:set dev/css/minify_files 0 bin/magento config:set dev/js/minify_files 0 bin/magento cache:flush bin/magento setup:static-content:deploy ...


0

This will help you get the category name. It works for me public function getTree($node, $depth = null, $currentLevel = 0) { /** @var \Magento\Catalog\Api\Data\CategoryTreeInterface[] $children */ // $children = $this->getChildren($node, $depth, $currentLevel); // /** @var \Magento\Catalog\Api\Data\CategoryTreeInterface $tree */ // $tree ...


3

You can customise invoice PDF using following way in your custom module, here I have added Parent Category Name before Product Name: /app/code/Vendor/Module/etc/di.xml <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <config xmlns:xsi="http://www.w3.org/2001/...


1

You have create the custom module You want to change thee invoice pdf columns headers this file like :- vendor/modulename/Model/Order/Pdf/Invoice.php And change the invoice pdf alignments right left position invoice number, invoice date etc like file :- vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php Note :- And AbstractPdf.php file ...


0

I faced the same issue after extending a class. The problem was that there was a backslash missing: Wrong: class AbstractProduct extends Magento\Catalog\Block\Product\AbstractProduct Correct: class AbstractProduct extends \Magento\Catalog\Block\Product\AbstractProduct


2

You can customize by overriding below class "AbstractPdf" in your Module: vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php


0

Try this code :- $collection = $this->productFactory->create(); $collection->addAttributeToFilter('status', array('eq' => 1));


0

Try to use addAttributeToFilter with or condition $collection->addAttributeToFilter('attribute_code', array( array('finset'=> array('237')), array('finset'=> array('238')), array('finset'=> array('239')), ) );


0

i found an easy way to solve my problem just updating how varnish hash my request: in my case i'm using cloudflare and he send an additional request to my server and i used this request to generate a unique hash based on it: into VCL file sub vcl_hash { if (req.http.cookie ~ "X-Magento-Vary=") { hash_data(regsub(req.http.cookie+req.http.cf-ipcountry,...


0

you can use: https://www.ubertheme.com/magento-news/magento-2-data-migration-tool/ third party service for move to magento 2


0

I think I've found the best way to achieve that, you'll get file extension from this code: $pathArray = explode('.', $path); $extension = end($pathArray); return $extension;


0

I have added code in your block file, Check this. protected $_rendererFieldset; public function __construct( ------------- \Magento\Backend\Block\Widget\Form\Renderer\Fieldset $rendererFieldset, ------------- ) { ------------ $this->_rendererFieldset = $rendererFieldset; ------------ } protected function _prepareForm() { /* @...


3

If you want to restrict some specific region then you can try below method: vendor/magento/module-directory/Model/ResourceModel/Region/Collection.php //Added restriction to some states Please make sure you are override this in your custom module and customize your changes. Thanks


0

Thanks for your valuable information. I will try this solution. Thanks


0

If you want to resolved this issue, please try Magento marketplace below extension which made by Authorize.Net: https://marketplace.magento.com/authorizenet-magento-module-authorizenet.html If you getting any issue then check the compatible version and upgrade accordingly which can be help your problem. Thanks Ketan T.


0

I started having this issue after upgrade from 1.9.0.1 to 2.3.3 only when I tried to sort elements by some parameter. Though when I created another user it didn't have that issue. More like temporary fix but it worked for me.


0

Similar to other answers here but more thorough I did it with layout XML https://github.com/DominicWatts/MaintenancePage/blob/master/view/frontend/layout/maintenance_page_mode.xml <?xml version="1.0" ?> <page layout="empty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/...


0

In your Controller Class, you need to add "true" when creating your factory under the "execute" function. To assist you further; I include my code below to help writing this Class: namespace Vendor\Module\Controller\Index; class View extends \Magento\Framework\App\Action\Action { protected $PageFactory; public function __construct ( ...


0

$ private $customerFactory; public function __construct( \Magento\Customer\Model\CustomerFactory $customerFactory, Context $context ) { parent::__construct($context); $this->customerFactory = $customerFactory; } public function execute() { $customerId = 1; $customer = $this->customerFactory->create(); echo "<pre&...


0

@Rakesh Jesadiya have you found solution for this?


0

i hope you we get pagination issue due to getsize count wrong. whenever you use group by query then call getSize function means it will give first record data so it will give wrong count. for this before embed group by query. you should call getSize function. so it will set before execute group by query. code should like this if($this->getCurrentOrder()=...


1

Make a list of extension that implemented, It is better to filter which extensions that you gonna need or you don't need it anymore after the upgrade. Find the source of every extension that you want to implement (whether you buy it or develop on yourself or third party vendor) If the extension you buy and modify from extension developer company like amasty, ...


0

So Blocks are there to fill content into the page Widget structure that is already provided by the LUMA theme? So LUMA sounds like it provides page structure via Widgets and the content developer finds the correct Widget to place the Content in? Is there a LUMA "page Widget map" that points out the location of the Widgets on a particular page? As far as ...


2

You can disable password validation from the admin panel for that go to Stores -> Configuration -> Customers -> Customer Configuration in Password Options section there is a field Number of Required Character Classes set 1 in that field and in Minimum Password Length set 5 and save the configuration.


0

You can do with change of sort order attributes value. Add the below code to your theme catalog_product_view.xml <referenceBlock name="product.attributes"> <arguments> <argument name="sort_order" xsi:type="string">10</argument> </arguments> </referenceBlock> <...


0

Yes, Active the "More InfomationTab" Like, Go Admin Panel, Click on Stores -> Attributes -> Product -> Your Attributes And open your attribute and go to sidebar and click Storefront Properties Set Yes on Visible on Catalog Pages on Storefront. And final assign your product attribute Now your value display inside more information tab. clear cache. Hope ...


0

Nothing is working Did all mentioned ideas Still update in progress And now screen showing nothing and Magento admin platform not working


0

I don't think that cron job has tried to install any extension and site crashed. Extension will not installed automatically untill you run composer update or setup: upgrade command. It may be issue with reindexing. May be cronjob is set you reindexing. Try reindexing manually once. php bin/magento indexer:reindex I hope it will help you! Thanks.


2

Follow the below steps for remove decimal from qty : You need to add sequence in your module.xml file <module name="Vendor_Module" setup_version="1.0.0"> <sequence> <module name="Magento_CatalogInventory"/> </sequence> </module> Create product_listing.xml file at app/code/Vendor/Module/view/adminhtml/...


0

It can be possible quickly by third-party Mageplaza extension. https://www.mageplaza.com/magento-2-quick-cart/ Thanks Kapil


0

You can try below extension to solved your problem: https://marketplace.magento.com/mageplaza-module-quick-cart.html Thanks


0

It looks like you "just" deleted the assets. Run bin/magento setup:static-content:deploy to regenerate them and flush your cache afterwards. If you are lucky this was the only problem and you should be good. If not try to get a backup by your hosting provider. If you know what you do you could also just update your complete system by running a full update....


1

You have to extend the below file in your custom module to set the supportable font for the INR currency symbol. Magento\Sales\Model\Order\Pdf\Invoice.php You can use this already created module for order invoice pdf INR symbol change. Hope it will work for you.


0

Try the following : Stores-> Currency Symbols -> Uncheck Standard Symbol -> Typed required symbol -> ₹ -> Save Refresh cache


0

If you are using magento 2.3.3 or above then there is no directory for captcha Image generation in this path : /vendor/magento/zendframework1/library/Zend/Captcha For 2.3.3 or above Magento moved captcha generated code in /vendor/zendframework/zend-captcha/src/, so you need to override \Magento\Captcha\Model\DefaultModel that extends \Zend\Captcha\Image ...


0

I have a strange problem. We have our post_max_size set to 32M in our PHP ini. (php 7.2) But when I goto upload our logo in Content/Design/Config it says "Max limit 1kb" Where is Magento getting that value?


1

You can achieve by removing the block from customer_account_index.xml Create customer_account_index.xml layout file in your custom module or theme directory and add below code: <referenceBlock name="customer_account_dashboard_address" remove="true" />


0

Your are using wrong filter for Search using REST endpoints condition_type type should be &searchCriteria[filterGroups][1][filters][0][conditionType]=in it gives the result of 0 record. So Used finset A value within a set of values form multiselect &searchCriteria[filterGroups][1][filters][0][conditionType]=finset


0

In case where your get this error because attribute have been added programmatically and $attribute->getIsUserDefined() equal false mean it's a system attribut then you can run sql query : UPDATE `dpx_eav_attribute` SET `is_user_defined` = '1' WHERE `dpx_eav_attribute`.`attribute_code` = "{your attribut code}";


Top 50 recent answers are included