GithubHelp home page GithubHelp logo

guanglunw / spree_taxon_splash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iloveitaly/spree_taxon_splash

0.0 2.0 0.0 161 KB

Custom splash pages for taxons

License: BSD 3-Clause "New" or "Revised" License

Ruby 99.04% JavaScript 0.43% CSS 0.52%

spree_taxon_splash's Introduction

Custom Taxon / Category Display for Spree Commerce

Ability to create customized splash pages for taxon displays. Instead of displaying a simple product listing, you can specify your own HTML completely or display a 'bundle listing' (a cart-like listing of all the products in the taxon).

This extension was created to provide some very customized functionality. The goal is to provide a starting point for anyone looking for a highly customized category display, but it may not be very useful out of the box.

Spree::TaxonSplash#content is rendered in splash.html.erb. The admin interface allows you to create a splash page for a taxon and assign the HTML content that will be rendered.

If you want to do anything fancy (like partial rendering, or markdown parsing, etc) you can modify the splash.html.erb file.

Copy splash.html.erb to app/views/spree/taxons. You can use that as a starting point for customizing your taxon splash page.

Installation

# Gemfile
gem 'spree_taxon_splash', :github => 'iloveitaly/spree_taxon_splash'

bundle and run migrations

rails g spree_taxon_splash:install

Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

$ bundle
$ bundle exec rake test_app
$ bundle exec rspec spec

Note that there are still some missing test cases.

Copyright (c) 2012 Michael Bianco (@iloveitaly), released under the New BSD License

spree_taxon_splash's People

Contributors

iloveitaly avatar guanglunw avatar jackryon avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.