Coder Social home page Coder Social logo

silvershop / silvershop-comparison Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 6.0 63 KB

Submodule for the SilverStripe shop to allow comparing products side-by-side. Also introduces a model for detailed specifications.

License: BSD 2-Clause "Simplified" License

PHP 88.56% JavaScript 1.44% Scheme 10.00%

silvershop-comparison's People

Contributors

antonythorpe avatar jedateach avatar mikenuguid avatar rvxd avatar wilr avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

silvershop-comparison's Issues

Allowing features in multiple groups

is there any reason why you didn't allow features to be in multiple groups. It seems crazy to create 2 features exactly the same just to be able to assign them to 2 separate groups? Or am i missing something?

Feature value types

Features could be assigned one of a few types:

  • boolean - eg: yes/no
  • float - eg: 124.44
  • int - eg: 325
  • enum - eg: snapdragon 1.5ghz

This selection can help with entering and presenting data.

Regarding presentation, the value could be wrapped in a Varchar, Boolean, or Float field ...relative to which value type the feature has.

Not yet compatible with SS4

It seems this module it not yet updated for SS4.

ie. the class Feature has the old style class references:

`

private static $has_many = array(
"Products" => "Product_Feature"
);

private static $has_one = array(
    "Group" => "FeatureGroup"
);

private static $belongs_many_many = array(
    "Product" => "Product"
);`

Add module to scrutinizer

Could you please add the module to scrutinizer? https://scrutinizer-ci.com/g/new. We're keeping track of all modules we use on our contributions dashboard (github-dashing.herokuapp.com), and I've added scrutinizer quality and coverage scores there. Doesn't require any config, just four clicks. You'll have to click "Schedule inspection" for the first run, after that it should kick off automatically on commits.

There's banners you can copy paste into your README if you want. Also, if you feel like it, you could also add me as a collaborator :) There's a "Add collaborators to your repository" option on the homepage.

We're experimenting with a more fine tuned config, including code coverage running on travis, but that's not really to roll out yet (https://github.com/stojg/silverstripe-timeline). Happy to hear feedback and get help of course :)

Better CMS editing

Allow entering arbitrary values, instead of needing to predefine them.
Use a ajax lookup field when entering values, so that we can re-use existing data. This shouldn't apply to numeric and boolean features.

Fix SS4 install

Running composer require silvershop/comparison on an SS4 site installs an incompatible ^1.0 version, because:

  • The 1.0.0 tag requires silvershop/core: *
  • There's no released version of the module targeting silvershop/core: ^3

Running composer require silvershop/comparison dev-master works, but requires knowing about the problem and how to fix it - otherwise you just get errors about DataExtension not being a valid class which take time to figure out.

If it's stable, could we get a v2.0, and update the 1.0 line to target silvershop/core <3?

I'd make the pull requests, but there's only a tag for the older version, and I can't make releases anyway.

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.