powered by spree

891 views
Skip to first unread message

GJ

unread,
Jan 12, 2011, 11:41:52 AM1/12/11
to Spree
I'm looking to remove the "powered by spree" footer. does anyone know
where this is located?

also, how is the "Shop By" overridden when adding a new taxonomy?

thanks

Adam Jahn

unread,
Jan 12, 2011, 12:51:36 PM1/12/11
to spree...@googlegroups.com
Powered by… is located in 'core/app/views/shared/_footer.html.erb' You can change it by overriding the view or using the hook. These methods are meant to be used to customize to fit your site's style, as you probably don't want to deploy a store that uses the default front end.

Have a look in the docs here: http://edgeguides.spreecommerce.com/customization.html#hooksandoverrides

"Shop by" is in 'core/app/views/shared/_taxonomies.html.erb'. You can override the view or change the string in your localization file (config/locales/en.yml).

> --
> You received this message because you are subscribed to the Google Groups "Spree" group.
> To post to this group, send email to spree...@googlegroups.com.
> To unsubscribe from this group, send email to spree-user+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
>

Sean Schofield

unread,
Jan 12, 2011, 1:22:43 PM1/12/11
to spree...@googlegroups.com
Brian's view customization will make it really easy to address this
sort of stuff. Its a little ways off (and you're going to hear more
and more about how great it will be when we have it.) The idea though
will be to make it so that designers can modify the views easily
without having to worry about which hook to use or whether there is
even an appropriate hook.

In the meantime, its not too complicated to use the current mechanism
that Adam is suggesting.

Sean Schofield

-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------

Redd Vinylene

unread,
Jan 12, 2011, 2:56:30 PM1/12/11
to spree...@googlegroups.com
On Wed, Jan 12, 2011 at 7:22 PM, Sean Schofield <se...@railsdog.com> wrote:
Brian's view customization will make it really easy to address this
sort of stuff.  Its a little ways off (and you're going to hear more
and more about how great it will be when we have it.)  The idea though
will be to make it so that designers can modify the views easily
without having to worry about which hook to use or whether there is
even an appropriate hook.

In the meantime, its not too complicated to use the current mechanism
that Adam is suggesting.

Sean Schofield


Where may one learn more about Brian's view customization?

As a designer, I've found the hooks system to only complicate things - as designers who customize their CSS most likely will want to customize their views as well. Pluss Spree's views are kinda messy. I'm soon done with my cleanup, though as I mentioned earlier, it probably won't get accepted as it'll break Spree's current CSS.

Thanks!

Brian Quinn

unread,
Jan 13, 2011, 5:47:47 AM1/13/11
to spree...@googlegroups.com
The new theming stuff isn't finished yet, and there's a stack of improvements to come shortly. I wouldn't classify it as "designer ready" yet, but there's plenty of stuff to play with. Anyway, there's currently two repo's that make up the project:

1) https://github.com/bdq/deface - This is the core theming library - you can take a look at the readme, but it basically parses erb view files, converts the erb tags <% %> into pseudo html tags and provides an Override object that allows you to use CSS selectors to target any element in that view, and then :remove, :replace, :insert_before, :insert_after, :insert_top or :insert_bottom new content to that selector. The ReadMe has some basic examples. It's a Rails 3 gem, not Spree specific, there is a gem released but it's pretty old so you'll want to look at repo for the latest (I was testing on heroku and needed a gem).

2) https://github.com/bdq/deface-spree - This is a test project for deface, and includes a new Rails 3 engine (temporarily called "Themer") that provides a UI for defining and managing Deface::Override objects. The repo contains an entire working copy of Spree with a sandbox (that contains the themer extension).

To get it up and running, all you should have to do is:

a) clone the repo and move into the deface-spree/sandbox directory
b) bundle install
c) rails s

Once started you should see the Themer UI should appear in a popup window, the database is already included  (so no need to bootstrap / migrate) and it has a few overrides defined on the homepage.


Like I said, this is still rough and changing very fast so YMMV.

Brian



--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree...@googlegroups.com.
To unsubscribe from this group, send email to spree-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.



--
Brian Quinn
Reply all
Reply to author
Forward
0 new messages