Hi all, I wrote an app (productqty) that checks the product added to the cart and it reduces the quantity if it is over the max qty set for that product.( Eg: Limit 3 per customer, customer adds 5 it will be reduced to 3). I have a working app but its not very efficent with large carts.
I tryed to alter the added quantity through these signals: signals.satchmo_cart_add_verify.connect(veto_for_product_qty, sender=None) signals.satchmo_cart_details_query.connect(veto_product_qty, sender=None) But my overwrite got ignored. So I resulted using: signals.satchmo_cart_changed.connect(veto_cart_changed, sender=None) In that listener I loop through the cart-items and make the adjustment. It works great but it has a big overhead if the cart contains many items. I would like to use satchmo_cart_add_verify or satchmo_cart_details_query since they provide the cart-item and prodct. Any help would be appreciated lzantal -- 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.
