spree_frontend
ruby gem.app/assets/stylesheets/spree/frontend/variables/variables.scss
.
app/views
directory under spree
folder. You can modify them as you wish.
app/assets
directory. We’ve taken this one step further by subdividing each top level asset directory (images, JavaScript files, stylesheets) into frontend
and backend
directories. This is designed to keep assets from the frontend and backend from conflicting with each other.
A typical assets directory for a Spree application will look like:
vendor/assets/javascripts/spree/backend/all.js
includes:
vendor/assets/images/spree
, vendor/assets/javascripts/spree
, or vendor/assets/stylesheets/spree
. This is done so that these assets do not interfere with other parts of your application.
your_app/vendor/assets/stylesheets/spree/frontend/
and include the following CSS:
frontend/all.css
manifest will automatically include foo.css
and it will actually include both definitions with the one from foo.css
being included last, hence it will be the rule applied.
vendor/assets/stylesheets
directory.
For example, to replace spree/frontend/all.css
you would save the replacement to your_app/vendor/assets/stylesheets/spree/frontend/all.css
.
This same method can also be used to override stylesheets provided by third-party extensions.
show_variant_images
method:
your_app/vendor/assets/javascripts/spree/frontend
and include the new method definition:
frontend/all.js
would include both methods, with the latter being the one executed on request.
app/assets/javascripts
directory.
For example, to replace spree/frontend/all.js
you would save the replacement to your_app/vendor/assets/javascripts/spree/frontend/all.js
.
This same method can be used to override JavaScript files provided by third-party extensions.