Giter Club home page Giter Club logo

solidus_virtual_gift_card's Introduction

Solidus - Virtual Gift Card

CircleCI

A virtual gift card implementation for Solidus.

  • Allows setup of virtual gift card products that get unique codes upon purchase.
  • The virtual gift card codes can be used to add store credit to a user's account.

Installation

In your Gemfile:

gem "solidus_virtual_gift_card"

Bundle your dependencies and run the installation generator:

bundle install
bundle exec rails g solidus_virtual_gift_card:install

Authorization

For discrete authorization, two permission sets have been added to allow for granular display in the admin.

Spree::PermissionSets::VirtualGiftCardDisplay and Spree::PermissionSets::VirtualGiftCardManagement have been added and can be registered via RoleConfiguration

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your application's integration with this extension you may use its factories. Simply add this require statement to your spec_helper:

require "solidus_virtual_gift_card/factories"

solidus_virtual_gift_card's People

Contributors

adammathys avatar aldesantis avatar allisonlarson avatar antoniobonanno avatar athal7 avatar blocknotes avatar bosskovic avatar brchristian avatar camerond594 avatar cbrunsdon avatar ccarruitero avatar dependabot-preview[bot] avatar exsuzme avatar gmacdougall avatar ikraamg avatar jhawthorn avatar jordan-brough avatar kennyadsl avatar magnusvk avatar mtomov avatar papayaah avatar philbirt avatar plongyear avatar richardnuno avatar senjai avatar spaghetticode avatar waiting-for-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

solidus_virtual_gift_card's Issues

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "codecov":
  In Gemfile:
    solidus_dev_support was resolved to 1.5.0, which depends on
      codecov (~> 0.1.16)

Could not find gem 'codecov (~> 0.1.16)', which is required by gem 'solidus_dev_support', in any of the sources.

Bundler could not find compatible versions for gem "rubocop":
  In Gemfile:
    solidus_dev_support was resolved to 1.5.0, which depends on
      rubocop-performance (~> 1.5) was resolved to 1.6.1, which depends on
        rubocop (>= 0.71.0)

    solidus_dev_support was resolved to 1.5.0, which depends on
      rubocop-rspec (~> 1.36) was resolved to 1.41.0, which depends on
        rubocop (>= 0.68.1)

    solidus_dev_support was resolved to 1.5.0, which depends on
      rubocop (~> 0.76.0)

Bundler could not find compatible versions for gem "solidus_core":
  In Gemfile:
    solidus was resolved to 2.11.0.alpha, which depends on
      solidus_core (= 2.11.0.alpha)

    solidus_auth_devise was resolved to 2.4.0, which depends on
      solidus_core (>= 2.6, < 3)

    solidus_virtual_gift_card was resolved to 0.0.1, which depends on
      solidus_core (>= 2.0.0, < 3)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Zeitwerk compatibility

We have to change decorators in order to be compliant with Zeitwerk, see spec suite failures for more info.

Soldius 1.3

Solidus master now tracks 1.3.0.alpha, the gemspec should be updated to support this

Gift card purchase unavailable?

I installed this extension v1.1.0 with Solidus v1.2, and did not see the ability gift card purchase on the shopping cart. When I installed this extension, the files that are built are only the db migrations and asset files (javascript/spree/backend/all.js and stylesheets/spree/backend/all.css), no html views. However, I able to see the admin functionality to redeem a gift card for a user.

I even restarted the app, but to no avail.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "solidus_core":
  In Gemfile:
    solidus was resolved to 3.1.0.alpha, which depends on
      solidus_core (= 3.1.0.alpha)

    solidus_virtual_gift_card was resolved to 0.0.1, which depends on
      solidus_core (>= 2.0.0, < 3)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

a problem with dependency on solidus frontend

Hi,

in the gemspec there is a dependency on solidus, and solidus includes backend, frontend, core and api.
This is a problem when you do not want frontend gem added.

Would it be possible to replace the dependency on solidus with several dependencies on backend, core, api or whatever the gem depends on, but without frontend, something like here:

https://github.com/Xpitality/solidus_virtual_gift_card/blob/master/solidus_virtual_gift_card.gemspec#L20

Or if you know of any way of not having frontend included from solidus, that would be great too.

Thanks!

Order confirm error in admin

In admin the order confirm page returns this error:

undefined method `gift_cards' for #<Spree::ShippingManifest::ManifestItem:0x00007fe47818a880>

Using solidus-2.10.0

Solidus dependency out of date

Thanks for building this very helpful extension!

Are you still supporting it? Currently the gemspec specifies a dependency on "solidus", "~> 1.2.0", which is a major version out.

I'm wondering if that's deliberate? Do you know if this extension should work with Solidus 2.3?

Many thanks

Update README

Add information about current state of the extension.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "codecov":
  In Gemfile:
    solidus_dev_support was resolved to 1.5.0, which depends on
      codecov (~> 0.1.16)

Could not find gem 'codecov (~> 0.1.16)', which is required by gem 'solidus_dev_support', in any of the sources.

Bundler could not find compatible versions for gem "rubocop":
  In Gemfile:
    solidus_dev_support was resolved to 1.5.0, which depends on
      rubocop-rspec (~> 1.36) was resolved to 1.41.0, which depends on
        rubocop (>= 0.68.1)

    solidus_dev_support was resolved to 1.5.0, which depends on
      rubocop (~> 0.76.0)

Bundler could not find compatible versions for gem "solidus_core":
  In Gemfile:
    solidus was resolved to 2.11.0.alpha, which depends on
      solidus_core (= 2.11.0.alpha)

    solidus_auth_devise was resolved to 2.4.0, which depends on
      solidus_core (>= 2.6, < 3)

    solidus_virtual_gift_card was resolved to 0.0.1, which depends on
      solidus_core (>= 2.0.0, < 3)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Out of stock by default

Hi guys,

I was wondering if a stock location needs to be setup for gift cards? Right now it is sold out unless I put the gift card as backorderable from a stock location. Is it the only way? It should bypass the stock location logic as it is virtual and doesn't need a stock location or isn't it possible?

Would we need a custom splitter like the solidus_digital extension?: https://github.com/solidusio-contrib/solidus_digital/blob/master/app/models/spree/stock/splitter/digital_splitter.rb

Thank you!

Octave

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.