I added a custom payment option for Magento 2 admin. When using the payment option checkout from admin the order total showing as the total due. How to make it as total paid instead of Total Due when i am using my custom payment option placing an order from admin
Blog
$this->getSelect()->join( ["address" => "sales_order_address"], 'main_table.entity_id = address.parent_id AND address.address_type = "shipping"', array('postcode') )->joinLeft( ["so" => "sales_order_tax"], 'main_table.entity_id = so.order_id', array('sgst' => 'address.postcode' == 600020 ? new Zend_Db_Expr('SUM(amount)/2') : new Zend_Db_Expr(0),'cgst' => 'address.postcode' == 600020 ? new Zend_Db_Expr('SUM(amount)/2') : new Zend_Db_Expr(0),'igst' => 'address.postcode' == 600020 ? new Zend_Db_Expr('SUM(amount)') : new Zend_Db_Expr(0),'amount' […]
The payment method is not showing on the checkout page. console error: Uncaught Error: Script error for: Magento_Checkout/js/model/place-order b2aee5ee1e36f296863f6f91b53a4ae9.min.js:16 Uncaught Error: Script error for: Magento_Checkout/js/model/place-order http://requirejs.org/docs/errors.html#scripterror at makeError (b2aee5ee1e36f296863f6f91b53a4ae9.min.js:16) at HTMLScriptElement.onScriptError (b2aee5ee1e36f296863f6f91b53a4ae9.min.js:112) Please help me.
Here is my case: i have set a Task to Disable Network adapter at 8:00:00 pm and Enable Network adapter at 8:00:15. It works like charm but if the laptop is turned off and i turn it on at 8:30 then both tasks execute simultaneously and my adapter remains disabled. […]
I recently made a new computer and when I go to power it on, it powers on and will sometimes go to the BIOS but other times it won’t. I have tried removing and replacing the graphics card and RAM, as well as the power connectors for the CPU and […]
Wireless keyboard key writes wrong character when greater-than / less-than key is pressed in Ubuntu, but works fine when pressed while on Windows (I have a dual boot setup on my laptop). The wireless keyboard in question is the Logitech K235 that you can see here: https://imgur.com/ETdLGOt As you can […]
I am looking for a monitor that is not illuminated but rather like a Kindle paperwhite display to connect to my laptop or PC. I do a lot of reading from many websites and am trying to cut down on the amount of time my eyes spend looking at the […]
I wanted to move some commonly used code to simple methods and document them so I don’t forget what they are for, but for some reason only the getter method has a summary shown. Why is that and how do I fix it? I have “Generate XML documentation enabled”. Method […]