OpenLampTech issue #61
Common PHP design patters | WooCommerce Add to cart hooks | WordPress checklist | Harsh realities of using Linux. Thank you for reading OpenLampTech!
I’m so grateful you are here reading OpenLampTech! 👍
Thank you!!!
If someone awesome shared this newsletter with you and you are not yet subscribed, please use the Subscribe button below and join:
Recently Published on the Digital Owl’s Prose Developer Blog
I’m really trying to dig in and learn more about WooCommerce setup and development. I feel like my PHP skills (although limited to mostly Core and CodeIgniter) could be put to good use with this e-Commerce platform. Plus, one day I want to sell bass fishing tackle, lures, and gear on my Louisiana Bass Nation Anglers niche website. So I better learn how to build, modify, and manage my own WooCommerce shop!
OpenLampTech has top-level sponsorship opportunities in the weekly newsletter for your brand, product, or service. As a starter publication, collaboration is very budget-friendly. Inquire by email at openlamptech@substack.com for more information.
Below is the content I am sharing I enjoyed this week:
The Most Complete 101+ Step WordPress Checklist Ever
#wordpress
My thoughts: No matter how many times you do something, it's not a bad idea to have some sort of checklist to follow. Although repetition builds 'muscle memory', steps can be missed.
There are WordPress checklists galore across the internet and I even have a mashup one myself.
Here is the ultimate checklist for WordPress, sharing some often missed critical steps. To name but a few important ones to me (out of the many covered):
Email list(s) integration
SEO best practices and settings
Custom 404 pages
Analytics and monitoring
10 Harsh Realities Of Using Linux
#linux
My thoughts: Maybe harsh is well, too harsh of a word. It really depends. Finding yourself confused in the middle of a vanilla Arch Linux install (circa 2013)? Following the Wiki and deep in the terminal? Then yes, harsh is a good word.
There is a lot to consider when making Linux your main Operating System (OS).
Here are a few of the 'harsh realities' as covered in the article:
Steep learning curve - Likely so.
Gaming issues - Absolutely. I used to get mad when the Steam compatibility just wasn't there.😤
Lack of tech support - True. Just run
whoami
in the terminal and you'll find the answer of who your tech support is 😆Hardware support is limited.
Before and After Add to Cart Hooks
#wordpress #WooCommerce #eCommerce
My thoughts: I'm personally making an effort to learn more about small impactful customizations for WooCommerce in order to better serve my (eventual) target market - bass fishing eCommerce stores.
In this article, we learn about the action hooks available for customizing the Add to Cart button on the Single Product page and Product Archive page.
The hooks available are:
woocommerce_before_add_to_cart_button
woocommerce_after_add_to_cart_button
woocommerce_after_add_to_cart_quantity
woocommerce_before_add_to_cart_quantity
woocommerce_before_add_to_cart_form
woocommerce_after_add_to_cart_form
However, be aware that on the Product Archive page, you will need to use the woocommerce_loop_add_to_cart_link
hook instead of the hooks used on the Single Product page.
Table Doesn’t Exist: MySQL lower_case_table_names Problems
#mysql #database
My thoughts: I had previously thought the whole uppercase and lowercase table name issue in MySQL was related to the host Operating System (OS), with behavior differences between Windows and Linux.
Yet, there is more to it than that and that is in fact, a mostly separate issue.
This article shows an example of an issue with created and dropped tables that are created in opposite cases (upper or lower).
The options for the lower_case_table_names
global variable in MySQL can have a lot to do with this odd behavior.
Learn more in this article from the knowledgeable database experts at Percona.
📰 Get your brand, product, or service the attention it deserves with affordable classified ad placement in the OpenLampTech newsletter.
22 Ways To Protect WordPress Website From Cyber Attacks
#wordpress
My thoughts: There is no doubt that WordPress as a software is a common target for nefarious activity and hacking. It seems like more often than not if you are regularly reading WordPress content, there is always a new story detailing a hack, attack, or breach.
Many of the suggested preventions on this list are quite common. However, a few of them that caught my attention and should be implemented more often are:
Update WordPress security keys
Enable a WordPress user security question
Prohibit admin panel indexing
Turn off PHP error reporting
Common Design Pattern in PHP
#php
My thoughts: I am familiar with only 2 design patterns (if in fact, they are design patterns): Model View Controller (MVC) and Front Controller.
However, there are several other design patterns used in web (and other application) development.
Some interesting ones out of those listed in this article to me are:
Decorator Pattern - Dynamically add new and additional behavior to existing objects.
Observer Pattern - This enables an object's changes to be published to other objects without detailing those changes.
The Chain of Responsibility Pattern - Avoids the need for the request sender of knowing which object will process and handle the request.
Learn more about all of those covered in this high-level overview article.
Interesting Tech News and Articles 📰
🔎 Apache Iceberg promises to change the economics of cloud-based data analytics
🔎 Three Data Infrastructure Trends to Watch This Year
🔎 Popular WooCommerce plugin is patching vulnerability (01-04-2023)
🔎 How to integrate WordPress and Mastodon
🔎 SurrealDB raises $6M for its database-as-a-service offering (01-04-2023)
PHP framework news:
[#Classifieds and Click Ads]
🤝 OpenLampTech earns a small commission (or payment in some form) from many of these links. Your support helps keep the weekly OpenLampTech newsletter free for readers.
Subscribe to The Uncommon Solopreneur and learn how solopreneurs grow their businesses without working themselves into the ground.
Get smarter every single day by reading Refind. I read Refind every morning because Refind tailors the content to my interests.
Never miss the essential e-commerce industry news. Free delivery to your Inbox every Monday. Subscribe to the Shopifreaks E-Commerce Newsletter.
Thank you for reading. I hope you have a great rest of your week.
Take care.
Joshua Otwell
When you are ready, here are more ways I can help...
WordPress Services - Initial website setup, blog management, small WooCommerce customizations
Content creation - Writing, editing, blog management
Email - Newsletters, marketing, copywriting
Interested? Great!
Just hit Reply and ask for more information about any of these services.
OpenLampTech is a reader-supported publication. You can support the publication with a virtual coffee for as little as $3 (USD).