Skip to content

Instantly share code, notes, and snippets.

@mamhoff
Last active November 26, 2016 08:51
Show Gist options
  • Save mamhoff/6036e7b528187d25f0185fcebabd68af to your computer and use it in GitHub Desktop.
Save mamhoff/6036e7b528187d25f0185fcebabd68af to your computer and use it in GitHub Desktop.
Solidus Workshop at Rubyday

Solidus Workshop

People

  • Martin Meyerhoff (@mamhoff) Solidus Core team member
  • Alessandro Lepore (@alepore) Committer for Solidus i18n gem

What is Solidus

  • eCommerce framework for Ruby on Rails
  • Six gems
  • One Rails Engine
  • Six-year old codebase

What are we doing today?

Pair on getting started with Solidus. You'll learn how to use an Engine and how to modify its behaviour.

Resources

Getting Started

Configuration and Customization

Overriding Assets

Configuring Assets and Taxation

Challenges

  1. Create a Rails project with the Solidus gems (mandatory)

  2. Explore the backend! Take some time for this

  3. "Buy" something

  4. Change the main logo

  5. Change the background color of the product index to light red

  6. Change the locale of the frontend to Italian (or another language you speak that is not English) (Hint: You'll need the Solidus I18N extension for this)

  7. (advanced) Only allow an order to pass to checkout if the total is > 100 Eur

  8. (advanced) Configure your store to properly display Value added tax for "Food" and "Clothing" items for your home country

  9. (advanced) Modify the order's included_tax_total getter to return an inflated number by 10%. Test this (Tip: You can require Solidus' factories!)

  10. (advanced) Change the "No products found" string to "Bugger, no products here" (possibly in your own language).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment