Coder Social home page Coder Social logo

php-cuong / magento2-customer-avatar Goto Github PK

View Code? Open in Web Editor NEW
22.0 4.0 18.0 486 KB

How to add the profile picture for a customer in Magento 2

PHP 52.39% HTML 38.96% CSS 6.31% JavaScript 2.34%
customer-avatar magento2-customer-avatar customer-avatar-extension magento2-extension customer-attributes add-attributes-to-customer customer-profile-picture profile-picture-magento2 magento2-picture upload-a-profile-picture

magento2-customer-avatar's Introduction

You can get the professional version of this extension here (No issues and is supported free)

https://www.giaphugroup.com/magento-2-customer-avatar-extension.html

How to add the profile picture for a customer in Magento 2

This is an awesome module, it allows the customers the opportunity to personalize their account by uploading an avatar.

Please donate if you enjoy my extension.

See the video How this extension can work here

https://www.youtube.com/watch?v=3Tt82EvXLLA&list=PL98CDCbI3TNvPczWSOnpaMoyxVISLVzYQ&index=96

The features of this extension:

Frontend:

  • The customer can upload a new avatar.
  • The avatar can be displayed in the header of the website.
  • The avatar can be displayed in the reviews list.

Backend:

  • Display the avatar of the customer in the customer's grid of Magento Admin.
  • Upload a new avatar or delete an avatar of the customer.

Introduction installation:

1 - Using Composer

composer require php-cuong/magento2-customer-avatar:dev-master

2- Enable the Customer Avatar extension

  • php bin/magento setup:upgrade
  • php bin/magento setup:static-content:deploy
  • php bin/magento indexer:reindex
  • php bin/magento cache:flush

3 - See results

Frontend

Log into your customer account, go to Edit Account Information

The avatar in the header

ScreenShot

The avatar in the edit account information

ScreenShot

The avatar in the reviews list

ScreenShot

Backend

Log into your Magento admin, go to Customers -> All Customers

The avatar in the customer's grid of Magento Admin

ScreenShot

Upload a new avatar or delete an avatar of the customer

ScreenShot

Donations

Please donate if you enjoy my extension.

magento2-customer-avatar's People

Contributors

php-cuong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

magento2-customer-avatar's Issues

Incompatible with PHP version 7.1.32

Hello, When i install this model by composer, it show an error:

[InvalidArgumentException]
Package php-cuong/magento2-customer-avatar at version dev-master has a PHP requirement incompatible with your PHP version (7.1.32)

It it compatible with php 7 ? Thank you very match.

Extension is not working in Magento 2 EE

I have tried the module in Magento 2 Enterprise Edition but its not working. I can see the field "avatar" in Customer_entity table, the profile picture upload option in Account information but can't able to upload the image.

Unable to save

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Customer\Model\Metadata\Form\File::extractValue() must implement interface Magento\Framework\App\RequestInterface, none given, called in /opt/lampp/htdocs/magento2/vendor/magento/framework/Interception/Interceptor.php on line 58 and defined in /opt/lampp/htdocs/magento2/vendor/magento/module-customer/Model/Metadata/Form/File.php:107 Stack trace: #0 /opt/lampp/htdocs/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Customer\Model\Metadata\Form\File->extractValue() #1 /opt/lampp/htdocs/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Model\Metadata\Form\Image\Interceptor->___callParent('extractValue', Array) #2 /opt/lampp/htdocs/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Model\Metadata\Form\Image\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http)) #3 /opt/lampp/htdocs/mij_n in /opt/lampp/htdocs/magento2/vendor/magento/module-customer/Model/Metadata/Form/File.php on line 107

I am not able to uploade Avatar profile picture

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Customer\Model\Metadata\Form\File::extractValue() must implement interface Magento\Framework\App\RequestInterface, none given, called in /opt/lampp/htdocs/magento2/vendor/magento/framework/Interception/Interceptor.php on line 58 and defined in /opt/lampp/htdocs/magento2/vendor/magento/module-customer/Model/Metadata/Form/File.php:107 Stack trace: #0 /opt/lampp/htdocs/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Customer\Model\Metadata\Form\File->extractValue() #1 /opt/lampp/htdocs/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Model\Metadata\Form\Image\Interceptor->___callParent('extractValue', Array) #2 /opt/lampp/htdocs/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Model\Metadata\Form\Image\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http)) #3 /opt/lampp/htdocs/mij_n in /opt/lampp/htdocs/magento2/vendor/magento/module-customer/Model/Metadata/Form/File.php on line 107

di:compile error

Hi
I got an error when try to setup:di:compile... it has problem on block folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.