If you can submit a ticket (with a patch if you've got it) and we'll take a
look at it.

-Chris

On Thu, Jan 12, 2012 at 8:56 AM, Mike S <[email protected]> wrote:

> When a user completes an order, the inventory gets deducted twice:
>
> (1) As soon as payment is made, the IPN view
> `payment.modules.paypal.views.ipn` records the payment, causing the
> `satchmo_store.shop.signals.order_success` signal to be sent, causing
> the `satchmo_store.shop.listeners.decrease_inventory_on_sale` listener
> to deduct the sold items from the inventory.
>
> (2) When the user clicks "Return to <site>" on Paypal, the
> `payment.modules.paypal.views.success` view again deducts the sold
> items from the inventory.
>
> This means that the inventory will decrease twice as fast as the items
> in it are already selling.
>
> On a related note, why is the logic that clears the cart in the
> `success` view and not the `ipn` view? What if a user never clicks the
> "Return to <site>" link on Paypal? Clearly his cart should still be
> cleared after his payment goes through...
>
> ~Mike
>
> --
> You received this message because you are subscribed to the Google Groups
> "Satchmo users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/satchmo-users?hl=en.
>
>

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

Reply via email to