OK, so I got the admin part working. Now just to get the actual
shipping calculated.
When checking out, I get the following error:
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.PloneGetPaid.browser.checkout, line 353, in __call__
Module getpaid.wizard._wizard, line 38, in __call__
Module getpaid.wizard._wizard, line 28, in update
Module getpaid.wizard._wizard, line 263, in update
Module Products.PloneGetPaid.browser.checkout, line 743, in update
Module Products.PloneGetPaid.browser.checkout, line 729, in
setupShippingOptions
Module getpaid.flatrateshipping2.rates, line 33, in getRates
AttributeError: 'InterfaceClass' object has no attribute
'flatrate_option'
I had a look at the files, and I can't quite figure out what is wrong:
getpaid.flatrateshipping2.rates looks as follows:
http://paste.plone.org/28429
The highlighted line is where the problem occurs. I went and had a
look, but *sigh* I don't know what the heck is wrong.
getpaid.flatrateshipping2.interfaces looks as follows:
http://paste.plone.org/28430
There is probably a simple solution to my problem, but I don't know
what it is. Anyone have any ideas?
Thanks
Hannes
On Jun 10, 7:26 am, Matt Barkau <
rmat...@gmail.com> wrote:
> +1
> Also, can anyone explain the syntax of context.context, in vocabularies.py
> ?:
> def ShippingMethods( context ):
> adapters = component.getAdapters( (context.context,),
> interfaces.IShippingMethod )
> Thanks!
>