Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizing spree e-commerce view #6090

Closed
rota90 opened this issue Feb 27, 2015 · 2 comments
Closed

Customizing spree e-commerce view #6090

rota90 opened this issue Feb 27, 2015 · 2 comments

Comments

@rota90
Copy link

rota90 commented Feb 27, 2015

I am while customizing my spree e-commerce application. At first I added the 'spree_bootstrap_frontend' gem and I want to customize the oredres/edit view as follow:
Deface::Override.new(:virtual_path =>"spree/orders/edit",
:name => "continue_shopping",
:replace => "erb[loud]:contains('link_to t(:continue_shopping), products_path')",
:erb => "<%= link_to t(:continue_shopping), products_path, :class => 'btn btn-primary' %>")

but there's no change. Could you please help my first customization view?

@JDutil
Copy link
Member

JDutil commented Feb 27, 2015

If you use spree 3.0.0.rc3 or 3-0-stable branch we've actually merged spree_bootstrap_frontend into the main project. I wouldn't use deface at all, and just override the templates you want to change in your frontend. Deface is more for adding links into the admin panels navigation or to add an extra field here or there it's not really meant to customize your frontend.

close:question

@spreebot
Copy link

Please use the mailing list if you have questions about Spree that are not reporting a bug.

We simply cannot respond efficiently to questions through our Issue Tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants