Giter VIP home page Giter VIP logo

demo-project's Introduction

Commerce 2.x demo project template

Use Composer to get Drupal + Commerce 2.x + demo content.

Based on drupalcommerce/project-base, plus a custom theme and demo content.

Belgrade product example

Usage

First you need to install composer.

Note: The instructions below refer to the global composer installation. You might need to replace composer with php composer.phar (or similar) for your setup.

After that you can create the project:

composer create-project drupalcommerce/demo-project demo-commerce --stability dev --no-interaction

Done! Use composer require ... to download additional modules and themes:

cd some-dir
composer require "drupal/devel:1.x-dev"

The composer create-project command passes ownership of all files to the project that is created. You should create a new git repository, and commit all files not excluded by the .gitignore file.

Quickstart

After the files are in place, go to install.php to install Drupal.

Alternatively, you can use the quickstart script:

php scripts/quickstart

To reinstall:

php scripts/clean
php scripts/quickstart

What does the template do?

  • Drupal is installed in the web directory.
  • Modules (packages of type drupal-module) are placed in web/modules/contrib/
  • Theme (packages of type drupal-theme) are placed in web/themes/contrib/
  • Profiles (packages of type drupal-profile) are placed in web/profiles/contrib/
  • Creates default writable versions of settings.php and services.yml.
  • Creates the web/sites/default/files directory.
  • Latest version of DrupalConsole is installed locally for use at bin/drupal.

Updating Drupal Core

This project will attempt to keep all of your Drupal Core files up-to-date; the project drupal/core-composer-scaffold is used to ensure that your scaffold files are updated every time drupal/core is updated. If you customize any of the "scaffolding" files (commonly .htaccess), you may need to merge conflicts if any of your modified files are updated in a new release of Drupal core.

Follow the steps below to update your core files.

  1. Run composer update drupal/core drupal/core-dev --with-dependencies to update Drupal Core and its dependencies.
  2. Run git diff to determine if any of the scaffolding files have changed. Review the files for any changes and restore any customizations to .htaccess or robots.txt.
  3. Commit everything all together in a single commit, so web will remain in sync with the core when checking out branches or running git bisect.
  4. In the event that there are non-trivial conflicts in step 2, you may wish to perform these steps on a branch, and use git merge to combine the updated core files with your customized files. This facilitates the use of a three-way merge tool such as kdiff3. This setup is not necessary if your changes are simple; keeping all of your modifications at the beginning or end of the file is a good strategy to keep merges easy.

Generate composer.json from existing project

With using the "Composer Generate" drush extension you can now generate a basic composer.json file from an existing project. Note that the generated composer.json might differ from this project's file.

FAQ

Should I commit the contrib modules I download?

Composer recommends no. They provide argumentation against but also workrounds if a project decides to do it anyway.

Should I commit the scaffolding files?

The Drupal Composer Scaffold plugin can download the scaffold files (like index.php, update.php, …) to the web/ directory of your project. If you have not customized those files you could choose to not check them into your version control system (e.g. git). If that is the case for your project it might be convenient to automatically run the drupal-scaffold plugin after every install or update of your project. You can achieve that by registering @composer drupal:scaffold as post-install and post-update command in your composer.json:

"scripts": {
    "post-install-cmd": [
        "@composer drupal:scaffold",
        "..."
    ],
    "post-update-cmd": [
        "@composer drupal:scaffold",
        "..."
    ]
},

How can I apply patches to downloaded modules?

If you need to apply patches (depending on the project being modified, a pull request is often a better solution), you can do so with the composer-patches plugin.

To add a patch to drupal module foobar insert the patches section in the extra section of composer.json:

"extra": {
    "patches": {
        "drupal/foobar": {
            "Patch description": "URL to patch"
        }
    }
}

How can I add js/css libraries using composer.json?

It is possible to use frontend libraries with composer thanks to the asset-packagist repository (https://asset-packagist.org/).

For example, to use colorbox:

composer require npm-asset/colorbox:"^0.4"

Composer will detect new versions of the library that meet your constraints. In the above example it will download anything from 0.4.* series of colorbox.

When managing libraries with composer this way, you may not want to add it to version control. In that case, add specific directories to the .gitignore file.

# Specific libraries (which we manage with composer)
web/libraries/colorbox

For more details, see https://asset-packagist.org/site/about

How do I specify a PHP version ?

This project supports PHP 7.1 as minimum version (see Drupal 8 PHP requirements), however it's possible that a composer update will upgrade some package that will then require PHP 7+.

To prevent this you can add this code to specify the PHP version you want to use in the config section of composer.json:

"config": {
    "sort-packages": true,
    "platform": {
        "php": "7.1"
    }
},

demo-project's People

Contributors

alexpott avatar bojanz avatar dwkitchen avatar jsacksick avatar mglaman avatar rszrama avatar valicm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

demo-project's Issues

taxonomy_term_depth module is not installing

Following installation procedure to the leter, getting:

 - Installing drupal/taxonomy_term_depth (dev-2.x 29fafed): Cloning 29fafed7ba from cache
    29fafed7ba6c265bcaca1ee50734caa833533120 is gone (history was rewritten?)


  [RuntimeException]
  Failed to execute git checkout '29fafed7ba6c265bcaca1ee50734caa833533120' -
  - && git reset --hard '29fafed7ba6c265bcaca1ee50734caa833533120' --

  fatal: failed to read object 29fafed7ba6c265bcaca1ee50734caa833533120: Oper
  ation not permitted

where can I change it to 2.4 current version? composer.json does not have drupal/taxonomy_term_depth mentioned at all

Drupal 9

Do you have any plans to update this demo-project to Drupal 9?

Install error: Unable to install modules: module 'commerce_kickstart_core' is incompatible with this version of Drupal core.

Unable to install modules: module 'commerce_kickstart_core' is incompatible with this version of Drupal core.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /core/install.php?profile=commerce_kickstart&langcode=en&id=1&op=do_nojs&op=do
StatusText: OK
ResponseText: Drupal\Core\Extension\MissingDependencyException: Unable to install modules: module 'commerce_kickstart_core' is incompatible with this version of Drupal core. in Drupal\Core\Extension\ModuleInstaller->install() (line 91 of /var/www/demo-commerce/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php).

微信截图_20211114012908

Provide a simple landing page

We should provide a simple landing page that is a bit more welcoming than this:

welcome_to_drupal___drupal

The mocks have something like this. To start the demo profile can provide the route and placed blocks.

homepage1 1

Improvements on install / evaluation instructions

Right now the instructions say to use Composer and composer create-project. Composer will be a dependency, but should the README also state the project can be cloned or downloaded as an archive?

composer create-project drupalcommerce/demo-project demo-commerce --stability dev --no-interaction when use composer to create the project

Fatal error: Uncaught Error: Undefined constant "DrupalProject\composer\CONFIG_SYNC_DIRECTORY" in /var/www/demo-commerce/scripts/composer/ScriptHandler.php:44
Stack trace:
#0 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(388): DrupalProject\composer\ScriptHandler::createRequiredFiles(Object(Composer\Script\Event))
#1 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(237): Composer\EventDispatcher\EventDispatcher->executeEventPhpScript('DrupalProject\\c...', 'createRequiredF...', Object(Composer\Script\Event))
#2 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(118): Composer\EventDispatcher\EventDispatcher->doDispatch(Object(Composer\Script\Event))
#3 phar:///usr/local/bin/composer/src/Composer/Installer.php(364): Composer\EventDispatcher\EventDispatcher->dispatchScript('post-update-cmd', true)
#4 phar:///usr/local/bin/composer/src/Composer/Command/CreateProjectCommand.php(267): Composer\Installer->run()
#5 phar:///usr/local/bin/composer/src/Composer/Command/CreateProjectCommand.php(164): Composer\Command\CreateProjectCommand->installProject(Object(Composer\IO\ConsoleIO), Object(Composer\Config), Object(Symfony\Component\Console\Input\ArgvInput), 'drupalcommerce/...', 'demo-commerce', NULL, 'dev', false, true, true, NULL, false, false, false, false, false, true, false)
#6 phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php(245): Composer\Command\CreateProjectCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(835): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(185): Symfony\Component\Console\Application->doRunCommand(Object(Composer\Command\CreateProjectCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 phar:///usr/local/bin/composer/src/Composer/Console/Application.php(327): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(117): Composer\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 phar:///usr/local/bin/composer/src/Composer/Console/Application.php(128): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 phar:///usr/local/bin/composer/bin/composer(73): Composer\Console\Application->run()
#13 /usr/local/bin/composer(29): require('phar:///usr/loc...')
#14 {main}
  thrown in /var/www/demo-commerce/scripts/composer/ScriptHandler.php on line 44

Cannot do a site:install using Drupal Console

When I try to install the site using Drupal Console with the demo_commerce profile I get an error which prevents the install from continuing. If I use the standard profile instead then it installs without issue

Steps:

composer create-project drupalcommerce/demo-project demo-commerce --stability dev --no-interaction
cd demo-commerce
drupal site:install commerce_base --db-type="mysql" --db-host="127.0.0.1" --db-port="3306" --db-name="commercedemo" --db-user="demo" --site-name="Commerce Demo" --site-mail="[email protected]" --account-name="administrator" --account-mail="[email protected]"

Results in the error:

 Starting Drupal 8 install process
Error: Class 'Drupal\bootstrap\Bootstrap' not found in /srv/www/commercedemo.procycle.local/web/themes/contrib/bootstrap/bootstrap.theme on line 31 #0 /srv/www/commercedemo.procycle.local/web/core/lib/Drupal/Core/Extension/Extension.php(140): include_once()
#1 /srv/www/commercedemo.procycle.local/web/core/themes/engines/twig/twig.engine(35): Drupal\Core\Extension\Extension->load()
#2 [internal function]: twig_init(Object(Drupal\Core\Extension\Extension))
#3 /srv/www/commercedemo.procycle.local/web/core/lib/Drupal/Core/Theme/ThemeInitialization.php(144): call_user_func('twig_init', Object(Drupal\Core\Extension\Extension))
#4 /srv/www/commercedemo.procycle.local/web/core/lib/Drupal/Core/Theme/ThemeManager.php(122): Drupal\Core\Theme\ThemeInitialization->loadActiveTheme(Object(Drupal\Core\Theme\ActiveTheme))
#5 /srv/www/commercedemo.procycle.local/web/core/includes/theme.maintenance.inc(99): Drupal\Core\Theme\ThemeManager->setActiveTheme(Object(Drupal\Core\Theme\ActiveTheme))
#6 /srv/www/commercedemo.procycle.local/web/core/includes/bootstrap.inc(740): _drupal_maintenance_theme()
#7 /srv/www/commercedemo.procycle.local/web/core/includes/install.core.inc(493): drupal_maintenance_theme()
#8 /srv/www/commercedemo.procycle.local/web/core/includes/install.core.inc(114): install_begin_request(Object(Composer\Autoload\ClassLoader), Array)
#9 /srv/www/commercedemo.procycle.local/vendor/drupal/console/src/Command/Site/InstallCommand.php(542): install_drupal(Object(Composer\Autoload\ClassLoader), Array)
#10 /srv/www/commercedemo.procycle.local/vendor/drupal/console/src/Command/Site/InstallCommand.php(433): Drupal\Console\Command\Site\InstallCommand->runInstaller(Array, 'default')
#11 /srv/www/commercedemo.procycle.local/vendor/symfony/console/Command/Command.php(251): Drupal\Console\Command\Site\InstallCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /srv/www/commercedemo.procycle.local/vendor/symfony/console/Application.php(964): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /srv/www/commercedemo.procycle.local/vendor/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(Drupal\Console\Command\Site\InstallCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /srv/www/commercedemo.procycle.local/vendor/drupal/console-core/src/Application.php(185): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /srv/www/commercedemo.procycle.local/vendor/drupal/console/src/Application.php(64): Drupal\Console\Core\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /srv/www/commercedemo.procycle.local/vendor/symfony/console/Application.php(148): Drupal\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /srv/www/commercedemo.procycle.local/vendor/drupal/console/bin/drupal.php(89): Symfony\Component\Console\Application->run()
#18 /srv/www/commercedemo.procycle.local/vendor/drupal/console/bin/drupal(4): require('/srv/www/commer...')
#19 {main}
Error: Class 'Drupal\bootstrap\Bootstrap' not found in include_once() (line 31 of /srv/www/commercedemo.procycle.local/web/themes/contrib/bootstrap/bootstrap.theme).

Add test matrices

There should be additional test matrix definitions. This could allow us to find regressions using this project.

Possible items:

  • Commerce 2.x
  • Next core branch

Eventually we'll have Behat tests running.

Installation requirements are not included in the initial requirements

The npm modules

COLOR FIELD LIBRARY: JQUERY SIMPLE COLOR
COLOR FIELD LIBRARY: SPECTRUM

These modules not installed in the initial installation. This is eluded to in the readme, but should be added

Adding the modules with:
composer require bower-asset/jquery-simple-color bower-asset/spectrum

Leads to a hanging message:
server:~/commerce$ composer update

DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)

Error demo 404

Hi, the demo is not found , is the url diferente? thanks!

[Composer\Downloader\TransportException]                                                                                            
  The "https://api.github.com/repos/bojanz/commerce_demo/zipball/0a001a35acdb45534c4a464041b9bcafa4a29a82" file could not be downloa  
  ded (HTTP/1.1 404 Not Found)      

Move social menu config to Belgrade theme

The system.menu.social.yml and block.block.belgrade_social.yml config should be moved from demo_commerce and actually in the Belgrade theme.

Just need to open issue on Drupal.org and a patch.

Link to theme from demo?

Is there a link to theme used in demo to download?
And maybe a full code dump of all modules installed for drupal project - there are some issues with composer download

Demo and Belgrade breaks with Bootstrap v3.17

When I installed the demo, there was no theme enabled so I enabled Belgrade, which broke the site, however, the site worked after downgrading to Bootstrap to 3.16.

Following is the logged error after enabling Belgrade, with Bootstrap 3.17 installed:

Error: Unsupported operand types in Drupal\bootstrap\Plugin\Provider\JsDelivr->processDefinition() (line 108 of [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Plugin/Provider/JsDelivr.php) #0 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Plugin/ProviderManager.php(38): Drupal\bootstrap\Plugin\Provider\JsDelivr->processDefinition(Array, 'jsdelivr') #1 [project_root]demo-commerce/web/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(286): Drupal\bootstrap\Plugin\ProviderManager->processDefinition(Array, 'jsdelivr') #2 [project_root]demo-commerce/web/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(175): Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() #3 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Plugin/PluginManager.php(101): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() #4 [project_root]demo-commerce/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(22): Drupal\bootstrap\Plugin\PluginManager->getDefinitions() #5 [project_root]demo-commerce/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php(59): Drupal\Core\Plugin\DefaultPluginManager->getDefinition('jsdelivr', false) #6 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Theme.php(483): Drupal\Core\Plugin\DefaultPluginManager->hasDefinition('jsdelivr') #7 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Plugin/Setting/Advanced/Cdn/CdnProvider.php(60): Drupal\bootstrap\Theme->getProvider('jsdelivr') #8 [project_root]demo-commerce/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(25): Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnProvider->__construct(Array, 'cdn_jsdelivr_ve...', Array) #9 [project_root]demo-commerce/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('cdn_jsdelivr_ve...', Array) #10 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Plugin/PluginManager.php(84): Drupal\Component\Plugin\PluginManagerBase->createInstance('cdn_jsdelivr_ve...', Array) #11 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Theme.php(554): Drupal\bootstrap\Plugin\PluginManager->createInstance('cdn_jsdelivr_ve...') #12 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/ThemeSettings.php(56): Drupal\bootstrap\Theme->getSettingPlugin() #13 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Theme.php(750): Drupal\bootstrap\ThemeSettings->__construct(Object(Drupal\bootstrap\Theme)) #14 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Theme.php(532): Drupal\bootstrap\Theme->settings() #15 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Theme.php(186): Drupal\bootstrap\Theme->getSetting('schemas') #16 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Bootstrap.php(490): Drupal\bootstrap\Theme->__construct(Object(Drupal\Core\Extension\Extension), Object(Drupal\Core\Extension\ThemeHandler)) #17 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Theme.php(359): Drupal\bootstrap\Bootstrap::getTheme('bootstrap', Object(Drupal\Core\Extension\ThemeHandler)) #18 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Theme.php(765): Drupal\bootstrap\Theme->getAncestry() #19 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Theme.php(182): Drupal\bootstrap\Theme->subthemeOf('bootstrap') #20 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Bootstrap.php(490): Drupal\bootstrap\Theme->__construct(Object(Drupal\Core\Extension\Extension), Object(Drupal\Core\Extension\ThemeHandler)) #21 [project_root]demo-commerce/web/themes/contrib/bootstrap/src/Bootstrap.php(1049): Drupal\bootstrap\Bootstrap::getTheme() #22 [project_root]demo-commerce/web/themes/contrib/bootstrap/bootstrap.theme(31): Drupal\bootstrap\Bootstrap::initialize() #23 [project_root]demo-commerce/web/core/lib/Drupal/Core/Extension/Extension.php(145): include_once('/Applications/A...') #24 [project_root]demo-commerce/web/core/themes/engines/twig/twig.engine(35): Drupal\Core\Extension\Extension->load() #25 [internal function]: twig_init(Object(Drupal\Core\Extension\Extension)) #26 [project_root]demo-commerce/web/core/lib/Drupal/Core/Theme/ThemeInitialization.php(144): call_user_func('twig_init', Object(Drupal\Core\Extension\Extension)) #27 [project_root]demo-commerce/web/core/lib/Drupal/Core/Theme/ThemeInitialization.php(74): Drupal\Core\Theme\ThemeInitialization->loadActiveTheme(Object(Drupal\Core\Theme\ActiveTheme)) #28 [project_root]demo-commerce/web/core/lib/Drupal/Core/Theme/ThemeManager.php(406): Drupal\Core\Theme\ThemeInitialization->initTheme('belgrade') #29 [project_root]demo-commerce/web/core/lib/Drupal/Core/Theme/ThemeManager.php(96): Drupal\Core\Theme\ThemeManager->initTheme(Object(Drupal\Core\Routing\RouteMatch)) #30 [project_root]demo-commerce/web/core/lib/Drupal/Core/Render/ElementInfoManager.php(74): Drupal\Core\Theme\ThemeManager->getActiveTheme() #31 [project_root]demo-commerce/web/core/lib/Drupal/Core/Form/FormBuilder.php(810): Drupal\Core\Render\ElementInfoManager->getInfo('form') #32 [project_root]demo-commerce/web/core/lib/Drupal/Core/Form/FormBuilder.php(276): Drupal\Core\Form\FormBuilder->prepareForm('system_themes_a...', Array, Object(Drupal\Core\Form\FormState)) #33 [project_root]demo-commerce/web/core/lib/Drupal/Core/Form/FormBuilder.php(216): Drupal\Core\Form\FormBuilder->buildForm('system_themes_a...', Object(Drupal\Core\Form\FormState)) #34 [project_root]demo-commerce/web/core/modules/system/src/Controller/SystemController.php(322): Drupal\Core\Form\FormBuilder->getForm('Drupal\\system\\F...', Array) #35 [internal function]: Drupal\system\Controller\SystemController->themesPage() #36 [project_root]demo-commerce/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #37 [project_root]demo-commerce/web/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #38 [project_root]demo-commerce/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #39 [project_root]demo-commerce/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #40 [project_root]demo-commerce/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #41 [project_root]demo-commerce/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #42 [project_root]demo-commerce/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #43 [project_root]demo-commerce/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #44 [project_root]demo-commerce/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #45 [project_root]demo-commerce/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #46 [project_root]demo-commerce/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #47 [project_root]demo-commerce/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #48 [project_root]demo-commerce/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #49 [project_root]demo-commerce/web/core/lib/Drupal/Core/DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #50 [project_root]demo-commerce/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #51 {main}.

Using commerce in production

I want to build a commerce website on drupal 8 to be used in production. As the commerce distribution is offline. What should I do now?

Should I just use any distribution and install commerce module and then install a commerce theme?

Delete the core "Tools" block on install

There is the "tools" block which provides some basic admin links. Conditional checking of empty regions is broken in Twig due to cache metadata still being present. Causes sidebars to render when they should not, for example.

One case is the generated belgrade_tools block. This should be deleted on install.

product_catalog___drupal

Facets will disappear on select pages

Here it is OK for Audio/Film
product_catalog___belgrade

But Print Shop is disappears.
product_catalog___belgrade

It's fine on /products which makes me think it's Facets freaking out. The block is rendered as expected, but it must not know the data source is present.

Facets 1.8.0 is not supported anymore, please add 2.0.0

Facets 2.0.0 is released on 10 December 2021 and is from now on the only support version.

drupal/commerce_demo dev-1.x requires drupal/facets ^1.0 -> found drupal/facets[dev-1.x, 1.0.0-alpha1, ..., 1.x-dev (alias of dev-1.x)] but it conflicts with your root composer.json require (^2).

No pictures on the product pages

Hi I've installed the demo with Composer and so far runs quite well.

Unfortunately, no images are displayed on the product pages on the left site.
Example:
/product/adventure-begins-camping-mug

The header of the image field, if activated, but already.

Can you help?
no-productimage

What does this mean?

@bojanz In the description I found "The composer create-project command passes ownership of all files to the project that is created. You should create a new git repository, and commit all files not excluded by the .gitignore file."

What does it mean and how to do it?

Installation hitch: Stalls as "Updating dependencies"

Greetings,

After reading mglaman's clear and concise on how users can install and run without composer-create project, I executed steps 1-3 below but my system stalls on step #4: composer install. ... Looks like not all the dependencies are able to be installed? I'm surely overlooking something and would appreciate any help. Thanks.

  1. Download https://github.com/drupalcommerce/demo-project/archive/master.zip ... Me: Ok!
  2. Extract the project .... Me: Ok!
  3. cd into project .... Me: Ok!
    *4. composer install ... Me: EEP. Wtf?

Sample output:

DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed

Running Debian 9

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.