indeed my interfaces.py looks very different , I"e got
class IMyRatesServiceSettings(interface.Interface):
"""
My Rates Service Options
"""
services = schema.List(title = _(u"My Services"),
required = True,
default = [],
description = _(u"The services to offer in
your store."),
value_type =
schema.Choice(title=u"my_services_choice",
vocabulary=MY_SHIPPING_SERVICES))
where
MY_SHIPPING_SERVICES = SimpleVocabulary([
SimpleTerm('01', 'next-day-air', _(u' Next Day Air')),
SimpleTerm('02', '2nd-day-air', _(u' 2nd Day Air')),
SimpleTerm('03', 'ground', _(u' Ground')),])
On Tue, Jun 30, 2009 at 7:13 AM, Hannes Calitz<[email protected]> wrote:
> Hey there guys.
>
> I am still having trouble with this one. I had a look at Danielle's rates.py
> and changed mine accordingly. However I am getting the following error:
> http://paste.plone.org/28723
>
> From the error, I got that the error is in my rates.py file. The file looks
> as follows (error line highlighted): http://paste.plone.org/28725
>
> I don't think the error is there however. I think the error lies in my
> iterfaces.py file (http://paste.plone.org/28726).
>
> If anyone could have look, I would really appreciate it.
>
> Thanks
> Hannes
>
> 2009/6/19 danielle davout <[email protected]>
>>
>> > What I require is some way of just charging a flat fee for any order to
>> > be
>> > shipped to anyone. As the client will only be shipping locally, he
>> > decided
>> > to just charge a single amount for every order.
>> I 've managed at last to have it working with in the cart.py of my
>> product :
>>
>> from Products.PloneGetPaid.browser.checkout import getShippingMethod
>>
>> class CartItemTotals( OriginalCartItemTotals ):
>>
>> def getShippingCost( self ):
>> # no choice of service_code by client
>> service_code = 'mine.01' #self.request.get('shipping_method_code')
>> method = getShippingMethod( self, service_code )
>> if method is None:
>> return 0
>> return method.cost
>>
>> and the same rates.py that I've sent previously as a attached file
>>
>> in my overrides.zcml I've put accordingly
>> <adapter
>> for="getpaid.core.interfaces.IShoppingCart"
>> provides="getpaid.core.interfaces.ILineContainerTotals"
>> factory=".browser.cart.CartItemTotals"
>> />
>>
>>
>>
>>
>>
>> On Fri, Jun 5, 2009 at 10:23 AM, Hannes Calitz<[email protected]> wrote:
>> > What I require is some way of just charging a flat fee for any order to
>> > be
>> > shipped to anyone. As the client will only be shipping locally, he
>> > decided
>> > to just charge a single amount for every order.
>> >
>> > Flat Rate shipping seemed like the solution, but alas, it doesn't work.
>> > :(
>> >
>> > 2009/6/5 danielle davout <[email protected]>
>> >>
>> >> Do you make a difference between shipment and shipping ?
>> >> shipping being related to a cart (as a collection of items to be
>> >> shipped to anybody, anywhere), shipment to an order (labelled goods to
>> >> be received somewhere by somebody that would be charged for); indeed
>> >> how can you price a shipment if you don't know the destination of the
>> >> goods (if the client did not give the necessary informations in
>> >> "completing a bit" an order?)
>> >> Why in cart.py shipping and shipment are mixed ?
>> >> def getShippingCost( self ):
>> >> if not interfaces.IShipment.providedBy( self ):
>> >> return 0
>> >> return decimal.Decimal( str( self.shipping_cost ) )
>> >> I'm really confused...
>> >> 2009/6/4 Juan Carlos Coruña <[email protected]>:
>> >> > I had the same problem and didn't found the solution. some people
>> >> > already
>> >> > reported this.
>> >> >
>> >> > I tried to add a plugin to getpaid.flatrateshipping in order to get
>> >> > the
>> >> > config panel, without success.
>> >> >
>> >> > Finally, I decided to go with IShippingRateService (look at
>> >> > getpaid.ups
>> >> > for
>> >> > an example) instead of IShippingMethod.
>> >> >
>> >> > 2009/6/4 hannesc <[email protected]>
>> >> >>
>> >> >> So with the payment processor I was working on, finally completed, I
>> >> >> moved over to the shipping. I want to use flat rate shipping for
>> >> >> now.
>> >> >> When I install it however, there is no way of setting the values for
>> >> >> it, and even when I purchase a shippable object, the shipping is
>> >> >> still
>> >> >> 0 on checkout.
>> >> >>
>> >> >> I started looking around, and I found that the Flat Rate Shipping
>> >> >> has
>> >> >> no config page.
>> >> >>
>> >> >> My question is this: Has anyone successfully used flat rate shipping
>> >> >> on GetPaid, and if so, how?
>> >> >>
>> >> >> Thanks guys
>> >> >>
>> >> >
>> >> >
>> >> > >
>> >> >
>> >>
>> >>
>> >
>> >
>> > >
>> >
>>
>>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"getpaid-dev" 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/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---