hi all, i'm new to satchmo and am looking to modify it to handle this shipping scenario: - some products cannot be shipped outside of city X. Let's calls one such item product A. this is made clear on the product page - if the user adds that product to their cart, when they go to checkout and give us their address, i don't even want to offer any shipping options if i know they have product A and are not in city X. i want to provide a gentle reminder "Sorry, product A cannot be shipped outside city X."
so, one way i see to do this is to simply define the "valid" function in a custom Shipper class. but this seems quite annoying -- what if i want to use a number of standard shipper classes, do i need to inherit from them to simply add this one check in each of them? that doesn't seem right. really what i want to do is override BaseShipper for my store to define "valid" as stated above. anyone have recommendations on the best way to proceed? alternatively, i see the property "is_shippable" on products, but this looks to be a boolean true/false, whereas i would really want to define a more complicated predicate that is based on user location. thanks for suggestions! omar -- 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.
