Giter VIP home page Giter VIP logo

magento2-reachdigital_guesttoshadowcustomer's Introduction

magento2-ReachDigital_GuestToShadowCustomer

Installation

composer require reach-digital/magento2-guesttoshadowcustomer

Cron Usage

n98-magerun2 sys:cron:run <number> reachdigital_guesttoshadowcustomer_convert

Introduction

  • Create more insight into the total amount of orders per unique visitors
  • In the backend there should be a possibility to create reorders for guests
  • Possibility to save Guests payment information

Functionalities

  • Create Shadow Customer if new guest order is placed.
  • Loop through all historical guest orders and create shadow customers.
  • Loop through all historical guest orders and link Guest to existing "Customer/Shadow Customer".
  • Added "Shadow Customer" column in Admin > Customer/Order Grid.
  • Added "Is Shadow Customer" information on Admin > Customer/Order Edit page.

TODO

  • Config setting for enabling or disabling the blocking of password reset function if customer is shadow
  • Correctly set is_shadow if resetting password is enabled for shadow customers

Implement more tests:

  • Test that is_shadow flag is 0 when user registers
  • Test that is_shadow flag value is maintained when customer is updated through webapi
  • Test that is_shadow flag is 1 when shadow customer is automatically created
  • Test that password reset is not allowed if not enabled and customer is shadow
  • Test that password reset is allowed if enabled and customer is shadow
  • Test correct updating of customer is_shadow flag in customer_grid_flat table (see \Magento\Customer\Model\ResourceModel\Grid\CollectionTest::testGetItemByIdForUpdateOnSchedule and \Magento\Customer\Model\Indexer\AttributeProvider )

magento2-reachdigital_guesttoshadowcustomer's People

Contributors

hnsr avatar joerilock93 avatar maikel-koek avatar noorulbhoelai avatar paales avatar pascalbrouwers avatar simonprins avatar wimvdputten avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

magento2-reachdigital_guesttoshadowcustomer's Issues

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Root composer.json requires magento/framework, it could not be found in any version, there may be a typo in the package name.
  Problem 2
    - tddwizard/magento2-fixtures[v1.0.0, ..., 1.1.0] require magento/framework ^102.0|^103.0 -> could not be found in any version, there may be a typo in the package name.
    - Root composer.json requires tddwizard/magento2-fixtures ^1.0 -> satisfiable by tddwizard/magento2-fixtures[v1.0.0, 1.1.0].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Error on converting shadow customer to real customer

Gebeurt in de checkout bij vanMoof wanneer je het registratie formulier invult en verstuurd.

{"errors":true,"message":"We can't save the customer: Notice: Undefined variable: websiteId in \/data\/web\/magento2\/vendor\/reach-digital\/magento2-guesttoshadowcustomer\/src\/Plugin\/AccountManagementInterfaceApiAroundPlugin.php on line 191"}

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Root composer.json requires magento/framework, it could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Root composer.json requires magento/framework, it could not be found in any version, there may be a typo in the package name.
  Problem 2
    - Root composer.json requires tddwizard/magento2-fixtures ^1.0 -> satisfiable by tddwizard/magento2-fixtures[v1.0.0].
    - tddwizard/magento2-fixtures v1.0.0 requires magento/framework ^102.0|^103.0 -> could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

We can’t save the customer: Notice: Undefined variable: websiteId

“We can’t save the customer: Notice: Undefined variable: websiteId in /data/web/magento2/vendor/reach-digital/magento2-guesttoshadowcustomer/src/Plugin/AccountManagementInterfaceApiAroundPlugin.php on line 191”

PHPStorm geeft op deze variabele ook de melding: Might not have been defined.

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.