Benny's Shopware Notebook
  • Introduction
    • How to Get in Touch
  • ddev for Shopware
    • Less than 5 Minutes Install with ddev and Symfony Flex
    • Storefront and Admin Watchers with ddev
    • Message Queue Setup with ddev
    • Contribute with ddev
    • Performance Tweaks
    • RabbitMQ with ddev
    • phpstan pro with ddev
    • Fetch Media from Production or Staging Server
  • Hosting
    • Setting up a Cloud Server with ddev
    • How to Trouble-shoot and Evaluate Environment Variables
    • Media URLs Out Of Sync between Servers
    • RabbitMQ
    • Running Shopware CE with PaaS
    • SFTP-Users
    • Basic-Auth for Shopware 6 with nginx
    • How to Avoid Failed Systemd Units
    • JWT-Secrets as Environment Variables
  • Deployment
    • Close-to-Zero Downtime Deployment
    • Docker-Images for Deployment with Gitlab-Runners
    • PHP Cache Related Issues
  • Development
    • Patching the Core
    • How to Discover Available Updates?
    • Local Testing of Shopware Commercial Features
  • Administration
  • Database
  • Migration
    • Side Effects
Powered by GitBook
On this page
  • Select and activate SwagCommercial for Your Wildcard Domain
  • Set Your Local Installation's Licence Domain
  • Connect Your Local Installation to the Shopware Account
  • Install and Activate SwagCommercial Locally
  • Ensure Scheduled Tasks Running Locally
  • Be Patient
  • Commercial CLI Commands
  • Troubleshooting

Was this helpful?

  1. Development

Local Testing of Shopware Commercial Features

This guide assumes you are a registered Shopware partner and have activated the wildcard domains feature.

PreviousHow to Discover Available Updates?NextAdministration

Last updated 6 months ago

Was this helpful?

Select and activate SwagCommercial for Your Wildcard Domain

To do this, log into the partner area of your Shopware account.

Set Your Local Installation's Licence Domain

Note this is the wildcard licence domain you have registered with Shopware, it is different from your local domain (typically something.ddev.site).

Connect Your Local Installation to the Shopware Account

Install and Activate SwagCommercial Locally

Composer require SwagCommercial, then install and activate following the standard procedures.

composer require store.shopware.com/swagcommercial
bin/console plugin:refresh
bin/console plugin:install --activate -c SwagCommercial

Ensure Scheduled Tasks Running Locally

In particular, the task swag.commercial.update_license needs to active - check it was last time executed after you activated the plugin, and it is in status scheduled.

Be Patient

It may take some time - up to an hour or so - for your local installation to fully synchronize with Shopware's licence server. Eventually, you should see the commercial features - like warehouses management or the subscriptions - being available in the Admin. If the synchronization did fail, try to reschedule the update task (see above) or manually trigger the update from the CLI with bin/console commercial:license:update.

Commercial CLI Commands

The Commercial plugin brings its own set of CLI commands:

 commercial:license:update  Update commercial license key                         
 commercial:license:info    Show commercial license info                          
 commercial:license:set     Set commercial license host & key                     
 commercial:feature:disable Disable a feature which is included in your plan      
 commercial:feature:enable  Enable a feature which is included in your plan       
 commercial:feature:list    List features included in your plan and their status  
 commercial:report-turnover Reports the turnover of the specified timeframe

Check your licence status with commercial:license:info. If you miss a feature, see commercial:feature:list and enable or disable the features you need.

Troubleshooting

t.b.d.