• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Tutsplanet

Tutsplanet

Free Technical and Blogging Resources

  • Home
  • Web Hosting
  • Programming
  • Plugins
  • Twitter Trends
  • Tools
  • About Us

Programming

How to copy file from host system to docker container?

Oct 25, 2024 Editorial Staff Leave a Comment

The quickest way to transfer/copy files from the host system to docker containers is using the “docker cp” command. The command will be as follows By running “docker ps -a” you can see the ID of the container Use the “docker exec -it” command to check if the location exists inside the container. If everything…Continue Reading

Programming TagsMagento 2

Add Custom Attribute to Sort option in Magento Search Results page

Oct 22, 2024 Editorial Staff Leave a Comment

Requirement In our webshop, we have products with a discontinued flag, and a custom attribute added to the product section of Magento to mark a product. When a customer searches for products, the result will also include these discontinued products. We do not plan to hide these results, but it’s quite annoying it comes in…Continue Reading

Design & Development

How to Fix – products have the issue: Missing inventory data – Google Merchant center?

Oct 18, 2024 Editorial Staff Leave a Comment

One fine day, I have been browsing different options through Google Merchant Center and enabled/disabled some settings. But the next day, GMC surprised me with some warnings like the below products have the issue: Missing inventory data in the notifications tab We had more than 1000 products and it baffled me a lot, that I…Continue Reading

Programming Tagsmagento2

How To Add More Sorting Fields in Magento 2.4?

Oct 16, 2024 Editorial Staff Leave a Comment

In today’s tutorial, we shows how to add a new sort field to the Magento 2 project. Note: This is only tested on versions after 2.4.6. To keep the tutorial simple, I assume you have already a functioning module, or you know how to create a module in Magento. First, we create Vendor\ModuleName\etc\di.xml to run…Continue Reading

Programming TagsMySql

How to update innodb_buffer_pool_size in mysql 8 with Ubuntu 24.04?

Oct 9, 2024 Editorial Staff Leave a Comment

In today’s discussion, we are showing how to update innodb_buffer_pool_size in MySQL 8 with Ubuntu 24.04. Go to this file /etc/mysql/my.conf When you open the file you will be encounter something like below, if you don’t perform any modifications Next, add the below block before the include statements in the file Now your file will…Continue Reading

Programming TagsWordpress

Custom Error Message With wpcf7_before_send_mail Hook

Sep 24, 2024 Editorial Staff Leave a Comment

In today’s snippet we are illustrating how to add a customer error message when using wpcf7_before_send_mail in WordPress Contact Form 7. My example follows implementing a minimal custom honeypot captcha in the Contact Form 7. The $abort = true statement will prevent the email from being sent.

Programming TagsMagento 2

Which layout file is responsible for the cms page in Magento 2?

Aug 28, 2024 Editorial Staff Leave a Comment

In Magento 2, the layout file responsible for rendering CMS pages is cms_page_view.xml. This layout file is typically located in: This layout file determines the structure and contents of the CMS pages, such as which blocks are included and their positions. If you need to customize the layout of CMS pages, you can create or…Continue Reading

Programming TagsMagento 2

Create a Guest Order using REST Api in Magento 2

Aug 6, 2024 Editorial Staff Leave a Comment

Today’s tutorial discusses how to create a guest order using the REST API in Magento 2. Oftentimes, we have to integrate our store into mobile applications, and mobile application needs the data in the form of APIs. Following are the steps to create a guest order using Rest API in Magento 2 Step 1: Create…Continue Reading

Design & Development TagsAI

Smart Stays: Avatars Set the Standard for AI Concierge Elegance in Hotels

Dec 14, 2023 Editorial Staff Leave a Comment

Picture this: you walk into a hotel, and instead of a human behind the front desk. You see a friendly robot ready to help. That’s the magic of AI concierges. These are like super-smart computer friends. Lastly, That can assist you during your stay. They can answer questions and recommend cool places to visit. And…Continue Reading

General TagsjQuery

How to show a div and hide after a few seconds in jQuery?

Dec 13, 2023 Editorial Staff Leave a Comment

jQuery is capable of doing amazing stuff with less code in our applications. Today, we are seeing one use case where we can show a hidden div and hide again after few seconds in jQuery.

Programming TagsMagento 2

Magento 2: How to send data using Ajax form in custom form?

Dec 13, 2023 Editorial Staff Leave a Comment

In Magento 2, we can use jQuery to perform some ajax requests such as sending an email from the catalog product, or a custom contact form with user details. The following easy script will help you to implement ajax with jQuery in a phtml file of your choice. Inspiration

Programming TagsMagento 2

How to assign a Guest Order to a Customer in Magento 2?

Nov 24, 2023 Editorial Staff Leave a Comment

We are seeing this a lot as the customer places order with out logged in and later create and account and view their orders from the dashboard. We can solve this issue by directly running SQL queries or just creating a small script to do it. SQL Method Using PHP Script Source

Programming TagsMagento 2

How to get product collection based on custom attribute (drop down attribute value)

Nov 15, 2023 Editorial Staff Leave a Comment

Magento 2 is well known for it’s capacity to extending the features. Today’s article we will be discussing how to get product collection based on custom attribute (drop down attribute value). For dropdown attribute, We can filter using dropdown option ID instead of Label. So your code is like below. The above 20 is the…Continue Reading

Programming TagsMagento 2

How Get Current URL from a PHTML – Magento 2

Oct 20, 2023 Editorial Staff Leave a Comment

Today’s post we are discussing how to get the current URL in phtml file in Magento 2. As we know we have access to object in the phtml, we can utilize that for this purpose. Let’s print methods for the class It produces the output like this From this we can use the method get…Continue Reading

Programming TagsMagento 2

How to programmatically update name of category in specific store – Magento 2

Oct 4, 2023 Editorial Staff Leave a Comment

Follow the below code to programatically update name of category in a specific store in Magento 2.

General

Best Dummy Content – Lorem Ipsum

Aug 14, 2023 Editorial Staff Leave a Comment

Image

What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also…Continue Reading

General, Programming Tagsbash, Shell

How to write to a file, but overwrite existing data in a bash script?

Aug 4, 2023 Editorial Staff Leave a Comment

Image

To write to a file and overwrite any existing data, you can use the > operator. For example, to write “Hello, world!” to a file called hello.txt, you can run the following command: This redirection >> helps to append, but you can use a single arrow syntax to overwrite existing data. If the file hello.txt…Continue Reading

Programming TagsMagento 2

How to get category id by category name in Magento 2

Jul 27, 2023 Editorial Staff Leave a Comment

In today’s blog, we are illustrating how to get a category id by category name in Magento 2. Call the collection factory in the constructor of the class and using addAttributeToFilter filter the collection by name. You should make sure your category names are unique, or you have to add the level field in the…Continue Reading

Programming TagsMySql, phpmyadmin

TypeError: PhpMyAdmin\Export::getFilenameAndMimetype(): Argument #5 ($filenameTemplate) must be of type string, null given, called in /libraries/classes/Controllers/Export/ExportController.php on line 397

Jul 27, 2023 Editorial Staff 1 Comment

TypeError: PhpMyAdmin\Export::getFilenameAndMimetype(): Argument #5 ($filenameTemplate) must be of type string, null given, called in /libraries/classes/Controllers/Export/ExportController.php on line 397 The above error was coming when exporting the MySql with a fresh installation of phpMyAdmin. Solution Go to php.ini and change the max_input_vars to a higher value as the default would be 1000.

Programming TagsMagento 2

Magento 2: How to add option values to product attributes programmatically

Jul 24, 2023 Editorial Staff Leave a Comment

In today’s blog, we are showing how to add option values to product attributes programmatically in Magento 2.

Programming TagsMagento 2

Magento 2: Get the product attribute’s select option value from option_id without loading the product

Jul 24, 2023 Editorial Staff Leave a Comment

In today’s blog, we are showing how to get an option value based on the option id in Magento 2, without loading the product. First of all load the AttributeRepositoryInterface via constructor wherever you require this feature.

Programming TagsMagento 2

How to display images from theme folder in in phtml- Magento 2

Jul 14, 2023 Editorial Staff Leave a Comment

You can use below two methods to display images from theme folder in phtml file in Magento 2. Often times it’s very convenient to keep the theme related images to theme images folders.

Programming TagsMagento 2

You need to configure Two-Factor Authorization in order to proceed to your store’s admin area – Magento 2

Jun 16, 2023 Editorial Staff Leave a Comment

After installing Magento 2 you might encounter this screen, that says You need to configure Two-Factor Authorization in order to proceed to your store’s admin area.

Programming TagsMagento 2

How to Get Product Stock Quantity and Other Stock Information – Magento 2

Jun 16, 2023 Editorial Staff Leave a Comment

In today’s tutorial, I am showing how to get the product stock quantity and information in Magento 2. In this article, I will illustrate mainly two methods to get product stock information in Magento 2, and both methods are tested and confirmed it’s working. #Method 1 This method will be using \Magento\CatalogInventory\Model\Stock\Item class to get…Continue Reading

Programming TagsLaravel

What is getOrPut in Laravel?

Mar 28, 2023 Editorial Staff Leave a Comment

getOrPut feature was introduced in Laravel 8.81 and it’s a pretty amazing oneliner. getOrPut helps you to get an existing key or put the value if it doesn’t exist and return the value on a collection. As of now you want to have three lines of code to achieve this, but getOrPut changes everything. if…Continue Reading

Design & Development TagsGit, github

How to set up GitHub SSH in Ubuntu with example

Mar 25, 2023 Editorial Staff Leave a Comment

Today’s tutorial demonstrates how to configure GitHub ssh in your Ubuntu 22.04 operating system. We often use git and GitHub for development purposes, so connecting to remote Github is an important step in our development journey. Follow the below steps to connect your local machine to GitHub remote by configuring the GitHub ssh key. Adding…Continue Reading

General Tagsdocker

Docker Install Ubuntu : docker-desktop : Depends: docker-ce-cli but it is not installable

Mar 14, 2023 Editorial Staff Leave a Comment

Problem I was experiencing an issue when installing the docker desktop on Ubuntu 22.04, as it throws the below error when I ran the below command.

Programming TagsLaravel

What is the opposite of has() method in Laravel?

Nov 17, 2022 Editorial Staff Leave a Comment

We all know the has() method helps list a number of records with at least a related record in Laravel Eloquent. For example, below we can get all posts that have at least one comment. $posts = App\Models\Post::has(‘comments’)->get(); But what would be the opposite of this? How do we get a post that has zero…Continue Reading

Programming TagsLaravel

Laravel: Download files to storage from SFTP

Nov 3, 2022 Editorial Staff Leave a Comment

This post will discuss using Laravel to read and download files from a remote server via SFTP. For this purpose, we use a third-party package to connect to sftp and download the files to the storage folder in Laravel. The first and most important step is to install and configure the league/flysystem-sftp in the Laravel…Continue Reading

Programming Tagsnodejs

Why You Should Use Node Js For Enterprise Software?

Sep 27, 2022 Editorial Staff Leave a Comment

Nodejs-article

Enterprise software is developed to manage complicated tasks, such as monitoring and controlling essential business operations, gathering and analyzing data, and enforcing security policies. These programs tend to be complex, requiring much user input and a wide variety of separate but related components. The optimization of these applications is another potential obstacle. Additionally, enterprise apps…Continue Reading

  • Page 1
  • Page 2
  • Page 3
  • Interim pages omitted …
  • Page 19
  • Go to Next Page »

Primary Sidebar

Image

Quick Links

  • Top 21 Website Ideas To Make Money Online in 2021
  • A Simple YouTube Video Downloader Script in PHP
  • The 50 Most Useful jQuery Plugins for Frontend Development
  • Replace “\n” with new line characters, using Notepad++
  • Using Third-Party Libraries in Codeigniter
  • Upload Multiple Images and Store in Database using PHP and MySQL.
  • Hierarchical Tree view Category Example in Laravel
  • Laravel Image Intervention Tutorial With Example
  • How to import sql file in MySQL database using PHP?
  • Free VAT Calculator Online

Subscribe

* indicates required

Search Here

Share

Image   Image Image

Categories

  • Design & Development
  • Drupal
  • Facebook
  • General
  • How To
  • ios
  • Javascript
  • Linux
  • Magento
  • Marketing
  • News
  • PHP
  • Plugins
  • Programming
  • Snippets List
  • Social Media
  • Softwares
  • Themes
  • Tips
  • Wordpress
  • YouTube

Copyright © 2026 · Planet on Genesis Framework · Powered By BunnyCDN . Network oneweb.tools

Advertisement