Hi guys,
I got one question here regarding checkout process.
I see there is one option SHOP_PAYMENT_STEP_ENABLED that I can remove
payment step by setting this guy to False.
Then, I wanna disable billing details for the first step, i.e. only display
shipping details, additional instructions.
I search the docs and didn't find a option settings to archieve this. I
there is one, could you please tell me here?
So, I copied cartridge code and do some modification.
For example:
1.billing_shipping.html
change some block to here:
<!--fieldset>
<legend>{% trans "Billing Details" %}</legend>
{% fields_for form.billing_detail_fields %}
</fieldset-->
<fieldset>
<legend>{% trans "Delivery Details" %}</legend>
<!-- {% fields_for form.same_billing_shipping_field %} -->
<div id="shipping_fields">{% fields_for form.shipping_detail_fields
%}shit</div>
{% fields_for form.additional_instructions_field %}
{% fields_for form.remember_field %}
</fieldset>
re-run server, no Billing Details any more, however, there is also no any
other field, saying, shipping detailed fields,additional instruction field
.etc
2.then, change OrderForm class:
class Meta:
model = Order
fields = ([f.name for f in Order._meta.fields if
#f.name.startswith("billing_detail") or
f.name.startswith("shipping_detail")] +
["additional_instructions", "discount_code"])
you see I comment the line related to billing detail.
unfortunately, the same issue as above...
So, what should I do here? any easy way?
Thanks.
Wesley
--
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.