A no nonsense notebook for nerds
-
How to reverse the ids in a mysql table column without breaking primary key constraint?
Let me explain the problem scenario: Let us assume we have a table with 4 columns in it out of which 1 is PRIMARY column and rest 3 contain some data. What we want to do is to reverse the primary key IDs for that data keeping the rest of data intact. It is like…
-
How to remove sign in popup from Magento 2 checkout page?
Magento2 has this authentication pop up on checkout page, which many store owners wont like to see on their checkout page. Background of this pop up area and Related files The pop up itself is generated by Magento_Customer::account/authentication-popup.phtml But this pop up works very differently on checkout page. In fact this is a separate pop…
-
How to show correct item count in Magento 2 Checkout Order summary?
By default, app/design/Magento/Checkout/view/frontend/web/template/summary/cart-items.html file is being usedOr vendor/magento/module-checkout/view/frontend/web/template/summary/cart-items.html To overload this file, create file cart-items.html in your theme folder. Make sure you place the file in Magento_Checkout/web/template/summary/ Edit the line And replace it with Reference Files: https://github.com/magento/magento2/blob/2.2/app/code/Magento/Checkout/view/frontend/web/template/summary/cart-items.html https://github.com/magento/magento2/blob/2.2/app/code/Magento/Checkout/view/frontend/web/js/view/summary/cart-items.js
-
How to dump all options for any attribute in Magento 2 programmatically?
The following code does not adhere to Magento’s developer recommendations. Using object manager in such a way externally is a TERRIBLE idea. Comment out line number 2 and then run the script. Edit line 11 and put the attribute code you want to dump
-
How to remove files with “No Content Changes Found” in Git Desktop
There are 3 possible ways git can find a file changed (even if you didn’t change it) Line Endings have changed File permissions have changed Bonus: if modification time has changed for first case try these settings in bash shell. One of these will fix it for you For second case, here is the flag…
-
Mouse and Keyboard sharing across Computers
We use multiple computers in workspace or in home. Often need to share same mouse and keyboard for all because you probably have a wireless/wired keyboard mouse set. here arises the issue that how to share same set of input controllers for both machines. Below are a few free and paid options for you to…
-
Magento 2 Multi Select click all code – Tax Rates
Put the following code in console.
-
How to fix Undefined class constant ‘ARRAY_AS_PROPS’ Fatal Error?
I received this error “Fatal Error: Uncaught error in Undefined class constant ‘ARRAY_AS_PROPS’”This issue is not related to PHP if you have 7.0 and above, it is zend framework’s module zend-http wrapper which is affected if Apache module is not present File responsible: zendframework\zend-http\src\Header\Cookie.php:75 Solution Do check enabled modules for Apache, I found out that…
-
3 ways to put a webpage on 100% device width
-
Quick tips on American SALES TAX for developers who are setting up an ecommerce store for USA based organization
So, all of the info you read below is the summary of 6 hours I spent yesterday in gathering information about taxes in USA. – to be particular – Sales Tax. Not Income tax To start with, USA has 50 states, meaning constituent political entity. All states have their own rules for sales tax and…
Got any book recommendations?