Add code

Tuesday 8 December 2020

How to increase Magento 2 website speed?

 Step 1: First, Optimize your Server and the System Requirements

Step 2: Update your Magento 2 to the latest version of Magento 2

Step 3: Enable Varnish Cache to your website

Step 4: Configure the Memcached

Step 5: Enable the Flat Categories and Flat Products

Step 6: Optimize your website's Javascript and CSS

Step 7: Setup CDN (Content Delivery Network)

Step 8: Use a good theme for your e-Commerce store

Step 9: Choose suitable and worthy Extensions

Step 10: Optimize the Images of your website

Wednesday 25 November 2020

What is Exception in Magento ?

 Exception:

By default, Magento 2 gives us the exception logs in one file. If we have an error message for any type it says “There has been an error processing your request, Magento exception printing is disabled by default for security reasons”, That time, we need to verify that our server may have to write permissions to the log directory which existed in the root.

What is the reason to become Magento is most valuable for the ecommerce businesses?

  1. Magento is Open source technology. It is perfect for all types of small businesses.
  2. Magento is a fast e-commerce platform, affordable,  it gives small companies more flexibility in customization of its potential.
  3. Magento saves those types of businesses time and money if they need only a simple and perfect solution.
  4. Magento platform makes easy and valuable online transactions and/or purchasing affordable on the websites.

Thursday 22 October 2020

Why Magento 2 technology is better than Magento 1 ?

 There are so many differences and usabilities that existed in Magento2. Here, The major difference between Magento1 and Magento2 is that Magento 2 is SEO friendly and faster, and it is more user friendly than the Magento1. Magento 2 supports the latest PHP version and that improves the overall speed of the website. It can take the more orders per the on time like per hour and the website's page also loads faster than Magento 1.

Thursday 15 October 2020

Is Magento available for free ?

 Magento, Magento is an Open Source and is a free edition of the platform. It is designed for the developers and for the small business store owners. This Magento version can download and can use completely free of cost. Anyways, launching the Magento Open Source website goes beyond downloading and to install the software.

Saturday 10 October 2020

What is the passing score for Magento's (Certification) Certified Developer Exam?

Passing score for the Magento's (Certification) Certified Developer Exam

  1. Magento's Certified Developer exam is: 37 or higher
  2. Magento's Certified Developer Plus exam is: For sections 11 & 12 combined a score of 7 or higher AND meet the overall passing score of 48 or higher
  3. Magento's Certified Front End Developer exam is: 44 or higher
  4. Magento's Certified Solution Specialist exam is: 39 or higher
  5. Magento2's Certified Solutions Specialist exam is: 53 or higher
  6. Magento2's Certified Professional Developer exam is: 64% or higher
  7. Magento2's Certified Associate Developer exam is: 68% or higher
  8. Magento2's Certified Professional Front End Developer exam is: 63% or higher
  9. Magento2's Certified Professional JavaScript Developer exam is: 63% or higher

Why switch to Magento 2 ?

1. Modular the architecture and the coding structures:

By this, we can find that there is more capacity to grow with Magento 2 version.

2. Magento2 Advanced search functionality:

Magento2 uses the Elastic Search both within the website and on the admin side also. That means that users can quickly find what they are looking for.

3. Automated testing feature:

This Automated testing feature improves the code quality, which in itself speeds up the time to market for new website builds and changes.

4. Simplified the Magento2 upgrades:

This feature gives our merchants an easier path to the latest version of Magento without any costly and complex upgrades Magento2.

5. Improved performance of the website:

This will cover both client and server-side optimization and includes the addition of 3rd party caching on the Magento store.

6. Flexible architecture of Magento2:

Magento2 is built on a modern and advanced technology stack, making it very quick to build the new sites by embracing the latest web technology.

7. Modular design also one additional feature:

This Magento's partner can create, retrieve, update, and remove functionality without affecting the underlying system integrity of the existing.

8. Great frameworks among all:

The latest Magento's theme, layout, structure, and design options allow for a great user experience.

Thursday 8 October 2020

How we will remove the decimal points from the price in Magento2 website?

Override the following file from the following path `vendor/magento/module-catalog/view/base/web/js/price-utils.js` then change the value of precision on line 38 as the following changes:

from

    var precision=isNaN(format.requiredPrecision=Math.abs(format.requiredPrecision)) ? 2 : format.requiredPrecision,

to

    var precision=0

How to change the order status from COMPLETED TO CLOSED in Magento?

 To Translate the words in Magento:


app/design/frontend/Package_Name/Theme_Name/i18n/en_US.csv file and add the following rows:

"Add to Cart", "Purchase"
"Add to Compare", "Compare"
"Add to Wish List", "Wishlist"

Then run :

php bin/magento setup:static-content:deploy -f
change directories according to your theme

How can i Import all categories into Magento Site ?

How to Import all Categories into Magento website

To import all categories and products to your Magento website, we need to follow the following instructions.

  1. Create all categories and create one product on your Magento website
  2. Then export the data and keep that file with you.
  3. Now arrange the data which you want to import into the website, that total has to be arranged in the format which like your exported data.
  4. After arranging you can easily import the data into your Magento website.

Note:  After import the data, you need to make reindex.

How to redirect my Magento website from HTTP to HTTPS ?

To redirect a Magento website from HTTP to HTTPS, I think which Magento version you are using is not an important one.  

You just follow these following steps:

  1. Your host/PHPMyAdmin
  2. Select your database from the existing
  3. Find for the table `core_config_data` in that
  4. Now, change the secured and unsecured URLs here, like https://www.domain.com/

New order confirmation email is not being sent on Magento website

We have 2 methods to send the confirmation emails from our Magento 1 website.

  1. Using Cron
  2. Avoiding Cron

If you want to avoid the Cron :

Open the file order.php file from the following path:

app/code/core/Mage/Sales/Model/Order.php

Line#1356,1450

Change the following

    //$mailer->setQueue($emailQueue)->send(); 

to the following:

    $mailer-> send();

In the following path `app/design/frontend/base/default/template/checkout/success.phtml`:

add the following line Top success page for sending mail direct

    $order = Mage::getModel('sales/order');

    $incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId(); 

    $order->loadByIncrementId($incrementId);

    try{ 

    $order->sendNewOrderEmail();

    } catch (Exception $ex) { 

    echo "Email Not Sent..."; 

    }

    $customer = Mage::getSingleton('customer/session')->getCustomer();

    $email = $customer->getEmail();

    //End Email Sending

Friday 2 October 2020

Magento 2: How to remove decimal points from the price

 You need to override vendor/magento/module-catalog/view/base/web/js/price-utils.js and change the value of precision on line 38:

from

    var precision = isNaN(format.requiredPrecision = Math.abs(format.requiredPrecision)) ? 2 : format.requiredPrecision,

to

    var precision = 0

Magento2: How to get list of category's dropdown attributes?

Let's say that `$category` is the instance of the current category;


    $collection = $category->getProductCollection()->addAttributeToSelect(['manufacturer', 'color']);

    $manufacturers = [];

    $colors = [];

    foreach ($collection as $product) {

        $manufacturer = $product->getData('manufacturer');

        if ($manufacturer && !isset($manufacturers[$manufacturer])) {

             $manufacturers[$manufacturer] = $product->getAttributeText('manufacturer');

        }

        $color = $product->getData('color');

        if ($color && !isset($colors[$color])) {

             $colors[$color] = $product->getAttributeText('color');

        }

    }


after this, `$manufacutrers` and `$colors` should contain all the values you need. The key is the id, and the value is the option label.  

But this may cause performance issues if you have a large product collection.

Thursday 1 October 2020

What is Magento ?

  1.  Magento is an open-source e-commerce platform written in PHP.
  2. It uses multiple other PHP frameworks such as Laminas and Symfony.
  3. Magento source code is distributed under Open Software License v3.0.
  4. Magento was acquired by Adobe Inc in May 2018 for $1.68 Billion USD.

Initial release date31 March 2008
Developer(s)Magento, Inc
LicenseOSL v3, AFL v3

How do I find my Magento Theme name?

Look at the HTML source in your browser ("View Source") and search for skin/frontend, which is followed by PACKAGE/THEME, where PACKAGE is usually the name of the theme and THEME is usually default or contains site-specific changes.

Which version of Magento is best?

 Magneto 2 runs approximately 20% faster than Magento 1, which can lead to improved SEO and increased sales. All of the content from a static page can be cached, thus increasing site performance and drastically reducing the server load. This makes the Magento 2 platform more scalable for large eCommerce stores.

Wednesday 30 September 2020

Magento 1.9 Import products issue

Question:

I am trying to import some products, Magento performs everything right, but when I look at the catalog, there is no imported product     

    Starting profile execution, please wait...

         Warning: Please do not close the window during importing/exporting data
         Starting Mage_Dataflow_Model_Convert_Parser_Csv :: parse
         Found 453 rows.
         Starting catalog/convert_adapter_product :: parse
        Processed 100% 453/453 records
        Imported 453 records
         Please wait while the indexes are being refreshed.
         Finished profile execution.

The message below shows that it was 100% successful, but there is no product.

One Possible Solution:

It seems a Re-index issue.

Please run the following commands

    php bin/magento indexer:reindex

    php bin/magento cache:flush

Magento : 404 error is showing admin page

Hello, Sometimes we may get the error on admin page once done with the Magento installation. In that scenario, we have to do the following: ...