|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Re: Flat Rate ShippingAh, thanks. I changed it. However, I am getting the following error:
Traceback (innermost last):Any ideas?
2009/7/1 danielle davout <danielle.davout@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to getpaid-dev@... To unsubscribe from this group, send email to getpaid-dev+unsubscribe@... For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flat Rate Shippingin my checkout.py I've got now class CheckoutController(OriginalCheckoutController): conditions = {'checkout-select-shipping': 'checkShippableCart'} steps = ['checkout-address-info', 'checkout-review-pay'] # no more 'checkout-select-shipping' was # steps = ['checkout-address-info', 'checkout-select-shipping', 'checkout-review-pay'] as I have not to select the shipping, my customers have no choice although I had before the form presented without error On Fri, Jul 3, 2009 at 7:45 AM, Hannes Calitz<hannesc@...> wrote: > Ah, thanks. I changed it. However, I am getting 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 > AttributeError: getRates > > Any ideas? > > 2009/7/1 danielle davout <danielle.davout@...> >> >> in my rates.py I use >> from getpaid.flatrateshipping.flatrate import FlatRateShippingAdapter >> FRSRA = FlatRateShippingAdapter(context) >> FRSRA.settings.flatrate_option = FLATRATE_OPTION >> >> your rates.py has >> flatrate_settings = IFlatRateSettings(context) >> if(flatrate_settings.settings.flatrate_option == "Percentage"): >> >> >> On Wed, Jul 1, 2009 at 6:37 AM, Hannes Calitz<hannesc@...> wrote: >> > What I don't understand though, is that in the end, my settings class is >> > implemented correctly (seeing as yours works). I simply do not get why I >> > am >> > getting a 'Could not adapt' error. >> > >> > 2009/6/30 danielle davout <danielle.davout@...> >> >> >> >> 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<hannesc@...> >> >> 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 <danielle.davout@...> >> >> >> >> >> >> > 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<hannesc@...> >> >> >> 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 <danielle.davout@...> >> >> >> >> >> >> >> >> 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 <oggers@...>: >> >> >> >> > 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 <hannesc@...> >> >> >> >> >> >> >> >> >> >> 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 getpaid-dev@... To unsubscribe from this group, send email to getpaid-dev+unsubscribe@... For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flat Rate ShippingI finally got Flat Rate shipping working. Thank you to everyone for the help and support.
2009/7/3 danielle davout <danielle.davout@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to getpaid-dev@... To unsubscribe from this group, send email to getpaid-dev+unsubscribe@... For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flat Rate ShippingSo perhaps I spoke to soon.
Everything works perfect except for one thing. When checking out, flaterate.getCost (http://pastie.org/535446) grabs the default values from interfaces.py (http://pastie.org/535447) instead of the values saved in the admin section. Why could this be happening? Danielle, I think you'll be able to help, as I have been using a lot of the code you sent through to me. Thanks Hannes 2009/7/6 Hannes Calitz <hannesc@...> I finally got Flat Rate shipping working. Thank you to everyone for the help and support. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to getpaid-dev@... To unsubscribe from this group, send email to getpaid-dev+unsubscribe@... For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flat Rate ShippingOn Mon, Jul 6, 2009 at 11:32 AM, Hannes Calitz<hannesc@...> wrote: > So perhaps I spoke to soon. > > Everything works perfect except for one thing. When checking out, > flaterate.getCost (http://pastie.org/535446) grabs the default values from > interfaces.py (http://pastie.org/535447) instead of the values saved in the > admin section. > > Why could this be happening? > > Danielle, I think you'll be able to help >>> In my case I don't let choose the client a service and consequently I don't use the step "checkout-select-shipping" so I have just put MY choice in cart class CartItemTotals( OriginalCartItemTotals ): def getShippingCost( self ): # no choice of service_code by client service_code = 'mine.01' #self.request.get('shipping_method_code') --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to getpaid-dev@... To unsubscribe from this group, send email to getpaid-dev+unsubscribe@... For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flat Rate ShippingRight, so I think I figured out why the shipping is only picking up the defaults in the interfaces.py file, and not reading the values I save in the shipping backend. I think there's a problem in my browser/admin.py file (I could be completely off the mark though). Unfortunately I have no idea what it is.
Now, this would not be a problem if I only ran one shop from the server, but the truth is that there will be about 6 running on the same machine, so the default values will not work as every client will have to set there own shipping costs. I have uploaded the entire product to http://www.opennetworks.co.za/getpaid.flatrateshipping2.tar.gz If anyone could have a look at it, I would be much obliged. Thanks Hannes 2009/7/6 danielle davout <danielle.davout@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to getpaid-dev@... To unsubscribe from this group, send email to getpaid-dev+unsubscribe@... For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flat Rate Shippingcan't you have several shipping methods with a default service of the same code ? On Tue, Jul 7, 2009 at 8:48 AM, Hannes Calitz<hannesc@...> wrote: > Right, so I think I figured out why the shipping is only picking up the > defaults in the interfaces.py file, and not reading the values I save in the > shipping backend. I think there's a problem in my browser/admin.py file (I > could be completely off the mark though). Unfortunately I have no idea what > it is. > > Now, this would not be a problem if I only ran one shop from the server, but > the truth is that there will be about 6 running on the same machine, so the > default values will not work as every client will have to set there own > shipping costs. > > I have uploaded the entire product to > http://www.opennetworks.co.za/getpaid.flatrateshipping2.tar.gz > > If anyone could have a look at it, I would be much obliged. > > Thanks > Hannes > > 2009/7/6 danielle davout <danielle.davout@...> >> >> On Mon, Jul 6, 2009 at 11:32 AM, Hannes Calitz<hannesc@...> wrote: >> > So perhaps I spoke to soon. >> > >> > Everything works perfect except for one thing. When checking out, >> > flaterate.getCost (http://pastie.org/535446) grabs the default values >> > from >> > interfaces.py (http://pastie.org/535447) instead of the values saved in >> > the >> > admin section. >> > >> > Why could this be happening? >> > >> > Danielle, I think you'll be able to help >>> >> I would be happy to ... >> In my case I don't let choose the client a service and consequently I >> don't use the step "checkout-select-shipping" >> so I have just put MY choice in cart >> >> class CartItemTotals( OriginalCartItemTotals ): >> >> def getShippingCost( self ): >> # no choice of service_code by client >> service_code = 'mine.01' #self.request.get('shipping_method_code') >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to getpaid-dev@... To unsubscribe from this group, send email to getpaid-dev+unsubscribe@... For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Flat Rate ShippingAs a temporary fix, yes that would work. I have actually not thought of that. Thanks.
I would still like to sort this problem out though. It would be nice not having to load multiple shipping methods, but only have one where the clients can simply enter the required rate in the backend. On this note, I finally got my hands on a decent IDE (WingIDE) which means I can now actually debug. w00t!!1 xD I had a closer look at what is happening behind the seens, and the line temp_settings = IFlatRateSettings(context) in my rates.py (http://pastie.org/538153) file is throwing an attribute exception. Now this could be because of a faulty interfaces.py (http://pastie.org/538158), but to be honest, I have absolutely no idea why it is doing it. 2009/7/7 danielle davout <danielle.davout@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to getpaid-dev@... To unsubscribe from this group, send email to getpaid-dev+unsubscribe@... For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
| < Prev | 1 - 2 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |