Giter VIP home page Giter VIP logo

shopwaredowntown / downtown Goto Github PK

View Code? Open in Web Editor NEW
45.0 21.0 28.0 5.67 MB

With our portal, we want to support local authorities and merchants. We want to connect merchants with closed stores to their customers. And we want to keep in mind, that not every merchant has a sophisticated digital strategy - or even a homepage.

Home Page: https://github.com/shopwareDowntown/portal/wiki

License: MIT License

Shell 0.24% PHP 50.87% HTML 7.74% JavaScript 3.27% CSS 6.28% TypeScript 12.02% Makefile 0.09% Twig 15.26% SCSS 4.23%
ecommerce covid-19 shopware php mysql

downtown's Issues

Running merchant migration fails

I was running the system install command including all migrations and ran into the following error:

bin/console system:install --create-database --basic-setup
Prepare installation

Created database `swportal`
Importing base schema.sql


Get collection from directories
migrate Migrations
 203/223 [=========================░░░]  91%20:13:02 ERROR     [app] Migration: "Shopware\Production\Merchants\Migration\Migration1585212510CustomerDeleteCascade" failed: "An exception occurred while executing '        ALTER TABLE merchant
            ADD CONSTRAINT `fk.merchant.customer_id` FOREIGN KEY (`customer_id`)
            REFERENCES `customer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;':

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'swportal.merchant' doesn't exist"
 ---------- ----------------------
  Action     Number of migrations
 ---------- ----------------------
  Migrated   219 out of 223
 ---------- ----------------------


In MigrationCommand.php line 105:

  Migration error: An exception occurred while executing '        ALTER TABLE merchant
              ADD CONSTRAINT `fk.merchant.customer_id` FOREIGN KEY (`customer_id`)
              REFERENCES `customer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;':

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'swportal.merchant' doesn't exist
  Trace:
  #0 /home/sebastian/sw-portal/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(166): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException()
  #1 /home/sebastian/sw-portal/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(146): Doctrine\DBAL\DBALException::wrapException()
  #2 /home/sebastian/sw-portal/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(912): Doctrine\DBAL\DBALException::driverExceptionDuringQuery()
  #3 /home/sebastian/sw-portal/src/Merchants/Migration/Migration1585212510CustomerDeleteCascade.php(23): Doctrine\DBAL\Connection->executeQuery()
  #4 /home/sebastian/sw-portal/vendor/shopware/core/Framework/Migration/MigrationRuntime.php(47): Shopware\Production\Merchants\Migration\Migration1585212510CustomerDeleteCascade->update()
  #5 /home/sebastian/sw-portal/vendor/shopware/core/Framework/Migration/Command/MigrationCommand.php(55): Shopware\Core\Framework\Migration\MigrationRuntime->migrate()
  #6 /home/sebastian/sw-portal/vendor/shopware/core/Framework/Migration/Command/MigrationCommand.php(98): Shopware\Core\Framework\Migration\Command\MigrationCommand->getMigrationGenerator()
  #7 /home/sebastian/sw-portal/vendor/symfony/console/Command/Command.php(255): Shopware\Core\Framework\Migration\Command\MigrationCommand->execute()
  #8 /home/sebastian/sw-portal/src/Command/SystemInstallCommand.php(177): Symfony\Component\Console\Command\Command->run()
  #9 /home/sebastian/sw-portal/src/Command/SystemInstallCommand.php(159): Shopware\Production\Command\SystemInstallCommand->runCommands()
  #10 /home/sebastian/sw-portal/vendor/symfony/console/Command/Command.php(255): Shopware\Production\Command\SystemInstallCommand->execute()
  #11 /home/sebastian/sw-portal/vendor/symfony/console/Application.php(1029): Symfony\Component\Console\Command\Command->run()
  #12 /home/sebastian/sw-portal/vendor/symfony/framework-bundle/Console/Application.php(97): Symfony\Component\Console\Application->doRunCommand()
  #13 /home/sebastian/sw-portal/vendor/symfony/console/Application.php(272): Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand()
  #14 /home/sebastian/sw-portal/vendor/symfony/framework-bundle/Console/Application.php(83): Symfony\Component\Console\Application->doRun()
  #15 /home/sebastian/sw-portal/vendor/symfony/console/Application.php(148): Symfony\Bundle\FrameworkBundle\Console\Application->doRun()
  #16 /home/sebastian/sw-portal/bin/console(68): Symfony\Component\Console\Application->run()
  #17 {main}


system:install [--create-database] [--drop-database] [--basic-setup] [-f|--force] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

System:
php7.4
dev env
mysql 5.7

login with modal

the login component needs to be put in a modal like in the screendesign

Create own double optin registration mail

We need a own template for double optin for merchants.

Also should we not use the same frontend route for confirmation. The customer route loggs the customer in. And we don't want that

Add admin menu point "delivery" to merchant portal

in the merchant portal the merchant can create delivery packages, where he can:

  • add a recipient address
  • add the package content
  • add a comment for the delivery boy
  • select a delivery boy for packages

Edit DeliveryPackageEntity

because we need a correct address to plan the route, the recipient property has to be changed to an address
and the comment property is missing

Registration Endpoint

  • Create a new Merchant entity - done
  • Event Listener to create a customer when a merchant is written and link them together - done
  • Event Listener to remove a customer
  • Double optin Mail - done

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.