> is it possible to print the values of config_register_list in templates?
> I need only to access to
> config = config_get_group('PAYMENT_POSTEPAY')
> inside my confirm.html custom template.
Yes, just store the value in the context before rendering the confirm.html
template.
Im my version, which is a very old one so 'm not sure if the code
is still the same, it would look like:
base_env = {
'PAYMENT_LIVE' : payment_live(payment_module),
'default_view_tax' : default_view_tax,
'ronchi-value' : some value out of config, <<<----- your
data
'order': orderToProcess,
'errors': errors,
'checkout_step2': lookup_url(payment_module,
'satchmo_checkout-step2')}
if extra_context:
base_env.update(extra_context)
context = RequestContext(request, base_env)
return render_to_response(template, context)
> And can I customize the email of the order to send the
user my configuration values?
Yes, simply extend the context of the mail rendering, see an example at
http://dpaste.com/83018/. There the shop name is put into context and used
in the rendering process.
Ginta
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---