openmindculture / sw-IngoSCostTransparency

Shopware extension adding product cost transparency graphs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

initial minimal viable plugin functionality

openmindculture opened this issue · comments

  • dev env
  • plugin basics
  • placeholder content in frontend
  • add custom fields to product, see add complex data to existing entities
    • Property names are usually camelCase, with the first character being lower cased.
    • new class ExampleExtensionDefinition containing the field(s) that we wanted to add to the product.
    • this new definition also needs to be registered to the DI container (services.xml)
    • add the new database table via a Database migration.
    • limit percentage range to 0..100 integer values
  • prevent overengineering:

Of course, you can also add scalar values without an association to an entity via an extension.

  • localize custom field labels (by defining globally in config.xml?)
  • add boolean configuration switch show vs. don't show
  • move frontend data visualization to new tab (see Developer Training Advanced: Extending frontend products: creating a new tab on the product detail page)
  • fall back to colors of the preview screenshot and 2 more
  • refactor frontend JavaScript code
  • validate and test locally
  • validate and test in demo store
  • respect the official plugin quality guidelines
  • validate using the official test environment, e.g. docker pull ghcr.io/shopwarelabs/testenv:6.6.0 - see https://github.com/shopwareLabs/testenv-platform/pkgs/container/testenv/195773064?tag=6.6.0 for possible newer tags
  • prepare text and screenshots for plugin description in English and German
  • update README in this repository accordingly
  • submit to marketplace

TODO finish and validate code and migrations, reinstall the plugin and verify the settings, before accessing and applying them in the frontend; ensure that the settings snippets are localizable for all languages used.

fixed display problem

Release submission planned for April 2024.