Skip to content

Shoper CLI usage examples - Step by step

Changing theme name

  1. go to / settings / details.json
  2. edit details.json according to JSON structure and save changes

Change theme name

  1. send changes to the server shoper theme push

shoper theme push

Theme push success

  1. observe the change in the store

Panel theme details

Editing custom CSS

  1. go to styles and edit the custom.less file Custom less
  2. make changes, then save
  3. send changes to the server shoper theme push

shoper theme push

Theme push success

  1. Observe changes in the store

Adding a new custom macro

  1. Go to the macros directory located in the skin directory.
  2. Option 1
    • If there is no custom directory in the macros directory, create it.
    • In the custom directory, create a file with the .twig extension.
    • Provide macro file logic according to documentation.
    • Save
  3. Option 2
  4. Send changes to the server shoper theme push

shoper theme push

Theme push success

Adding a new custom module

  1. Go to the modules directory located in the skin directory.
  2. Copy an existing custom module, giving it a new, unique name. If a custom module does not yet exist, it is best to create a custom module from the administrator panel, see the help article.
  3. Make the necessary changes in the source code of the new module.
  4. Then open the settings.json file.
  5. Remove the id and code fields from the new module's configuration.
  6. Below is an example of what the key structure should look like after editing:

Change a module name

  1. Send changes to the server

shoper theme push

  1. Observe changes