vinsol-spree-contrib / spree-loyalty-points Goto Github PK
View Code? Open in Web Editor NEWThis extension adds Loyalty Points for users in Spree.
License: BSD 3-Clause "New" or "Revised" License
This extension adds Loyalty Points for users in Spree.
License: BSD 3-Clause "New" or "Revised" License
After checkout, on order detail page, text should say “N loyalty points will be awarded for this transaction” into your account.
This text should be visible only if user is entitled to earn loyalty points on the basis of the transaction.
When I'm logged in to the backend as a spree admin I can see the settings and payment gateway but I can't see users loyalty point balance value or transactions. If I log in to the storefront as a user I can see the balance and transactions for that particular user. What am I missing?
Running a fresh install of spree version 2.2.stable. I don't see any errors in the logs when I bring up the users account.
Steps:
Bug: No. of LP credited into the User account do not match with the LP mentioned by the Admin. It is crediting less no. of LP into User's account.
First, thanks for this great gem!
Just to share an improvement that could be really useful:
Figure out a customer has 5 loyalty points but the conversion rate of the product he wants to buy is equivalent to 6 loyalty points.
It could be interesting the customer could use its 5 loyalty points and pay the remaining with another payment method (check, cart...)
I don't know if spree allow the use of multiple payment means for the same order...
It would be great to have your point of view on this.
Thanks for your consideration.
Loyalty Points Balance and their equivalent money value should be visible on checkout page even if the method is not selected .
For beginners, it would be nice to explain how to add a cron job for this extension. BTW it is fantastic!
Thanks for a great extension. Will you be adding the spree 2.3 support in the near future?
I see you made changes for 2-2. Is this extension ready for 2-2-stable?
How can I work around this error?
/Users/Mike/.rvm/gems/ruby-2.0.0-p353/gems/spree_loyalty_points-1.1.0/app/models/concerns/spree/order/loyalty_points.rb:4:in `module:Spree': superclass mismatch for class Order (TypeError)
app/models/concerns/spree/order/loyalty_points.rb
module Spree
class Order < ActiveRecord::Base
module LoyaltyPoints
extend ActiveSupport::Concern
Steps:
Bug: There is no information of the LP debited from user account on the basis of this order. Also, a message should be displayed that Admin needs to manually credit LP into User's account.
gem need to be update it with new rails 5.1.5 , no it's not compatible now with 5.1.5 it's compatible with rails 5.0.6 and lower
When can we expect the support the spree 3.0.2?
Is there any quick way to make it comfortable for spree 3.0.2
Rails server logged these warnings:
W, [2018-03-27T18:09:54.706656 #23348] WARN -- : Creating scope :loyalty_points_not_awarded. Overwriting existing method Spree::Order.loyalty_points_not_awarded.
W, [2018-03-27T18:09:54.706758 #23348] WARN -- : Creating scope :with_hours_since_payment. Overwriting existing method Spree::Order.with_hours_since_payment.
W, [2018-03-27T18:09:54.706808 #23348] WARN -- : Creating scope :with_uncredited_loyalty_points. Overwriting existing method Spree::Order.with_uncredited_loyalty_points.
I run:
bundle exec rake spree:loyalty_points:award
rake aborted!
ArgumentError: wrong number of arguments (given 0, expected 1)
with spree-loyalty-points/app/models/concerns/spree/order/loyalty_points.rb
Line 15:
create_credit_transaction(loyalty_points_earned)
Line 32:
uncredited_orders.each do |order|
Line 33:
order.award_loyalty_points
Line 40:
user.loyalty_points_credit_transactions.create(source: self, loyalty_points: points)
Traceback (most recent call last):
from app/models/spree/order_decorator.rb:11:in block (2 levels) in <top (required)>
ArgumentError (wrong number of arguments (given 0, expected 1))
Line 11: scope :with_hours_since_payment, ->(num) { where('
spree_orders.
paid_at < ? ', num.hours.ago) }
from app/models/spree/order_decorator.rb:13:in block (2 levels) in <top (required)>
ArgumentError (wrong number of arguments (given 0, expected 1))
Line 13: scope :with_uncredited_loyalty_points, ->(num) { with_hours_since_payment(num).loyalty_points_not_awarded }
Please confirm this gem does work, or should do something with spree-loyalty-points/app/models/concerns/spree/order/loyalty_points.rb and spree-loyalty-points/app/models/spree/order_decorator.rb
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.