Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to customize Spree?

I need to modify Spree (functionality and views). But Spree installs as a gem (it's not simple application), I believe it's actually a Rails engine right? I'm pretty new at all of this.

But what is exactly the best way to grab Spree and customize it entirely to create your own ecommerce solution?

Thank you.

PS: Using Ruby 1.8.7 and Rails 3.

like image 371
empz Avatar asked Mar 17 '11 17:03

empz


1 Answers

You can easily customize spree by overrides. When you generate a fresh spree site inside your Rails app, you can see it creates empty directories like views, controllers etc. When your app is loaded, it first looks at this location and then loads from Gem. Assume you want to customize product display page, place show.html.erb into app/views/products/ and customize it the way you want.

like image 159
hnprashanth Avatar answered Sep 28 '22 22:09

hnprashanth