:::: MENU ::::

PrestaShop introduction – Know PrestaShop

This tutorial is about PrestaShop introduction.I will try to share the basic knowledge here.Prestashop is an open source e-commerce solution. It comes with a variety of tools necessary for building a successful online shop. 

I am not going to go in detail but I will share the steps which you can follow to have the knowledge and know how of prestatshop. Also will briefly explain one or two steps here.

 How to install PrestaShop

  • Manage Products and Categories
  • Configuring PrestaShop
  • Managing your store in PrestaShop
  • Additional PrestaShop tutorials

Installation

The purpose of this tutorial is to show you how to install a PrestaShop e-commerce platform on your site via the Softaculous auto installer. One of the great things about Softaculous is that it allows you to setup applications really fast. You don’t need to go through all steps manually and with just several clicks you will have a fully functional PrestaShop on your account.
First, you need to access your cPanel account and find the Softaculous icon which is under the Software/Services section.

The next step is to click on the Softaculous icon. You will be redirected to a new page which is the auto installer’s control panel. From here you can install new apps, create backups, import existing websites, etc. On the left side of the screen is the categories menu. To proceed with the PrestaShop installation find the E-Commerce section and click on it to expand. You will see a list of applications that you can install. Find the PrestaShop link and click on it, so that Softaculous will open the installation screen.

The newly loaded page provides a brief description of the PrestaShop application and its features. You can also read a review of the platform and rate it. Click on the blue Install button.

This is the most important step at which you need to provide more details about the new PrestaShop website. Some of the fields are automatically filled by Softaculous for your convenience. However, we strongly advise you to review the values of the following crucial configuration parameters:

In Directory – please note that by default Softaculous will install the PrestaShop application in the root web folder and you will be able to access the website via your domain name. If you prefer to install it in a subfolder, for example, shop, enter its name in the In Directory field.

Store Name – this is the name of your website and by default, it is set to My Store. You can change it to something that better describes the main purpose of your new website.

Admin Folder – you can change it to a random string. Adding it to the web site’s URL will load the admin section.

Admin Email – by default, this field is set to admin@yourdomainname.com, where instead of yourdomainname.com your actual domain is entered. If you want, you can change it to a different e-mail account.
Admin Password – Softaculous automatically generates a unique password for your new website. Still, you can change the string in the field and type a new password which you can remember more easily.

The last step is to scroll down to the end of the page and click on the Install button.
That’s it! Your PrestaShop application is installed and ready to use. The installer will redirect you to a new page where you will see the details for the completed installation. You can now login and create your PrestaShop website.

Key Features:

The key features provided by the platform are structured in two major groups.
The first one is the “Front Office” which is the place where your customers will find all of the available products and where they will be interacting with your Online Store purchasing your products. The features included in this group are:

Featured Products

  • Product – image zoom
  • Customer subscriptions and the creation of customer accounts
  • Large amount of supported payment methods
  • Google Checkout integration
  • RSS feeds
  • Newsletters


The second major group is more important for the Store Owners as it is related to the backend (Back-Office) of their Online Stores as there is the place where all of the adjustments and store modifications are made. The features included in that group are:

  • WYSIWIG text editor for basically all of the text fields related to your products
  • Unlimited amount of product categories and subcategories
  • Large amount of supported currencies and taxes which you can configure all on your own
  • SMS/Text Message module
  • Customizable notifications for the delivery status of the product
  • SEO Friendly URL configuration
  • Full SSL support
  • Smarty templating engine

Certainly, these are only a few of the unlimited amount of features offered by the platform which means that you will be able to find every type of feature you will need for the successful start and development of your Online Store.

That’s it from this tutorial. I hope it serves the purpose. Furthermore please feel free to drop any suggestions or queries in the comments section. That will definitely be highly appreciated.

Author: Qaisar Satti
Category: Prestashop
Last Modified: July 26, 2019


PrestaShop reset admin password

This tutorial is about Prestashop-Reset admin password.In this article, we will learn how to install a reset admin password in prestaShop.Often people forget their passwords and find it difficult to reset them. It is quite a simple process. So let’s move forward and have a look.

Please note that this method will be useful only when you have access to the database.

First of all check your ”config/settings.inc.php ” file for the _COOKIE_KEY_ value.

Run the following SQL and replace the <> variables with your information:

UPDATE employee SET passwd = md5(“<_COOKIE_KEY_ value>”) WHERE email = “youremailaddress”;

Let’s have an example for more clarification.

UPDATE `ps_employee` SET `passwd` = MD5(‘<_COOKIE_>password’) WHERE `email` = ‘info@qaisarsatti.com’;

That’s it from this simple method. That’s it from this tutorial. I strongly believe there is always room for improvement. So I am open to any suggestion and feedback. Please feel free to leave what you are thinking in the comments section below. Cheers.

Author: Qaisar Satti
Category: Prestashop
Last Modified: July 26, 2019


PrestaShop Installation

This tutorial is about Prestashop Installation . Often people face little bit of trouble while installing Prestashop.In this article we will learn how to install prestashop. So here, we will discuss particularly about prestashop installation on any system. It is quite a simple process.We will discuss one or two methods here.So lets move forward and have a look.

We will follow the simple steps,discussed below.

Installation Steps

1) Download prestashop from

http://www.prestashop.com/en/download
2) extract zip file and you get a folder with name “prestashop”

3) After extracting zip file
a) If you are using wamp then copy the “prestashop” and paste in to www folder.
b) If you are using xampp then put into “htdocs” folder.
c) If you use filezilla then upload “prestashop” into “public_html” folder.

Now start wamp or xamp

and open the browser and type “localhost/prestashop”, After opening installation page, follow these steps:

Below are the Five steps needed for installation.

1st) choose your language and accept the conditions.

2nd ) PrestaShop will check system Compatibility

If system Compatibility is valid then click on next button, after clicking on next button prestaShop will check system configurations.

3rd)Fill in your database details and then click on verify.

Similarly, if all the information is correct then a message showing database connected will be shown.

Furthermore click on next button.

4th)Fill in the information like user name(use for admin login) , password(use for admin login) etc and click on next button.

5th)
The progress bar will show the installation status and after finishing installation, go to “prestashop” folder saved in www folder in wamp and delete installation file and rename admin folder according to your needs.These are the simple steps to install PrestaShop.

That’s it from this tutorial. I strongly believe there is always room for improvement.So i am open for any suggestion and feed back. Please feel free to leave what you are thinking in the comments section below. Cheers.

Author: Qaisar Satti
Category: Prestashop
Last Modified: July 26, 2019


Magento 2 logging

Today we will be talking about how to work with Magento 2 log. There is a different type of log you can log with Magento 2. For example debug log, information log, and other logs too. so let start with our log type.

A simple example of how to inject the logger class.

protected $logger;
public function __construct(\Psr\Log\LoggerInterface $logger)
{
    $this->logger = $logger;
}

Debug Log Method

$this->_logger->addDebug($message);

log location: var/log/system.log

Info Log Method

$this->_logger->addInfo($message);

log location: var/log/exception.log

Notice Log Method

$this->_logger->addNotice($message);

log location: var/log/exception.log

Error Log Method

$this->_logger->addError($message);

log location: var/log/exception.log

Critical or Exception Log Method

$this->_logger->critical($message);

log location: var/log/exception.log

Author: Qaisar Satti
Category: Magento 2
Last Modified: July 26, 2019


Assign custom theme programmatically to store in Magento 2

Today we discuss how to assign custom theme programmatically to store in Magento 2. Sometimes you need to set the theme programmatically. For that, you need theme_id and store_id. You can get theme_id from theme table.

use Magento\Framework\App\Config\ConfigResource\ConfigInterface;

/**
* @var ConfigInterface
*/

private $configInterface;
public function __construct(
ConfigInterface $configInterface
) {
$this->configInterface = $configInterface;
}

Following belowcode you can change theme programatically.

$this->configInterface->saveConfig('design/theme/theme_id', {{theme_id}}, 'stores', {{store_id}});

NOTE: change {{theme_id}} and {{store_id}} with your theme id and store id

Author: Qaisar Satti
Category: Magento 2
Last Modified: May 8, 2019


Magento 2 get current admin user detail

Today we talk about how in Magento 2 get current admin user detail?. in this tutorial we will cover how to get current admin username and current admin email and other information included as well. So let’s start with our code example.

protected $authSession;

public function __construct(
   
    \Magento\Backend\Model\Auth\Session $authSession,
   
) {
   
    $this->authSession = $authSession;
   
}

public function getCurrentUser()
{
    return $this->authSession->getUser();
}

Now you have access to current admin information. You can get information with the following code.

$this->getCurrentUser->getUsername(); //get admin user name

$this->getCurrentUser->getEmail();   //get current admin email
Author: Qaisar Satti
Category: Magento 2
Last Modified: February 27, 2019


Magento 2 Send Email Programmatically

This tutorial is about Magento 2 Send email programmatically,functionality of Magento 2.We will discuss how we can send email programmatically in Magento 2.People often ask whether Magento 2 have any built-in integration with third-party transaction email delivery systems like Amazon SES, Mandrill, etc., or is the built-in email functionality still based around PHP’s mail function? Or the emails sent with some third party software? Also, people ask are there any third party extensions like SMTP Pro for Magento 2 that would let a developer replace the standard email system?

Here we will discuss how it actually is done. After thorough research and digging of Magento 2 codebase for strings such as ’email’, ‘message’, etc until I found something that sends out an email. I stumbled upon sendPaymentFailedEmail() in

vendor/magento/module-checkout/Helper/Data.php

This sets a lot of variables but eventually ties them to a transport object, which is created through a ‘transportBuilder’. This transportBuilder is an instance of

\Magento\Framework\Mail\Template\TransportBuilder

In that file a

$transport

variable exists, which is an instance of

\Magento\Framework\Mail\TransportInterface

Because there is an interface,there is also a regular class called

\Magento\Framework\Mail\Transport

. When we open the file

vendor/magento/framework/Mail/Transport.php

we see that this extends

Zend_Mail_Transport_Sendmail

.

It actually look like this

class Transport extends \Zend_Mail_Transport_Sendmail implements \Magento\Framework\Mail\TransportInterface

So using DI, you’ll be able to replace this transport with another email framework instead of Zend_Mail, such as Mandrill or Amazon SES.

Just be sure to include the send() method since that is the method called in sendMessage().

public function sendMessage()
{
    try {
        parent::send($this->_message);
    } catch (\Exception $e) {
        throw new \Magento\Framework\Exception\MailException(new \Magento\Framework\Phrase($e->getMessage()), $e);
    }
}

Furthermore, there are assumptions about PHPs mail() being outdated and not supporting any 3rd party services.But it is not correct, as every good 3rd party service supports an SMTP interface, and so does mail() too.Also, Amazon SES does support SMTP.

Similarly, there is another simple and easy method to send the email. Magento 2 TransportBuilder uses email templates to compose email’s body. You can send plain text simply using – Zend1 mail

$email = new \Zend_Mail();
        $email->setSubject("Feedback email");
        $email->setBodyText($body);
        $email->setFrom($from, $nameFrom);
        $email->addTo($to, $nameTo);
        $email->send();

That’s it from this tutorial. I hope it serves the purpose. Since these are learning tutorials, please feel free to drop any suggestions or queries in the comments section. That will be highly appreciated surely.

Author: Qaisar Satti
Category: Magento 2
Last Modified: February 4, 2019


Pages:1234567...22