What do you guys think about using smart_attr to get the product
weight for the USPS shipping module? It works better for me since I
don't have to worry about entering the weight for all the product
color variations.


shipping/modules/usps/shipper.py:
213,214c213,214
<             if item.product.weight:
<                 weight += item.product.weight * item.quantity
---
>             if item.product.smart_attr('weight'):
>                 weight += item.product.smart_attr('weight') * item.quantity

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