Mindblown: a blog about philosophy.

  • Add custom breadcrumbs on page in Magento 2

    What Are Breadcrumbs? Breadcrumbs are generally is set of paths that show visitors where they are in relation to other pages on the site. Breadcrumbs are generally located below the header, just after the main menu navigation. In Magento 2 by default, breadcrumbs are showing in categories and products pages and can be configured to…

  • How to enable CORS in WordPress?

    Enabling Cross-Origin Resource Sharing (CORS) in WordPress involves allowing external domains or websites to make requests to your WordPress site’s resources (e.g., images, fonts, APIs) from a different origin. This is often necessary when you want to embed content or interact with your WordPress site from another domain. Here’s how to enable CORS in WordPress:…

  • How to Enable/Disable Cache in Magento 2 ?

    In Magento 2, you can enable or disable caching through the admin panel or via the command line. Caching is an important aspect of optimizing the performance of your Magento store. Here’s how to enable or disable caching using both methods: Method 1: Using the Admin Panel Method 2: Using the Command Line You can…

  • Customize price in ups shipping method magento 2 plugin

    Customizing the price in the UPS shipping method for a Magento 2 plugin involves modifying the shipping rate calculation logic. This typically requires creating a custom module or extending the existing UPS shipping module in Magento 2. Here are the steps to customize the price in the UPS shipping method: 1. Create a Custom Module…

  • Magento 2 create order programmatically proper example

    Creating an order programmatically in Magento 2 is a complex process, and there isn’t a one-size-fits-all example that covers all possible scenarios. However, I can provide you with a basic example that you can use as a starting point. Keep in mind that you may need to adapt and extend this example to fit your…

  • Install Magento 2.4.6 using Composer

    To install Magento 2.4.6 using Composer, follow these steps. Composer is a dependency management tool for PHP that Magento 2 relies on for installation and updates. Prerequisites: Before you begin, make sure you have the following prerequisites: Create a Magento Directory: Create a directory where you want to install Magento. You can do this using…

  • How to add css class on body [Magento2] ?

    In Magento 2, you can add a CSS class to the <body> tag by creating a custom layout XML file. Here are the steps to do so: Create a Custom Module (if not already done): If you don’t have a custom module already, you should create one. You can use the following commands to create…

  • How to switch PHP version for CLI?

    Run the below command and select the PHP version you want to switch to. In the below example, I’m switching the PHP version to 7.4. Command Line: update-alternatives –config php There are 4 choices for the alternative php (providing /usr/bin/php). Selection  Path                     Priority      Status…

  • Hello world!

    Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

Got any book recommendations?