Giter Site home page Giter Site logo

connecticus / spree_price_show Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ranxero/spree_price_show

0.0 2.0 1.0 169 KB

backend preference determines if product prices are always dosplayed or only when user is signed in

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

Ruby 66.77% JavaScript 2.34% CSS 2.38% HTML 28.52%

spree_price_show's Introduction

spree_price_show

"showprice" spree config preference determines
if product prices are always displayed or only when user is signed in.

see
admin -> Configuration -> General Configuration -> Currency Settings -> Show Price

when checkbox is selected(= true)
product prices are displayed to all users
no matter if signed in or not.

if checkbox is not selected(= false)
product prices are only displayed to users
who are currently signed in.

####### Tested for Versions ####################################
spree 2.3 on rails 4.1.4

####### installation ####################################
standard installation as gem from githunb

put this line at the end of you application's Gemfile:

gem 'spree_price_show', :git => 'git://github.com/ranxero/spree_price_show', :branch => 'master'

then run following command from inside your application folder:
bundle install

by default product prices get displayed for every user.
to only show prices to users who have signend in
log into admin -> configuration -> general configuration curreny settings -> show price
and remove the mark from the checkbox and update the page.

on the frontend product spirces will no be visible anymore to
users who are not signed in.

####### de-installation ####################################
gem cleanup spree_price_show
gem uninstall spree_price_show

then remove Genfile.lock if exists
then remove this line
gem 'spree_price_show', :git => 'git://github.com/ranxero/spree_price_show', :branch => 'master'
from the end of you Gemfile
then run:
bundle install

you might will have to restart the server

spree_price_show's People

Contributors

ranxero avatar kronn avatar

Watchers

James Cloos avatar Ekaterina Belinska avatar

Forkers

piktur

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.