Reward Point System

10 views
Skip to first unread message

Dan

unread,
Jul 17, 2011, 7:31:47 AM7/17/11
to Satchmo users
Hi

Does anyone know of a reward point app/plugin for Satchmo?

If I need to build one any ideas on the best way to hook it into the
system??

Thanks a lot.

-Dan

Nan

unread,
Jul 17, 2011, 10:36:27 PM7/17/11
to Satchmo users

Satchmo has an extensive set of signals[1] that would be a good place
to start looking in terms of hooking your plugin into the system.

[1] http://www.satchmoproject.com/docs/dev/signals.html

Dan

unread,
Jul 20, 2011, 11:57:08 PM7/20/11
to Satchmo users
Thanks, I have had a look at the signals and it seems easy to get
customer points from products they have ordered.

However allowing a customer to redeem points during checkout would
seem to be a very complex process and it would be great if someone had
some insight on the best way to do this.

1 - Have rewards points as a payment module. However for part payments
I doubt its easily possible to have a customer semi pay with 2
different modules?
2 - Override payment forms and make redeeming points act like
discounts does at the moment?

What's the best way to do this?

Thanks

Nan

unread,
Jul 22, 2011, 11:27:13 AM7/22/11
to Satchmo users
Unfortunately, a lot of the price calculation and output is fairly
hardwired in. You may be forced to fork.

Dan

unread,
Jul 26, 2011, 4:32:01 AM7/26/11
to Satchmo users
Hi Can any Satchmo developers comment on this, is possible to write a
reward points plugin (it's a pretty standard feature for many stores)
and what's the best way to go about it?

I don't really want to keep forking it each time I need some small
feature, I already had to fork it once to add the option to have a
payment fee. And BTW is it possible for me to get that payment fee
code back into the main branch?

Dan

unread,
Jul 27, 2011, 12:33:18 AM7/27/11
to Satchmo users
Anyone have any ideas on this issue?

I have already made an app that will store reward point transactions,
allocate x amount of points for a customer signup, add % of an order
as points after an order is completed.

I am now struggling to find the best way to allow the customer to
redeem their points during the checkout process.

Any tips and hints are greatly appreciated!!!

Thank you

Nan

unread,
Jul 27, 2011, 9:25:51 AM7/27/11
to Satchmo users

Only idea I have without forking is to monkey-patch
Order.force_recalculate_total and override a bunch of templates. I do
think that that's a place where Satchmo needs a few more hooks for
custom calculation.
Message has been deleted

Kevin Harvey

unread,
Jul 27, 2011, 11:11:09 AM7/27/11
to satchm...@googlegroups.com
Dan, have you looked at the signals in satchmo_store.shop.signals? You could probably use one of the signals in there to fire your code. https://bitbucket.org/chris1610/satchmo/src/8d05533bdfb6/satchmo/apps/satchmo_store/shop/signals.py

I haven't done this in any version of Satchmo past 0.9-pre, but the principals should be the same. The code in your rewards app views might look like this:

from satchmo_store.shop import signals
from threaded_multihost import threadlocals

# import other stuff

def reward_point_listener(signal, **kwargs):
    # here are some helpful variables
    user = threadlocals.get_current_user()
    cart = kwargs['cart']

    # do some stuff, like update your
    # rewards point model, send an email, etc.

# set the listener to fire when Satchmo sends the
# order_success signal (use any signal in
# satchmo_store.shop.signals)

signals.order_success.connect(reward_point_listener)

Dan

unread,
Jul 29, 2011, 3:26:06 AM7/29/11
to Satchmo users
Hi thanks for your reply, I am using the signals to add points to the
customer account just struggling with the checkout process and
allowing customers to redeem their points...


On Jul 28, 12:11 am, Kevin Harvey <kchar...@gmail.com> wrote:
> Dan, have you looked at the signals in satchmo_store.shop.signals? You could
> probably use one of the signals in there to fire your code.https://bitbucket.org/chris1610/satchmo/src/8d05533bdfb6/satchmo/apps...

Tomas Neme

unread,
Jul 29, 2011, 8:42:50 AM7/29/11
to satchm...@googlegroups.com
A custom payment method app?
Enviado desde il mio orto
-----Mensaje original-----
De: Dan
Enviados: 07/29/2011 04.26.06
Asunto: Re: Reward Point System

--
You received this message because you are subscribed to the Google Groups "Satchmo users" group.
To post to this group, send email to satchm...@googlegroups.com.
To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.


lifewithryan

unread,
Jul 29, 2011, 9:00:31 AM7/29/11
to satchm...@googlegroups.com
Can the customers choose any number of their points to cash in or do they use them all during checkout? Also, do the points have a specific dollar value?

My thought was you could have a context processor (or maybe even a template tag) that kicks in on the checkout page that checks to see if the user has points to use, do the math and subtract the total from the price... But I may be way off base here as I've not been following this thread and it's been a long time since I've worked with satchmo.

Sent from my iPod

Dan

unread,
Jul 30, 2011, 8:49:43 AM7/30/11
to Satchmo users
The app should have the option for a customer to be-able to redeem x
amount of points, if it's not the total payable then they should be-
able to pay the remainder using a selected payment method.

Points have a specific dollar value configured in settings.

I don't think this can be done using a custom payment method.


On Jul 29, 10:00 pm, lifewithryan <lifewithr...@gmail.com> wrote:
> Can the customers choose any number of their points to cash in or do they use them all during checkout?  Also, do the points have a specific dollar value?
>
> My thought was you could have a context processor (or maybe even a template tag) that kicks in on the checkout page that checks to see if the user has points to use, do the math and subtract the total from the price... But I may be way off base here as I've not been following this thread and it's been a long time since I've worked with satchmo.
>
> Sent from my iPod
>
> > For more options, visit this group athttp://groups.google.com/group/satchmo-users?hl=en.

lifewithryan

unread,
Jul 30, 2011, 9:24:31 AM7/30/11
to satchm...@googlegroups.com
Okay...what if:

You create a template tag that is responsible for drawing the checkout button. This tag would inspect the current user and see if they points to redeem. If so, rather than returning a link to the checkout, it would return a link to you "redeem points wizard" which would have them select the number of points to redeem. Take those points, do the math, subtract the total from the cart and forward them to the checkout.

Just a top of my head sort of thought...

Sent from my iPod

Reply all
Reply to author
Forward
0 new messages