Yogesh Karodiya
  • Member for 6 years, 5 months
  • Last seen more than a month ago
Magento 2 Difference between Order Invoice, Cancel, Void, Hold and Ship
Accepted answer
13 votes

These are the order completion steps: Invoice: This step is payment confirmation receipt means when Admin get confirmation of payment then invoice should be generated it may be generated manually(...

View answer
magento 2 js modal popup close event
11 votes

You have to extend widget function _close in your custom module. Follow below steps for achieve your task: First create requirejs-config.js with code: var config = { map: { '*': { ...

View answer
Magento 2: get a list of all plugins (interceptors) and preferences
9 votes

For getting all available list of plugins: Go to vendor/magento/framework/Interception/PluginList/PluginList.php find method merge public function merge(array $config) { // default code echo "...

View answer
Magento 2: How to set VaultProvider?
Accepted answer
8 votes

After some R&D I got the solution myself. First I created a class in my module: namespace VendorName\ModuleName\Model\Payment; class Payflowpro { public function __construct( \Magento\...

View answer
How to add wrapper in checkout page in magento 2?
Accepted answer
6 votes

Order summary comes from module-checkout/view/frontend/web/template/sidebar.html at checkout page. You just need to change wrapper class here: Magento_Ui/js/modal/modal':{ 'type': 'custom', ...

View answer
404 not found in magento2
Accepted answer
6 votes

The problem was in my Apache server configuration the below procedure helped me solving this problem For Ubuntu edit the file /etc/apache2/apache2.conf (here we have an example of /var/www) <...

View answer
Difference between magento 2.1 and 2.2
Accepted answer
3 votes

You can compare both version from below link https://github.com/magento/magento2/compare/2.1...2.2 Open File Changed tab you can find here all changes related to file structure as well as code ...

View answer
Recoverable Error: Argument 1 passed to Magento\Framework\Data\Form::__construct() must be an instance of Magento\Framework\Data\Form\Element\Factory
3 votes

You can't instantiate an object of form without passing argument. Please refer file Magento\Framework\Data\Form.php wherein construct function there are four arguments (one is an array) so you must ...

View answer
Magento2 need to create the download link in custom module
Accepted answer
3 votes

This is the sample code for download pdf in magento2 namespace Namespace\ModuleName\Controller\ControllerName; use Magento\Framework\App\Filesystem\DirectoryList; class Download extends \Magento\...

View answer
Adding button in Magento 2
Accepted answer
3 votes

I am not sure it is correct way but it worked for me app/code/Magento/Ui/view/base/web/templates/form/components/collection.html <li class="address-list-item" data-bind="css: { 'ui-state-active': ...

View answer
Magento 2: Replacement for Mage::log method?
2 votes

There is one update for logger in 2.2. You can enable logger for production mode by run SQL: "INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', '0', 'dev/debug/...

View answer
Magento 2 : override customer grid collection
2 votes

By default customer group exist in grid collection filter. You just need to enable group from grid columns setting from right top corner of grid.

View answer
Magento 2 Payment Gateway - Howto show Gateway errors in Frontend?
2 votes

Generally this message is handle from two core files: Magento\Checkout\Model\PaymentInformationManagement and Magento\Checkout\Model\GuestPaymentInformationManagement from function ...

View answer
How to change the order of CSS files. Load module's CSS before theme's CSS in magento2?
2 votes

There are two ways: 1> All css load depending on order in app/etc/config.php. You can move your module before Magento_theme module then it will load all css of your custom module before your theme ...

View answer
this.getUrl() javascript Magento 2
Accepted answer
2 votes

getUrl() function defined in vendor/magento/module-checkout/view/frontend/web/js/model/resource-url-manager.js getUrl: function(urls, urlParams) { var url; if (utils....

View answer
Disable selected dates in default Magento2 calendar
Accepted answer
2 votes

Hi you can this code for disable dates var disableddates = ["20-06-2016", "12-06-2016"]; // assign your database dates function DisableSpecificDates(date) { var string = jQuery....

View answer
How to capture creditcard payment using sales order REST API magento 2?
1 votes

Use below tutorial for place order: https://devdocs.magento.com/guides/v2.3/rest/tutorials/orders/order-create-order.html You can directly use below request POST http:///rest/default/V1/carts/...

View answer
How can I use Mage.php in magento 2
1 votes

You can use bootstrap.php here. refer below example: use Magento\Framework\App\Bootstrap; require __DIR__ . '/app/bootstrap.php'; $bootstrap = Bootstrap::create(BP, $_SERVER); $obj = $bootstrap-&...

View answer
How to redirect user to specific page after register in Magento 2
1 votes

you can use Magento\Framework\App\Response\Http\Interceptor for redirect from observer public function __construct( --------- ResponseInterceptor $responseInterceptor ) { $this->...

View answer
how to call specific payment model function on place order in Magento 2
1 votes

I checked your module here two things are missing i.e add into ete\adminhtml\system.xml <field id="payment_action" translate="label" type="select" sortOrder="6" showInDefault="1" showInWebsite="1"...

View answer
How to get cart item id using product id in magento2
1 votes

$productid = 600; $quote = $this->checkoutHelper->getQuote(); foreach ($quote->getAllVisibleItems() as $_item) { $cartproductid = $_item->getProductId(); if($productid==$cartproductid)...

View answer
Sorry, but something went wrong. Please contact the seller. Issue : when checkout with credit card (Authorized.net) - Magento-2.1.2
Accepted answer
1 votes

This error generally comes when server connection timeout of api has been expired. For authorize.net it is 45 second. you can check it from here: Magento\Authorizenet\Model\TransactionService ...

View answer
Is there a mechanism built in to Magento 2 to re-auth orders with vaulted credit cards?
1 votes

You can use Magento\Braintree\Model\AdapterBraintreeAdapter class for achieve you goal, just you need to change attribute value according your requirement. For authorize action you have to set: $...

View answer
Custom controller: Argument 1 must be instance of Context, instead Objectmanager is given
Accepted answer
1 votes

This error may occur due to use of case sensitive name in controller or module. Generally this error ignore without the code compilation. This type of error only generate after compilation. It seems ...

View answer
Magento2 Multiple Blocks returns same object
Accepted answer
1 votes

Sometimes in magento some blocks are cached like Magento\Theme\Block\Html\Topmenu you can use below code for remove your block from cache. Insert below code in your block file. public function ...

View answer
override JS based on system configuration
Accepted answer
1 votes

just put all overriding code into if condition. if(your condition) { var config = { "map": { "*": { "Magento_Checkout/js/model/shipping-save-processor/default" : "...

View answer
Magento 2: How to get the product price with currency symbol in PHTML file with help of block
1 votes

You can get your current currency symbol from Magento\Directory\Model\Currency so just intitialize it in your construct function and call method getCurrencySymbol() for get current currecy symbol: $...

View answer
Redirecting to a external url when magento order status changed
1 votes

You can use: Mage::app()->getResponse() ->setRedirect('[ your url ]') ->sendResponse(); for redirect anywhere in your webshop.

View answer
Magento 2 - How to remove an unknown module?
1 votes

if you just run bin/magento setup:upgrade command then it will remove module from setup_module table which currently not available in your app/code folder

View answer
Magento 2 writing messages to a log file
Accepted answer
1 votes

Use below code for print in log file $this->_logger->log(\Psr\Log\LogLevel::DEBUG, "test");

View answer