Sha256: 46c1dc96a6159145a0a20c0ac7e3b7ca6fb0d28219c3d9af24ed19d031e5dfee

Contents?: true

Size: 1.13 KB

Versions: 72

Compression:

Stored size: 1.13 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.

```bash
$ 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:

```bash
$ 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:

```bash
$ 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

```bash
bundle exec rspec
```

Version data entries

72 entries across 72 versions & 2 rubygems

Version Path
solidus_frontend-3.1.9 README.md
solidus_frontend-3.1.8 README.md
solidus_frontend-3.0.8 README.md
solidus_frontend-3.0.7 README.md
solidus_frontend-2.11.17 README.md
solidus_frontend-3.1.7 README.md
solidus_frontend-2.11.16 README.md
solidus_frontend-3.0.6 README.md
solidus_frontend-3.1.6 README.md
solidus_frontend-2.11.15 README.md
solidus_frontend-2.11.14 README.md
solidus_frontend-3.0.5 README.md
solidus_frontend-3.1.5 README.md
solidus_frontend-2.11.13 README.md
solidus_frontend-3.0.4 README.md
solidus_frontend-3.1.4 README.md
solidus_frontend-3.1.3 README.md
solidus_frontend-2.11.12 README.md
solidus_frontend-3.0.3 README.md
solidus_frontend-3.1.2 README.md