How to Install Magento In Ubuntu?

Magento is one of the most popular Content Management System(CMS) for an E-commerce website. It is one of the most flexible E-commerce platforms. Magento uses MySQL as its database, PHP as the programming language and elements of zend framework. It has two Editions one is a Paid edition and other is an Unpaid edition:

  • Edizione Enterprise (a pagamento)
  • Community Edition (non pagata)

The tutorial runs you through the ways to install Magento on Ubuntu. Read on to know:

picture1

Prerequisiti per l'installazione di Magento

Prima di iniziare, sono necessari alcuni passaggi da completare per installare Magento. Questi passaggi includono:

  • Avrai bisogno almeno di ram 2 GB per installare Magento su Virtual Private Server (VPS).
  • Avrai bisogno di uno stack LAMP (Linux, Apache, Mysql e PHP) installato sul tuo server VPS.
  • Ora per installarlo è necessario prima scaricare Magento, è possibile ottenere una versione di edizioni della comunità di Magento online.

Iniziare

  • Dopo il download completo, verrà visualizzata una cartella ZIP denominata mazento.zip nella cartella dei download.
  • Copia la cartella Zip nel percorso fornito di seguito:

/ Var / www / html

  • Estrai qui i file facendo clic con il tasto destro sulla cartella zippata e poi facendo clic con il tasto sinistro sull'opzione Estrai qui.

Creazione del database utilizzando PHPMyAdmin

Per creare un database segui i passaggi forniti di seguito:

  • Apri una nuova scheda del tuo browser e inserisci quanto segue nella barra degli indirizzi:

localhost / phpmyadmin /

  • Premi invio vedrai la pagina di accesso di PHPMyAdmin. Inserire il nome utente e la password e fare clic su Vai per accedere. La pagina di accesso sarà simile a questa.

  • Vedrai la pagina principale di phpmyadmin, fai clic sul database, vedrai un'opzione di creazione del database.
  • Immettere il nome del database (ad esempio Magento) e fare clic sull'opzione di creazione, il database verrà creato come mostrato di seguito.

Importazione di un database di esempio sul tuo database

Dopo aver creato correttamente il database, devi importare il database di esempio sul tuo database. Ora per quello devi seguire i seguenti passaggi:

  • Fare clic sull'opzione di importazione sulla pagina phpmyadmin.

  • Ora fai clic sul file scelto per caricare il database di esempio sul tuo database. Per caricare un file devi notare le seguenti proprietà del file caricato:
  • La dimensione massima del file deve essere 2048 kb.
  • Il formato del file deve essere in formato .sql.
  • Il tipo di compressione utilizzato per comprimere file di grandi dimensioni deve essere .zip
  • Ora fai clic sull'opzione Go e il tuo file contenente il database di esempio verrà caricato nel tuo database. Vedrai che i file sono caricati sul tuo database.

Attivazione del file di installazione di Magento

Ora tutto ciò che devi fare è attivare il file di installazione di Magento. Considerare i seguenti passaggi per lo stesso.

  • Ora apri una nuova scheda del tuo browser e inserisci il seguente percorso:

Localhost / Magento o

localhost / magento / index.php / install

Accordo di licenza

  • Sarai indirizzato alla pagina di installazione di Magento, accetti i termini e le condizioni del contratto e fai clic su Continua.

Localizzazione

  • Seleziona Locale (lingua), Fuso orario e Valuta predefinita e clicca su continua.

Configurazione

  • Qui troverai il "problema dell'autorizzazione alla scrittura", devi risolvere tutti questi problemi prima di continuare.

  • Per risolvere il problema dei permessi di scrittura segui i passaggi riportati sotto:
  • Apri il terminale del tuo sistema. (CTRL + ALT + T)
  • Immettere il seguente comando per risolvere i problemi di autorizzazione:

sudo chown -R www-data / percorso file

Ad esempio: sudo chown -R www-data / var / www / html / magento / app / ecc

  • Ti chiederà la password di sistema, inserisci la tua password di sistema e premi invio, chiederà la password una sola volta.
  • Immettere il comando per tutti i file con lo stesso problema, utilizzando l'esempio precedente e quindi fare clic su Continua opzione nella pagina di installazione di Magento.

  • Dopo aver fatto clic sull'opzione continua, si verificherà l'errore di caricamento dell'estensione php. È mostrato di seguito:

  • Se riscontri questo errore, procedi nel seguente modo:
  • Apri il terminale e inserisci il comando qui sotto:
  • Per l'installazione di mcrypt

sudo apt-get install php5-mcrypt

sudo php5 enmod mcrypt

Riavviare apache2 sudo service

  • Per l'installazione di arricciatura

sudo apt-get install curl libcurl3 php5-curl

Riavviare apache2 sudo service

  • Per l'installazione di gd

sudo apt-get install php5-gd

Riavviare apache2 sudo service

  • Quindi fare clic su Continua nella pagina di installazione di Magento.

Pagina di connessione al database

  • Dopo aver fatto clic su Continua, sarai indirizzato a una pagina di connessione al database dove puoi:
  • Imposta un nome utente e una password.
  • Cambia il nome del database.
  • Imposta i prefissi della tabella. (opzionale)

Crea account amministratore

Dopo aver completato tutti i processi in fase di configurazione, ti verrà chiesto di creare un account amministratore, in cui devi:

  • Inserisci i tuoi dati personali:
  • Nome
  • Cognome
  • E-mail identificativo utente
  • Inserisci le informazioni di accesso:
  • Nome utente
  • Password
  • Confermare password
  • Immettere la chiave di crittografia (facoltativo)
  • Quindi fare clic sul pulsante Continua.

Siete a posto

Questo è l'ultimo passo nel processo di installazione di Magento. Qui ti verrà fornita una chiave di crittografia che devi salvare, poiché Magento la utilizza per crittografare password, carte di credito, ecc.

  • Ora hai due opzioni sullo schermo:
  • Vai a Front-End
  • Vai a Back-End
  • Puoi visitare entrambi.

Front-End e Back-End

Quando visiti il ​​tuo Front-End, noterai che non ci sono loghi, banner e immagini per qualsiasi prodotto o marca. Pertanto per questo devi apportare alcune modifiche dal back-end per assicurarti che tutto funzioni bene prima di poter lavorare su Magento.

Cambiamenti necessari

  • Per caricare immagini sul front-end
  • Copia le cartelle Media e Skin da magento-sample-data e incollale nella cartella di installazione.
  • La cartella di installazione conterrà già queste cartelle, è sufficiente sostituirle.
  • Quindi vai al tuo front-end e aggiorna la pagina. Vedrai che i loghi, le immagini e i banner sono stati caricati.
  • In alcuni casi vedrai che non ci sono aggiornamenti, il front-end è ancora vuoto. In tal caso, segui i passaggi indicati sotto:
  • Apri il terminale e digita il comando:

sudo chown -R www-data / var / www / html / magento / media /

  • Quindi vai al tuo Back-End, passa con il cursore sul menu di sistema nella barra dei menu del pannello di amministrazione e fai clic sulla gestione della cache sull'opzione a discesa.

  • Dopo aver fatto clic sull'opzione di gestione della cache, sarai indirizzato a una nuova pagina in cui vedrai due opzioni nell'angolo in alto a destra della pagina:
  • Flush Magento Cache
  • Archiviazione di Flush Cache
  • Fare clic su queste opzioni su Flush Magento Cache and Cache Storage.
  • Ora vai al tuo front-end e aggiorna la pagina, vedrai che tutti i banner, i loghi, le immagini sono aggiornati, il tuo front-end sarà pronto.
  • Modifica del file Index.php
  • Ora apri Index.php, troverai index.php nel percorso fornito di seguito:

/ Var / www / html / Magento

  • Clicca sul file Index.php e aprilo.
  • Vedrai un codice Php, vai alla riga 73,74 e 75 e inserisci una doppia barra all'inizio di queste righe e rimuovi "#" all'inizio della riga 77 come mostrato di seguito:

  • Ora salva il file e chiudilo.
  • Modifica del file Varien.php
  • Ora Apri Varien.php, troverai Varien.php nel percorso fornito di seguito:

/ Var / www / html / Magento / app / code / core / Mage / core / Modello / Session /

astratto

  • Clicca sul file Varien.php e aprilo.
  • Vedrai un codice Php, vai alla riga 99, 100 e 101 e assegna i valori come mostrato di seguito:

  • Rimuovere le linee come $ cookie-> getconfigDomain () dalla riga 99,100 e 101 e posizionare le virgolette come mostrato nella figura.
  • Ora salva il file e chiudilo.

Potrebbe piacerti anche:

Your license is inactive or expired, please subscribe again!

How to Install Magento In Ubuntu?

Magento is one of the most popular Content Management System(CMS) for an E-commerce website. It is one of the most flexible E-commerce platforms. Magento uses MySQL as its database, PHP as the programming language and elements of zend framework. It has two Editions one is a Paid edition and other is an Unpaid edition:

  • Edycja korporacyjna (płatna)
  • Wydanie społecznościowe (nieopłacone)

The tutorial runs you through the ways to install Magento on Ubuntu. Read on to know:

Wymagania wstępne dotyczące instalacji Magento

Zanim zaczniemy, musimy wykonać kilka kroków, aby zainstalować Magento. Te kroki obejmują:

  • Będziesz potrzebował co najmniej 2 GB RAM do instalacji magento na Virtual Private Server (VPS).
  • Będziesz potrzebował stosu LAMP (Linux, Apache, Mysql i PHP) zainstalowanego na twoim serwerze VPS.
  • Teraz, aby go zainstalować, musisz najpierw pobrać Magento, możesz pobrać wersję Magento w wersji online.

Pierwsze kroki

  • Po zakończeniu pobierania pojawi się folder ZIP o nazwie mazento.zip w folderze pobierania.
  • Skopiuj folder Zip do ścieżki podanej poniżej:

/ Var / www / html

  • Wyodrębnij pliki, klikając prawym przyciskiem myszy folder zip, a następnie klikając lewym przyciskiem myszy opcję Wypakuj tutaj.

Tworzenie bazy danych za pomocą PHPMyAdmin

Aby utworzyć bazę danych, wykonaj następujące czynności:

  • Otwórz nową kartę przeglądarki i wprowadź na pasku adresu:

localhost / phpmyadmin /

  • Naciśnij enter, aby wyświetlić stronę logowania do PHPMyAdmin. Wprowadź nazwę użytkownika i hasło i kliknij Przejdź do logowania. Strona logowania będzie wyglądać następująco.

  • Zobaczysz stronę główną phpmyadmin, kliknij bazę danych, zobaczysz opcję tworzenia bazy danych.
  • Wprowadź nazwę bazy danych (powiedz magento) i kliknij opcję tworzenia, twoja baza danych zostanie utworzona, jak pokazano poniżej.

Importowanie przykładowej bazy danych w bazie danych

Po pomyślnym utworzeniu bazy danych należy zaimportować przykładową bazę danych do bazy danych. Teraz musisz wykonać następujące czynności:

  • Kliknij opcję importu na stronie phpmyadmin.

  • Teraz kliknij na plik, aby przesłać przykładową bazę danych do bazy danych. Aby przesłać plik, musisz zwrócić uwagę na następujące właściwości przesłanego pliku:
  • Maksymalny rozmiar pliku musi wynosić 2048 kb.
  • Format pliku musi być w formacie .sql.
  • Typ kompresji używanej do kompresowania dużych plików musi być .zip
  • Teraz kliknij opcję Przejdź, a plik zawierający przykładową bazę danych zostanie przesłany do Twojej bazy danych. Zobaczysz, że pliki są przesyłane do Twojej bazy danych.

Wywoływanie pliku instalacyjnego magento

Teraz wystarczy wyzwolić plik instalacyjny magento. Rozważ następujące kroki dla tego samego.

  • Teraz otwórz nową kartę przeglądarki i wprowadź następującą ścieżkę:

Localhost / magento lub

localhost / magento / index.php / install

Umowa licencyjna

  • Zostaniesz przekierowany na stronę instalacji Magento, zaakceptuj warunki umowy i kliknij Dalej.

Localization

  • Wybierz Ustawienia regionalne (język), Strefa czasowa i Domyślna waluta i kliknij Kontynuuj.

konfiguracja

  • Tutaj napotkasz "problem uprawnień do zapisu", musisz naprawić wszystkie te problemy, zanim przejdziesz dalej.

  • Aby rozwiązać problem z prawem do zapisu, wykonaj następujące czynności:
  • Otwórz terminal twojego systemu. (CTRL + ALT + T)
  • Wprowadź następujące polecenie, aby rozwiązać problemy z uprawnieniami:

sudo chown -R www-data / ścieżka pliku

Np .: sudo chown -R www-data / var / www / html / magento / app / etc

  • Poprosi cię o hasło systemowe, wpisz hasło systemowe i naciśnij enter, poprosi o hasło tylko raz.
  • Wprowadź polecenie dla wszystkich plików o tym samym numerze, używając powyższego przykładu, a następnie kliknij opcję kontynuuj na stronie instalacji programu magento.

  • Po kliknięciu opcji kontynuuj napotkasz błąd ładowania rozszerzenia php. Pokazano poniżej:

  • Jeśli napotkasz ten błąd, wykonaj następujące czynności:
  • Otwórz terminal i wprowadź poniższe polecenie:
  • Do instalacji mcrypt

sudo apt-get install php5-mcrypt

sudo php5 enmod mcrypt

Sudo service apache2 restart

  • Do instalacji curl

sudo apt-get install curl libcurl3 php5-curl

Sudo service apache2 restart

  • Do instalacji gd

sudo apt-get install php5-gd

Sudo service apache2 restart

  • Następnie kliknij przycisk kontynuacji na stronie instalacji programu magento.

Strona połączenia z bazą danych

  • Po kliknięciu przycisku Kontynuuj nastąpi przekierowanie do strony połączenia z bazą danych, w której można:
  • Ustaw nazwę użytkownika i hasło.
  • Zmień nazwę bazy danych.
  • Ustaw przedrostki tabeli. (opcjonalny)

Utwórz konto administratora

Po zakończeniu wszystkich procesów w konfiguracji zostaniesz przekierowany do utworzenia konta administratora, w którym musisz:

  • Wprowadź swoje dane osobowe:
  • Imię
  • Nazwisko
  • ID e-mail
  • Wprowadź dane logowania:
  • Nazwą użytkownika
  • Hasło
  • Potwierdź hasło
  • Wprowadź klucz szyfrowania (opcjonalnie)
  • Następnie kliknij przycisk Kontynuuj.

Wszystko gotowe

To jest ostatni krok w procesie instalacji magento. Tutaj dostaniesz klucz szyfrowania, który musisz zapisać, ponieważ magento używa go do szyfrowania haseł, kart kredytowych itp.

  • Teraz masz dwie opcje na ekranie:
  • Idź do Front-End
  • Idź do Back-End
  • Możesz odwiedzić którekolwiek z nich.

Front-end i back-end

Kiedy odwiedzasz swój Front-End, zauważysz, że nie ma logo, banerów i obrazów dla żadnego produktu lub marki. Dlatego musisz wprowadzić pewne zmiany z Back-End, aby upewnić się, że wszystko działa dobrze, zanim będziesz mógł pracować na Magento.

Potrzebne zmiany

  • Przesyłanie obrazów z przodu
  • Skopiuj foldery Media i Skin z danych przykładowych magenta i wklej je w folderze instalacyjnym.
  • Folder Setup będzie już zawierać te foldery, wystarczy je zastąpić.
  • Następnie przejdź do Front-end i odśwież stronę. Zobaczysz, że logo, obrazy i banery są przesyłane.
  • W niektórych przypadkach zobaczysz, że nie ma aktualizacji, Front-End jest nadal pusty. W takim przypadku wykonaj poniższe kroki:
  • Otwórz terminal i wpisz polecenie:

sudo chown -R www-data / var / www / html / magento / media /

  • Następnie przejdź do Back-End, umieść kursor nad menu systemowym na pasku menu panelu administratora i kliknij zarządzanie pamięcią podręczną w rozwijanej opcji.

  • Po kliknięciu opcji zarządzania pamięcią podręczną zostaniesz przekierowany do nowej strony, na której zobaczysz dwie opcje w prawym górnym rogu strony:
  • Opróżnij pamięć podręczną Magento
  • Płukanie pamięci podręcznej
  • Kliknij te opcje, aby opróżnić pamięć podręczną Magento i pamięć podręczną.
  • Teraz przejdź do swojego interfejsu i odśwież stronę, zobaczysz, że wszystkie banery, logo, obrazy są aktualizowane, dostaniesz swój Front-end gotowy.
  • Modyfikowanie pliku Index.php
  • Teraz otwórz Index.php, znajdziesz index.php w ścieżce podanej poniżej:

/ var / www / html / magento

  • Kliknij plik Index.php i otwórz go.
  • Zobaczysz kod PHP, przejdź do linii 73,74 i 75 i umieść podwójny ukośnik na początku tych linii i usuń "#" na początku linii 77, jak pokazano poniżej:

  • Teraz zapisz plik i zamknij go.
  • Modyfikowanie pliku Varien.php
  • Teraz otwórz Varien.php, znajdziesz Varien.php w ścieżce podanej poniżej:

/ var / www / html / magento / app / code / core / Mage / Core / Model / Session /

Abstrakcyjny

  • Kliknij plik Varien.php i otwórz go.
  • Zobaczysz kod PHP, przejdź do linii 99, 100 i 101 i przypisz wartości jak pokazano poniżej:

  • Usuń linie takie jak $ cookie-> getconfigDomain () z linii 99,100 i 101 i umieść podwójne cudzysłowy, jak pokazano na rysunku.
  • Teraz zapisz plik i zamknij go.

Zobacz także:

Your license is inactive or expired, please subscribe again!

How to Install Magento In Ubuntu?

Magento is one of the most popular Content Management System(CMS) for an E-commerce website. It is one of the most flexible E-commerce platforms. Magento uses MySQL as its database, PHP as the programming language and elements of zend framework. It has two Editions one is a Paid edition and other is an Unpaid edition:

  • Enterprise Edition (pago)
  • Community Edition (não pago)

The tutorial runs you through the ways to install Magento on Ubuntu. Read on to know:

Pré-requisitos para instalar o Magento

Antes de começarmos, há algumas etapas que precisam ser concluídas para instalar o magento. Essas etapas incluem:

  • Você precisará de pelo menos 2 GB para instalar o magento no Virtual private server (VPS).
  • Você precisará de uma pilha LAMP (Linux, Apache, Mysql e PHP) instalada no seu servidor VPS.
  • Agora, para instalá-lo, você precisa primeiro fazer o download do magento, você pode obter uma versão de edição comunitária do magento online.

Começando

  • Após o download completo, você verá uma pasta ZIP chamada mazento.zip na sua pasta de downloads.
  • Copie a pasta Zip para o caminho fornecido abaixo:

/ Var / www / html

  • Extraia os arquivos clicando com o botão direito do mouse na pasta zipada e clicando com o botão esquerdo na opção Extrair aqui.

Criando banco de dados usando o PHPMyAdmin

Para criar um banco de dados, siga as etapas fornecidas abaixo:

  • Abra uma nova guia do seu navegador e digite o seguinte na barra de endereço:

localhost / phpmyadmin /

  • Pressione enter, você verá a página de login do PHPMyAdmin. Digite o nome de usuário e senha e clique em Ir para login. A página de login ficará assim.

  • Você verá a página principal do phpmyadmin, clique no banco de dados, você verá uma opção de criação de banco de dados.
  • Digite o nome do banco de dados (digamos magento) e clique na opção create, seu banco de dados será criado como mostrado abaixo.

Importando banco de dados de amostra em seu banco de dados

Depois de criar com êxito o banco de dados, você precisa importar o banco de dados de amostra no banco de dados. Agora, para isso, você precisa seguir as etapas abaixo mencionadas:

  • Clique na opção de importação na página do phpmyadmin.

  • Agora clique no arquivo de escolha para fazer o upload do banco de dados de amostra no banco de dados. Para fazer o upload de um arquivo, observe as seguintes propriedades do arquivo enviado:
  • O tamanho máximo do arquivo deve ser 2048 kb.
  • O formato do arquivo deve ser o formato .sql.
  • O tipo de compactação usado para compactar arquivos grandes deve ser .zip
  • Agora clique na opção Go e seu arquivo contendo banco de dados de amostra será carregado em seu banco de dados.Você verá que os arquivos são carregados em seu banco de dados.

Acionando o arquivo de configuração do magento

Agora tudo que você precisa fazer é acionar o arquivo de configuração do magento. Considere os seguintes passos para o mesmo.

  • Agora abra uma nova aba do seu navegador e digite o seguinte caminho:

Localhost / magento ou

localhost / magento / index.php / install

Termos de licença

  • Você será direcionado para a página de instalação do Magento, aceite os termos e condições do contrato e clique em continuar.

Localização

  • Selecione o local (idioma), fuso horário e moeda padrão e clique em continuar.

Configuration

  • Aqui você vai encontrar o "problema de permissão de gravação", você tem que corrigir todos esses problemas antes de continuar.

  • Para corrigir o problema de permissão de gravação, siga as etapas abaixo mencionadas:
  • Abra o terminal do seu sistema. (CTRL + ALT + T)
  • Digite o seguinte comando para resolver os problemas de permissão:

sudo chown -R www-data / caminho do arquivo

Por exemplo: sudo chown -R www-data / var / www / html / magento / app / etc

  • Ele pedirá a senha do sistema, digite a senha do seu sistema e pressione enter, ele pedirá a senha apenas uma vez.
  • Digite o comando para todos os arquivos com o mesmo problema, usando o exemplo acima e clique na opção continue na página de instalação do magento.

  • Depois de clicar na opção continuar, você encontrará o erro de carregamento da extensão do php. É mostrado abaixo:

  • Se você encontrar esse erro, siga as etapas abaixo:
  • Abra o terminal e digite o comando abaixo:
  • Para instalar o mcrypt

sudo apt-get install php5-mcrypt

sudo php5 enmod mcrypt

sudo service apache2 reiniciar

  • Para instalar o curl

sudo apt-get instalar curl libcurl3 php5-curl

sudo service apache2 reiniciar

  • Para instalar o gd

sudo apt-get instala php5-gd

sudo service apache2 reiniciar

  • Em seguida, clique em continuar na página de instalação do magento.

Página de conexão do banco de dados

  • Depois de clicar em continuar, você será direcionado para uma página de conexão com o banco de dados, onde poderá:
  • Definir um nome de usuário e senha.
  • Altere o nome do banco de dados.
  • Defina os prefixos da tabela. (opcional)

Criar conta de administrador

Depois de completar todos os processos em configuração, você será direcionado para criar uma conta de administrador, onde você deve:

  • Digite seus dados pessoais:
  • Nome
  • Sobrenome
  • Identificação do email
  • Insira as informações de login:
  • Nome de usuário
  • Senha
  • Confirmar senha
  • Digite a chave de criptografia (opcional)
  • Em seguida, clique no botão continuar.

Estás pronto

Este é o último passo no processo de instalação do magento. Aqui você será fornecido com uma chave de criptografia que você tem que salvar, como o Magento usa para criptografar senhas, cartões de crédito etc.

  • Agora você tem duas opções na sua tela:
  • Ir para o front-end
  • Ir para o back-end
  • Você pode visitar qualquer um deles.

Front-end e back-end

Quando você visita seu front-end, você notará que não há logotipos, banners e imagens para qualquer produto ou marca. Portanto, para isso, você precisa fazer algumas alterações no Back-End para garantir que tudo funcione bem antes de poder trabalhar no magento.

Mudanças necessárias

  • Para carregar imagens no front end
  • Copie as pastas Media e Skin de magento-sample-data e cole-as na sua pasta de configuração.
  • A pasta de instalação já conterá essas pastas, basta você substituí-las.
  • Em seguida, vá para o seu Front-End e atualize a página. Você verá que os logotipos, imagens e banners são enviados.
  • Em alguns casos, você verá que não há updation, o Front-End ainda está em branco. Nesse caso, siga as etapas abaixo mencionadas:
  • Abra o terminal e digite o comando:

sudo chown -R www-data / var / www / html / magento / media /

  • Em seguida, vá para o seu Back-End, passe o cursor sobre o menu do sistema na barra de menus do painel de administração e clique no gerenciamento de cache na opção suspensa.

  • Depois de clicar na opção de gerenciamento de cache, você será direcionado para uma nova página, onde verá duas opções no canto superior direito da página:
  • Flush Magento Cache
  • Armazenamento de cache nivelado
  • Clique nestas opções para Limpar o Cache do Magento e o Armazenamento do Cache.
  • Agora vá para o seu front-end e atualize a página, você verá que todos os banners, logotipos, imagens são atualizadas, você terá seu Front-end pronto.
  • Modificando o arquivo Index.php
  • Agora, abra Index.php, você encontrará index.php no caminho abaixo:

/ var / www / html / magento

  • Clique no arquivo Index.php e abra-o.
  • Você verá um código Php, vá para a linha 73,74 e 75 e coloque uma barra dupla no início dessas linhas e remova "#" no início da linha 77 como mostrado abaixo:

  • Agora salve o arquivo e feche-o.
  • Modificando o arquivo Varien.php
  • Agora abra Varien.php, você encontrará Varien.php no caminho abaixo:

/ var / www / html / magento / app / código / core / Mage / Core / Modelo / Sessão /

Abstrato

  • Clique no arquivo Varien.php e abra-o.
  • Você verá um código php, vá para a linha 99, 100 e 101 e atribua valores como mostrado abaixo:

  • Remova as linhas como $ cookie-> getconfigDomain () da linha 99,100 e 101 e coloque aspas duplas como mostrado na figura.
  • Agora salve o arquivo e feche-o.

Também poderá gostar de:

Your license is inactive or expired, please subscribe again!

How to Create Categories and Subcategories in Magento

 Creating Categories and Sub-categories

This tutorial will guide you how to add categories and their sub-categories in your Magento store.

Creating Categories and Subcategories

To add categories and their subcategories in your store, you can follow the steps provided below :

  • Open the back-end of your store and hover your cursor on the Catalog menu and then click on the Manage Categories option.
  • Catalog Menu(menu bar)>>Manage Categories.


A page will open which will contain options like :

  • Add root category
  • Add subcategory
  • Save category and Reset at top right corner of the page.
  • General Information, Display Settings, Custom Design, Category Products.

  • You can add and save the categories, sub-categories and their details using save category option.

How to configure SSL on Magento

Configuring SSL on Magento

In this tutorial we will guide you how to configure SSL on Magento. The basic function of an SSL is to encrypt all communication between the browser and the server. It ensures that your site is protected with the HTTPS connection. It gains your users/clients trust and it also improves your site’s search engine ranking.

Configuring SSL

To configure SSL on your magento store you can follow the steps below:

  • Open the back-end of your store and hover your cursor on the System menu and then click on the Configuration option.
  • System Menu(menu bar)>>Configuration

1.  A page that opens will contain Configuration options like:

  • General
  • Web
  • Design
  • Contacts
  • Report
  • Content Management etc.
  • Click on the Web option, you will see Web option on the right side on the same page.
  • Click on Secure Drop-down option.

  • Under Secure drop-down option, you will see sub-options, you have to modify them.(Note: please modify the below mentioned sub-options only).

2.  Modify the below Mentioned Sub-options:

  • Base URL ( Change http to https )
  • Secure URLs in Front-end ( Change status from ‘NO’ to ‘YES’ )
  • Secure URLs in Admin ( Change status from ‘NO’ to ‘YES’ )
  • After modification click on Save Config button provided at the top right corner of the page.

How to Configure Shipping Methods on Magento 2.x and 1.x?

The shipping methods happen to be one of the key features when it comes to providing a flawless checkout. Hence, the eCommerce sellers should clarify the shipping policy to the customer. Lack of enough shipping methods may cripple some of the easy conversions. Additionally, not having properly clarified and enough shipping methods is a very prominent reason for cart abandonment.

Both Magento 2.x and 1.x allows you to configure the shipping policy to be shown in the front-end of the site. The blog brings forth the steps involved in configuring the shipping methods in Magento 1 and 2.

How to configure shipping method in Magento 2?

Magento 2 by default comes with 7 shipping methods ready to be enabled for your store’s customers. Follow the steps mentioned below to configure shipping methods in Magento 2:

Log in to your Magento 2.x store. Go to the Dashboard -> Configuration

You will be redirected to the Configuration section of the back-end that has a number of menu options listed in the left-hand side.

Navigate to the Sales option. Expand it’s menu options and click on Shipping Methods.

You’ll find 7 default shipping methods, namely,

  • Flat Rate
  • Free Shipping
  • Table Rates
  • UPS
  • USPS
  • FedEx
  • DHL

Enable the respective shipping methods by expanding the configuration options and by selecting Yes in the Apply Custom Shipping Policy field. In the Shipping Policy field, enter your shipping policy in the respective text box and click Save Config.

How to Configure Shipping Methods in Magento 1?

To configure shipping methods in Magento, you can follow the below-mentioned steps:

  • Open the back-end of your store and hover your cursor on the System menu and then click on the Configuration option.
  • System Menu (menu bar)>>Configuration
  1. System Menu (menu bar)>>Configuration>>Sales>>Shipping settings
  2. Before enabling the shipping method you should configure the shipping setting.
  1. Expand the origin section:
  • Enter Address.
  • Enter the ZIP/Postal code.
  • Select the Country and State from their respective drop-down menu.

1.  Expand the options section:

  • Choose Yes option from the shipping to multiple addresses drop-down menu.
  • Enter the maximum quantity allowed for shipping to multiple addresses.
  • Then click on save config button.

  • After enabling the settings it’s time to Configure the Shipping methods.
  • Open your Magento’s Back-end store and goto:
  • System Menu(menu bar)>>Configuration>>Sales>>Shipping Methods


You have to expand the options available and make necessary changes. We have listed some of the main changes you can make to configure shipping methods.

2.  Expand Flat rate section:

  • Enable/Disable the flat rate.
  • Enter the title, method name, type, handling fee.
  • Enter the error message.
  • Choose the countries where you wish to ship your products.

3.  Expand Table rates section:

  • Enable/Disable table rate.
  • Enter the title, method name, handling fee.
  • Enter the error message.
  • Choose the countries where you wish to ship your products.

4.  Expand Free shipping section:

  • Enable/Disable free shipping.
  • Enter the title, method name, minimum order amount, handling fee.
  • Enter the error message.
  • Choose the countries where you wish to ship your products.

5.  Expand UPS section:

  • Enable/Disable for checkout.
  • Enter the title, UPS type, Gateway URL, handling fee.
  • Choose the weight unit, Pick-up methods.
  • Enter the error message
  • Choose the countries where you wish to ship your products.

6.  Expand USPS section:

  • Enable/Disable for checkout.
  • Enter the title, Gateway URL, handling fee.
  • Choose the Mode(Development and Live).
  • Enter the User id and Password.
  • Choose the weight unit, Pick-up methods.
  • Enter the error message
  • Choose the countries where you wish to ship your products.

An example for USPS is given below:

7.  Expand FedEx section:

  • Enable/Disable for checkout.
  • Enter the title, handling fee, meter number.
  • Enter the Account Id.
  • Enter the Key and Password.
  • Choose the weight unit, Pick-up methods.
  • Enter the error message
  • Choose the countries where you wish to ship your products.

9.  Expand DHL section:

  • Enable/Disable for checkout.
  • Enter the title, Gateway URL, handling fee.
  • Enter the Account Number.
  • Enter the Access Id and Password.
  • Choose the weight unit.
  • Enter the error message
  • Choose the countries where you wish to ship your products.
  • After making the necessary changes, click on save config option to save the changes and configure shipping methods on your Magento store.

To know how payment methods are configured in Magento, read Knowband blog, how to Configure Payment Methods on Magento 2.x and 1.x.

You Might Also Like:

How to Configure Payment Methods in Magento 2.x and 1.x?

Both Magento 1 and Magento 2 provides different payment methods in order to allow you to accept the payment using different payment gateway like PayPal etc. The users/clients can also pay through credit cards, visa, master-card, check or money and other payment methods. In this tutorial, we will discuss how to configure payment methods in Magento 2 and Magento 1 store.

How to Configure Payment Methods in Magento 1.x?

To configure payment methods in Magento, you can follow the below mentioned steps:

  • Open the back-end of your store and hover your cursor on the System menu and then click on the Configuration option.
  • System Menu (menu bar)>>Configuration
  • On the page that opens, scroll down to Sales option and click on the Payment methods option.

  • Payment Method option will let you choose which payment methods your store will accept.
  • On the page that opens, you can:
  • Set the merchant location.
  • Turn on and off the verification and validation of cards.
  • Choose the cards for payments.
  • Enable/Disable checks and money orders.
  • Set up PayPal payments.
  • Enable/Disable Cash on Delivery etc.

  • After selecting the payment methods and gateways, click on save config option.

In this way, you can configure payment methods in Magento.

( Note: All payment methods have different configurations, so it is very difficult to explain in detail how to configure each one of them. You can simply follow the instructions on their specific pages ).

How to configure payment methods in Magento 2.x?

Magento 2 by default offers 6 payment methods. In order to configure the payment methods, follow the steps mentioned-below:

Go to the main menu of the Dashboard of Magento 2. Navigate to Store -> Configuration.


You’ll be redirected to the interface as shown in the image below:


There will be a number of menu options. Go to Sales -> Payment Methods.

You will find the list of the default payment methods here.

Expand the payment option that you want to enable in your store. You will get some configuration options for each payment method. For instance, if you want to enable Bank transfer Payment, then, expand it. Enter the required information in order to configure it. The various required field for this particular payment method is mentioned below:

Enable – Enable/disable bank transfer payment method.
Title – Enter a title that will be shown in frontend to your customers.
New Order Status – Set order status after using this payment method.
Payment from applicable countries – Select countries where you want to show and allow this particular payment method.
Payment from Specific Countries – If you want to allow this payment method in only some countries of the world, then, select those specific countries here.
Instructions – Allow the customers to enter additional information like pay to your bank account, bank details need to be shown. You can specify these bank details in this section.
Minimum Order Total – Set the minimum order amount to qualify for using this payment method.
Maximum Order Total – Set the maximum order amount to limit for using this payment method.
Sort Order – Specify the positions of listing all the options in an order. The method with 0 will show first and others in ascending orders.

After successfully configuring each setting, click Save Config.

You can also configure other default payment methods in a similar way. For configuring shipping methods in your Magento store, click here.

 

Score boosted conversions with OpenCart Shopping Cart optimization using Ajax technology

Shopping Cart in digital shopping environment has the same purpose like the physical shopping cart that you use in supermarket. A shopping cart in both the environments is used to arrange the to be purchased items in one location and then taking it to the checkout counter.

While the purpose is same, but the way of presentation in both the environments is quite different from one another. In physical shopping carts, you keep the things not that arranged as you might see in a digital shopping cart. Let’s take an example of the OpenCart platform where shopping carts are used to show a review of the whole cart to the customers. OpenCart possesses a well-defined default shopping cart, but there are certain things which make it lag behind the new standards of shopping cart extensions.

I am indicating to the Ajax based shopping carts or so-called Ajax cart extensions. With the growing competition in the eCommerce market, a default shopping cart extension might not provide you the best user experience. Let’s take a look at these lags and know how can you eliminate them using an OpenCart Ajax Cart extension.

1. Coupon and vouchers remain in disadvantage in default shopping carts-

The default shopping cart cannot provide the users with an option to add coupons and vouchers. Instead, they provide the options to add coupons and vouchers on either the product pages or the checkout page.

For a proper competitive conversion optimization, the facility to add coupons and vouchers on the shopping cart pages would be an upper hand for the site. Users visit the shopping cart pages to review their cart and know the total value of their purchase. There are certain chances that customers might find the purchase is out of their budget. To convert such customers you might offer the customers to apply a discount coupon and see the reduced cart cost.

The above activity can also be done in the default environment where the checkout page would be used to apply the coupons, but no one can say that the customer would even reach to the checkout page for sure.

What can you do?

So it’s wise to utilize your cart itself, allowing customers to apply coupons from the very beginning. OpenCart Ajax cart can help you in this regard as these Ajax based shopping carts allow the shopper to apply and redeem the coupons from the cart window itself. Thus helping you secure some serious advantages against your rivals using the default shopping cart.

OpenCart Ajax cart extension’s option to redeem a coupon or vouchers

The Ajax cart can also be used to show the applicable coupon codes in the cart pop up itself to make it easier for customers to redeem them instantly.

2. Updating a product quantity is a time taking process in default shopping carts-

Whenever you want to remove a product from the cart, or add a new product to the cart, or update the quantity of a product in the cart, you have to face a page reload. The page gets reloaded for any minor to major update in the cart.

The frequent page reloading not only becomes heavy on your server but also frustrate the shoppers. It is one of the major reasons for why users abandon a shopping website. No shopper desires to wait for the pages to get reload that frequently. The user experience is completely degraded in these situations. For somehow if they complete a purchase, they do not seem to encouraged to shop with you again. At least your site won’t be the first preference because of its downgraded user experience.

What can you do?

The Ajax-based shopping carts like the OpenCart Ajax cart extension, allow the shoppers to update the products in the cart without reloading the page. In fact, the OpenCart Ajax Cart is not a page at all. The whole cart is presented as an Ajax based popup which shows a complete cart information with many other additional features for better user experience.

  • You can remove a product from the cart without page reload
  • You can add a product to the cart without a page reload
  • You can add a coupon to the cart without a page reload
  • You can update the quantity of a product without a page reload.
OpenCart Ajax Cart popup allows the shopper to update the cart without page reload

Finally,

There are certain benefits of the Ajax based shopping carts extensions which are missed in the generic shopping carts. It’s a time when 2017 has come and brought a new level of competition in the eCommerce market. In order to survive yet another year with your eCommerce business, it is wise to adopt the extensions like OpenCart Ajax cart. It will surely add some more to the list of your competitive advantages against your rival eCommerce sites.

This Would Also Interest You:

How to add products in Magento

Adding Products to your Store

This tutorial will guide you, how to add products in your store. The products in your store can be grouped as Simple, Grouped, Configurable, Virtual, Bundle and Downloadable products.

Adding Products

To add products in your store, you can follow the steps provided below :

  • Open the back-end of your store and hover your cursor on the Catalog menu and then click on the Manage Products option.
  • Catalog Menu(menu bar)>>Manage Products

  • The Page that opens will contain an Add Product option at the top right corner of the page, click on the add product option to add product.
  • The page that opens after clicking on add product contains:
  • Two options( Back and Reset ) at the top right corner.
  • Two drop down options to choose the attribute set and the type of product.
  • And a continue button at the center.

  • After clicking on continue option, a page will open where you can enter the details of the product like:
  • General details including Names, Description, SKU, Weight, Status etc.
  • Price
  • Images
  • Design
  • Place them under different categories
  • Related products and much more.

  • You can save the details and finally add the product.
  • You will notice that the product is available for sale at the front-end of your store.