Sha256: ea2be1586e1dfbcb9d7451cea2e0431017218d48969e3e41b173d55c87b41bfc

Contents?: true

Size: 1.12 KB

Versions: 19

Compression:

Stored size: 1.12 KB

Contents

# solidus\_frontend

Frontend contains controllers and views implementing a storefront and cart for Solidus.

## Override views

In order to customize a view you should copy the file into your host app. Using Deface is not
recommended as it provides lots of headaches while debugging and degrades your shops performance.

Solidus provides a generator to help with copying the right view into your host app.

Simply call the generator to copy all views into your host app.

```shell
$ bundle exec rails g solidus:views:override
```

If you only want to copy certain views into your host app, you can provide the `--only` argument:

```shell
$ bundle exec rails g solidus:views:override --only products/show
```

The argument to `--only` can also be a substring of the name of the view from the `app/views/spree` folder:

```shell
$ bundle exec rails g solidus:views:override --only product
```

This will copy all views whose directory or filename contains the string "product".

### Handle upgrades

After upgrading solidus to a new version run the generator again and follow on screen instructions.

## Testing

Run the tests

    bundle exec rspec

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
solidus_frontend-2.6.6 README.md
solidus_frontend-2.7.4 README.md
solidus_frontend-2.7.3 README.md
solidus_frontend-2.6.5 README.md
solidus_frontend-2.5.2 README.md
solidus_frontend-2.7.2 README.md
solidus_frontend-2.6.4 README.md
solidus_frontend-2.5.1 README.md
solidus_frontend-2.6.3 README.md
solidus_frontend-2.7.1 README.md
solidus_frontend-2.6.2 README.md
solidus_frontend-2.7.0 README.md
solidus_frontend-2.6.1 README.md
solidus_frontend-2.6.0 README.md
solidus_frontend-2.6.0.rc1 README.md
solidus_frontend-2.5.0 README.md
solidus_frontend-2.5.0.rc1 README.md
solidus_frontend-2.5.0.beta2 README.md
solidus_frontend-2.5.0.beta1 README.md