Lot Pricing

1 view
Skip to first unread message

joclek

unread,
Dec 23, 2009, 11:17:36 AM12/23/09
to Satchmo users
I would like to have prices based on a lot size. For example, I want
to sell a product in lots of 10, 25, 50, and 100, having a prices of
$10, $20, $35, and $60. Is there any way to do this? Would I need to
write some kind of custom price module? I only want to have them
available in these quantities.

Alex Robbins

unread,
Dec 24, 2009, 8:46:55 AM12/24/09
to satchm...@googlegroups.com
I imagine you could do this by hooking up a signal handler to the
satchmo_cart_changed signal[1]. On the frontend you only allow people
to add certain amounts. Then if someone tries to cheat and add a
different amount you can catch it by checking in your signal handler
and dropping any items that aren't at the right quantity. You might
also message the user about what happened (and how they shouldn't
tamper with forms).

[1]http://satchmoproject.com/docs/svn/signals.html#satchmo-cart-changed

Hope that helps,
Alex
--
Alex Robbins
5Q Communications, Inc.
http://www.5Qcommunications.com/
alex.r...@5Qcommunications.com
800-747-4214 ext 913 (p)
http://www.ask5q.com/twitter/

> --
>
> 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.
>
>
>

Reply all
Reply to author
Forward
0 new messages