ship/bill page glitches

13 views
Skip to first unread message

allan

unread,
Feb 3, 2011, 1:51:27 PM2/3/11
to Satchmo users
Hello all,

I'm observing some unfriendly behavior on the checkout ship/bill page.

1. My default country is the USA. So the State/Province menu shows
US states. If I use the Country menu and select Australia or Canada,
I expect the State/Province
menu to show the appropriate states or provinces for that country.
Instead, I need to click Continue, get the page back with an error
message, and THEN I see the correct list of states or provinces. Is
this a Satchmo bug, or have I got something set wrong?

2. Similarly, if I check the "Shipping same as billing" box, I don't
see anything happen then. I'd expect to see either the shipping
fields filled in from the billing fields, or (better) the billing
fields go away, and come back if I uncheck the box. Instead, the
billing fields stay as they were. As a user, I'm uncertain whether I
still need to fill them in or not. And if I have an error in one of
the billing fields, the eror message shows up in both sections,
suggesting that I need to fix the value in both places!

Is the problem that Satchmo isn't capable of responding to changes in
menu selections and box checks immediately?

Chris Moffitt

unread,
Feb 3, 2011, 3:09:07 PM2/3/11
to satchm...@googlegroups.com
What version of Satchmo are you using?

-Chris


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


Allan Stavely

unread,
Feb 3, 2011, 3:12:22 PM2/3/11
to satchm...@googlegroups.com

Tip circa October 9. Has this behavior been fixed since then?

- Allan

>> satchmo-user...@googlegroups.com<satchmo-users%2Bunsu...@googlegroups.com>

Chris Moffitt

unread,
Feb 3, 2011, 3:19:55 PM2/3/11
to satchm...@googlegroups.com
No, the changes we made for the javascript to support your use case were made prior to October.

I am not sure why you are seeing that error.

-Chris

arlolra

unread,
Feb 3, 2011, 3:50:04 PM2/3/11
to satchm...@googlegroups.com
does your browser have javascript turned off?
is the site failing to load any of the scripts on that page?

open a js debugger and look for errors
or check your request logs for 404s


Allan Stavely

unread,
Feb 3, 2011, 4:18:12 PM2/3/11
to satchm...@googlegroups.com

Hmm, the 404 suggestion may lead us somewhere. In host.access.log I
have a number of lines that look like

... "GET /static/js/jquery-1.4.2.js HTTP/1.1" 404 1782 ...

In my /static/js/ directory I have no file jquery-1.4.2.js .
Other files such as /static/js/jquery.form.js are there and
apparently get served OK.

- Allan

Chris Moffitt

unread,
Feb 3, 2011, 5:45:07 PM2/3/11
to satchm...@googlegroups.com
You should copy the correct files into your static dir.

Here's what it should look like - https://bitbucket.org/chris1610/satchmo/src/f762f5a91b0a/satchmo/static/js/

-Chris

Allan Stavely

unread,
Feb 3, 2011, 6:05:54 PM2/3/11
to satchm...@googlegroups.com

Yes! That solved the problem. Somehow my static/ directory had a
jquery.js but no jquery-1.4.2.js .

Many thanks, Chris and arlolra!

- Allan

Allan Stavely

unread,
Feb 4, 2011, 12:15:28 PM2/4/11
to satchm...@googlegroups.com

I found that the root cause of my problem was that I hadn't copied the
new static/js directory to my store the last time I upgraded my
Satchmo from the tip. My bad, but just as a suggestion...

As a matter of directory organization, should those files be in my
store directory at all? Couldn't the js files work like the template
files: default versions live in the installation, and your store
directory contains only the files that override the default versions?

In my case, I haven't customized any of the js files, so my static/js
directory could then be empty.

Similarly, perhaps, for the other directories in static/ .

Thanks again, folks,

- Allan

Alex Robbins

unread,
Feb 4, 2011, 1:25:48 PM2/4/11
to satchm...@googlegroups.com
If you can hold out for a little while longer, django 1.3 is going to
have a fix for this sort of thing:

http://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/

Alex

Allan Stavely

unread,
Feb 4, 2011, 2:34:13 PM2/4/11
to satchm...@googlegroups.com

Yes, that looks like it will help. Sure, I'll wait! Thanks, Alex!

- Allan

Reply all
Reply to author
Forward
0 new messages