Skip to content

Evermore Technologies Blog

Random musings from inside the company.

  • Home
  • Programming
  • Magento
  • Server Administration
  • Sites We Developed
Evermore Technologies Blog
Random musings from inside the company.
  • Magento 2 | Magento 2 Code Snippets

    Magento 2 get region id from state code.

    ByKevin Miles December 11, 2017December 11, 2017

    Magento’s region ID’s are internal primary keys on the database that don’t mean anything to the rest of the world.  two digit state codes, such as MN or AL are a universal region identifier. I had to import customers from an external ERP into Magento 2.  There might be a way to set a region…

    Read More Magento 2 get region id from state code.Continue

  • Magento | Magento 1 Code Snippets

    Get Authorize.net information from a Magento 1 database

    ByKevin Miles November 30, 2017

    Magento encrypts the sensitive information that it stores in the database. That’s great for security, but it means if you need information that only exists as encrypted in the database, it can be hard to get to. To get the data out of there, you need to have access to the file system that runs…

    Read More Get Authorize.net information from a Magento 1 databaseContinue

  • Magento 2 | Magento 2 Code Snippets

    Magento 2 Disable Payment Method in php Using payment_method_is_active Observer

    ByKevin Miles November 30, 2017December 29, 2017

    I recently came across a situation where I needed to be able to turn off payment method on checkout based on customer information on a Magneto 2 site. The best solution seemed to be to tie into the payment_method_is_active event. I left the payment method turned on in the admin for ease of use and…

    Read More Magento 2 Disable Payment Method in php Using payment_method_is_active ObserverContinue

  • Javascript

    Javascript to check for PO boxes

    ByKevin Miles November 20, 2017November 20, 2017

    It’s not pretty, but sometimes you need to check an address input to see if it’s a PO box.  Rules will be different around PO boxes. For that, I use a simple javascript pattern.  It has the down side of checking for “P”, “O”, and “Box” in the string in order, so something like Poratable…

    Read More Javascript to check for PO boxesContinue

  • Magento 2 | Magento 2 Code Snippets

    Creating a Magento 2 admin user via the command line.

    ByKevin Miles October 31, 2017October 31, 2017

    This is a pretty simple task, but I always have to look up the documentation on what the switches are to make a user, so below is the command I use: php bin/magento admin:user:create –admin-user=”kmiles” –admin-password=”password1″ –admin-email=”email@domain.com” –admin-firstname=”Kevin” –admin-lastname=”Miles” There’s also a sometimes needed unlock command for when a user, or myself, tries to log…

    Read More Creating a Magento 2 admin user via the command line.Continue

  • Magento | Manual SQL - Use with Caution

    Clearing Magento 1 log tables

    ByKevin Miles October 9, 2017October 17, 2017

    Like all software, Magento 1 likes to log a lot of actions. That is usually useful information and not a problem, but it can make for a larger database that you would like. Especially if you need to copy the site to a new server or a local development environment. Honestly, in my experience, I…

    Read More Clearing Magento 1 log tablesContinue

  • Magento 2 | Magento 2 Code Snippets

    Get address fields in Magento 2 from an order object.

    ByKevin Miles September 19, 2017

    There are many times during development that I need to get part of, or all or, an order address in Magento 2 development.  For mapping rules in integration or passing the state to a tracking script. When doing this, for US anyways, here is the code framework I start with: [code] /** $order – \Magento\Sales\Model\Order…

    Read More Get address fields in Magento 2 from an order object.Continue

  • Server Administration | Ubuntu | Web Server

    Free SSL with Certbot and Letsencrypt

    ByKevin Miles July 21, 2017

    I have heard about letsencrypt.org for a while now, but never took the time to get it setup. I finally found the time and can say that it was quite easy to do, and I can’t believe I didn’t do it sooner. The main link I followed is here: https://certbot.eff.org/#ubuntuxenial-nginx You can change the web…

    Read More Free SSL with Certbot and LetsencryptContinue

  • Uncategorized

    Century Link Cloud

    ByKevin Miles July 17, 2017July 17, 2017

    Years ago I wrote about Rackspace Cloud offering me a good server platform at a reasonable cost. While I still have a few servers living there, I am pleased to say that I have found a new one that offers me an even better platform for my business needs. That platform is the Century Link…

    Read More Century Link CloudContinue

  • Server Administration | Ubuntu | Web Server

    a2ensite for Nginx on Ubuntu

    ByKevin Miles July 10, 2017November 7, 2017

    a2ensite is a nice command that creates the symlink needed for an apache config file from sites-available to sites-enabled. Nginx doesn’t have such a command, but it is quite simple to create the symlink through bash. Just run this command: sudo ln -s /etc/nginx/sites-available/mysite.com /etc/nginx/sites-enabled/   And reload nginx config sudo service nginx reload  …

    Read More a2ensite for Nginx on UbuntuContinue

Page navigation

Previous PagePrevious 1 2 3 4 … 8 Next PageNext
Search

Categories

  • AI (1)
  • Internet Marketing (4)
  • Javascript (1)
  • Magento 2 (8)
    • Magento 2 Code Snippets (4)
  • Programming (33)
    • Drupal (4)
      • Ubercart (2)
    • Magento (14)
      • Collections (1)
      • Design (2)
      • Magento 1 Code Snippets (1)
      • Manual SQL – Use with Caution (3)
    • SQL (4)
    • Version Control (2)
      • Git (1)
    • Wordpress Development (4)
      • Plugins (4)
  • Server Administration (7)
    • Ubuntu (7)
      • Bash Commands (1)
      • Web Server (5)
  • Uncategorized (14)
  • Website Development News (10)
    • Sites We Developed (10)

© 2026 Evermore Technologies Blog

Scroll to top
  • Home
  • Programming
  • Magento
  • Server Administration
  • Sites We Developed
Search