Hello,
Let me explain better. I just need to know if is it possible to change the
order of Order form fields. And...how can I do that?.
At cartridge/shop/templates/shop/billing_shipping.html I can see:
<fieldset>
<legend>{% trans "Billing Details" %}</legend>
{% fields_for form.billing_detail_fields %}
</fieldset>
I need to know how can I change the order of the items of
form.billing_detail_fields.
Thanks,
Marcio
Em sábado, 30 de janeiro de 2016 19:24:00 UTC-2, Márcio Moreira escreveu:
>
> Hello friends,
>
> I need to add a new field (*billing_detail_taxpayer_id*) in shop_order,
> and I need this new field to be shown as the 3rd one on the
> billing/shipping details form, just after first name and last name.
>
> My settings.py received this:
>
> EXTRA_MODEL_FIELDS = (
> ( "cartridge.shop.models.Order.billing_detail_taxpayer_id",
> "CharField",
> ("Taxpayer Id",),
> {"blank": True, "max_length": 80},
> ),
> )
>
> Migrating the database, the new column *billing_detail_taxpayer_id *on
> shop_order table was inserted as the last column (34th column) of the
> table.
>
> But on OrderForm.Meta.fields, the new field is the first on the list. So
> the new field is the first to be shown on billing/shipping details form.
> And I need this field to be shown in the 3rd place on the form, not first.
>
> What is the best way to get this?
>
> Thanks,
> Marcio
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.