Okay... It appears to have been my fault as I did not restart Apache after a change. It is grabbing the description from the description() method after all.
False alarm, sorry! Jason On Jan 13, 2:15 pm, Jason Kotenko <[email protected]> wrote: > Hi, > > I'm trying to tweak what the user sees when they are selecting > shipping options. I am using the Flat Rate Shipping module as a stand- > in for Customer Pick-Up as a shipping option. > > I had no problem setting Tiered Weight shipping to my settings (Want > Xend Courier and Xend Courier (Provincial .Service) in this case). > However, I'd like for "Flat Rate Shipping" to display something > different, like "Customer Pick-Up" or similar. > > See below for my current text that displays on the Pay/Ship screen: > > """ > Please choose your preferred shipping method > > * 0.00PHP : Flat Rate Shipping > Sent via Customer Pick-Up at Outlet arrives approximately 1 > business day. > * 200.00PHP : Xend Courier > Sent via Xend Courier (Provincial Service) arrives approximately > 4-6 Business Days. > """ > > I can't find where the "Flat Rate Shipping" is coming from. I see on > the templates/shipping/options.html template, this: > > """ > {% load i18n %} > {% load satchmo_currency %} > {% if default_view_tax %}{% load satchmo_tax %}{% endif %} > {% if default_view_tax %}{{ taxed_shipping_price }} {{ shipping_tax }} > {% else %}{{amount|currency}}{% endif %} : {{ description }} > <br> > {% blocktrans %}Sent via {{ method }} arrives approximately > {{ expected_delivery }}.{% endblocktrans %} > <hr> > """ > > It appears that the culprit is {{ description }}. However, I am > having trouble figuring out what variable that is deriving from in the > Flat module. My /shipping/modules/flat/shipper.py has this: > > """ > def description(self): > """ > A basic description that will be displayed to the user when > selecting their shipping options > """ > return _("Pick-Up at Outlet") > """ > > Which appears to be displaying correctly in the place where the > {{ method }} variable is in the options.html template. However, I > want to manipulate what comes out in the {{ description }} variable > for the Flat Rate option. > > One obvious solution is to make {{ description }} into {{ method }} > but you may note that this will screw up my zones for the tiered > weight shipping method, which I don't want. > > Any ideas? > > Thanks, > Jason -- 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.
