> this leaves values like the billing country undefined

No, much easier solution is possible. You should change the checkbox
"both adresses are same" to be hidden and checked.

<input type="checkbox" name="copy_address" id="id_copy_address" />

to

<input type="hidden" name="copy_address" id="id_copy_address"
checked="checked" />

Make hidden all following text boxes, but not to delete them. Of
course change the text. I did not tested it.

> ... look at making the billing-address
> logic and the shipping-address logic more easily separable from each
> other and from the rest of the Satchmo logic.

There are sophisticated decision-making conditions for other things
probably US related. It is not easy without knowledge of the purpose
of these conditions and without anything broken. I am not Satchmo
developer, I have only customized something once.

Generally to removing:
In countries with Value Added Tax (VAT - Europe) is the bill address
very important for small part of customers due invoices. I think,
optimal is to make the checkbox visible and checked by default and
other fields hidden by javascript. This is no big refactoring.


On Mar 3, 5:23 pm, Allan Stavely <a...@nmt.edu> wrote:
> I have done this for my own store, and I didn't find it as easy as I
> had hoped.
>
> Ideally, you would just be able to delete this from the template
> shop/checkout/form.html:
>
>      {% block billing-info %}{% include 
> "contact/_contact_info_form_billing.html" %}{% endblock %}
>
> But this leaves values like the billing country undefined, and other
> logic requires the billing country to be present.
>
> I found that I needed to modify some Python code, particularly in
> class ContactInfoForm in the file satchmo_store/contact/forms.py .
> There, the modification (in several places) was to use the default
> country if the the billing country is missing.
>
> I don't need to collect billing information because I use only PayPal
> for payment.  Now that this is a viable option, I suspect that more
> people will want to adopt it.
>
> May I request of the developers that, when you have some spare time
> :-)  to do some refactoring, you look at making the billing-address
> logic and the shipping-address logic more easily separable from each
> other and from the rest of the Satchmo logic, so that either address
> component could more easily be included or omitted separately?
>
> Thanks,
>
>         - Allan
>
> On Wed, 2 Mar 2011, Bin Chen wrote:
> > Hi,
>
> > In current satchmo I can see there is a billing address in the order
> > confirm page(the sample store). Is there any way that I can disable
> > it? I don't need it.
>
> > Thanks.
> > Bin
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Satchmo users" group.
> > To post to this group, send email to satchmo-users@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > satchmo-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/satchmo-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to satchmo-users@googlegroups.com.
To unsubscribe from this group, send email to 
satchmo-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to