Hi Josh, I think you misunderstand. I wanna remove billing fields, not shipping fields, for my situation here, shipping fields with additional instruction field is enough.
And I just have a try to remove the div you mentioned, then, It keeps posting errors when press next button although I cannot find where is wrong I filled in. 在 2014年8月25日星期一UTC+8下午10时34分11秒,Josh Cartmell写道: > > Hey Wesley, try removing this <div id="shipping_fields"> from the shipping > fields. That class is hidden by default and there is some logic that shows > it under certain circumstances. > > My understanding is that you want it always visible. > > > On Mon, Aug 25, 2014 at 7:31 AM, Wesley <[email protected] <javascript:>> > wrote: > >> 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] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.
