Re: Session is forgetting?

2018-03-08 Thread Mike Hostetler
In case anyone is following along... it seems like the cart isn't saved in
the DB. The ID is in the session  but for some reason isn't saved.  I did
put a safeguard around the ID in cache (so cache the cart's ID as well as
store it in the session) and that seems to help but not solve the problem.



On Tue, Mar 6, 2018 at 4:42 PM, Mike Hostetler <m...@squarepegsystems.com>
wrote:

> Not sure if anyone is still on this list but I'll give it a shot...
>
> I still have a customer on Satchmo (they haven't been willing to pay for a
> rewrite to something else). Naturally they have had problems with old TLS
> on their payments provider. I moved them to ActivePython 2.6 and the
> gunicorn server that comes with it. That has TLS 1.2 and works beautifully.
>
> But one in a while, a customer will look at his cart, hit the checkout
> button, and step 1 of checkout says "your cart is empty" and it's only
> obviously not. Restarting gunicorn fixes it.
>
> I looked at the code and it stores the cart in the user session and in
> step 1 gets it back out. So it seems to lose it.
>
> Anyone see this before (with or without Satchmo)? Is something with
> gunicorn causing it to fall out?
>
>
>


-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to satchmo-users+unsubscr...@googlegroups.com.
To post to this group, send email to satchmo-users@googlegroups.com.
Visit this group at https://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/d/optout.


Re: Digest for satchmo-users@googlegroups.com - 1 update in 1 topic

2018-03-07 Thread Mike Hostetler
Nope didn't work. Empty Carts are happening again...

On Wed, Mar 7, 2018 at 9:53 AM, Mike Hostetler <m...@squarepegsystems.com>
wrote:

> Because of the "curiosity" of Satchmo storing checkout information in
> cache, I tossed out memcache long ago and use db cache, so that is not
> volatile. But that was something that I thought of.
>
> I looked how the CartManager worked (because that is what the system is
> using to get the cart from the session) and if the cart isn't in the
> session, it tries to load the cart from the db via the customer. So I
> change the code to always persist the cart when the user is on "/cart".
> I've only tried it this morning but I haven't been able to reproduce it
> since.
>
> So Fingers crossed... but any insights would be valuable.
>
>
>
> On Wed, Mar 7, 2018 at 9:37 AM, Daniel Purcell <danielpurc...@gmail.com>
> wrote:
>
>> Hi Mike,
>>
>> I haven't seen this happen before. Could it be something to do with your
>> cache backend being a little too voliatle? What is your cache backend?
>>
>> On Wed, Mar 7, 2018 at 7:29 AM, <satchmo-users@googlegroups.com> wrote:
>>
>>> satchmo-users@googlegroups.com
>>> <https://groups.google.com/forum/?utm_source=digest_medium=email#!forum/satchmo-users/topics>
>>>  Google
>>> Groups
>>> <https://groups.google.com/forum/?utm_source=digest_medium=email/#!overview>
>>> <https://groups.google.com/forum/?utm_source=digest_medium=email/#!overview>
>>> Topic digest
>>> View all topics
>>> <https://groups.google.com/forum/?utm_source=digest_medium=email#!forum/satchmo-users/topics>
>>>
>>>- Session is forgetting?
>>>
>>> <#m_-8837939718053397445_m_8780811162015218266_m_4413988285660307939_group_thread_0>
>>>- 1 Update
>>>
>>> Session is forgetting?
>>> <http://groups.google.com/group/satchmo-users/t/cba58aa83ce62de4?utm_source=digest_medium=email>
>>> Mike Hostetler <m...@squarepegsystems.com>: Mar 06 04:42PM -0600
>>>
>>> Not sure if anyone is still on this list but I'll give it a shot...
>>>
>>> I still have a customer on Satchmo (they haven't been willing to pay for
>>> a
>>> rewrite to something else). Naturally they have had problems with old TLS
>>> on their payments provider. I moved them to ActivePython 2.6 and the
>>> gunicorn server that comes with it. That has TLS 1.2 and works
>>> beautifully.
>>>
>>> But one in a while, a customer will look at his cart, hit the checkout
>>> button, and step 1 of checkout says "your cart is empty" and it's only
>>> obviously not. Restarting gunicorn fixes it.
>>>
>>> I looked at the code and it stores the cart in the user session and in
>>> step
>>> 1 gets it back out. So it seems to lose it.
>>>
>>> Anyone see this before (with or without Satchmo)? Is something with
>>> gunicorn causing it to fall out?
>>> Back to top
>>> <#m_-8837939718053397445_m_8780811162015218266_m_4413988285660307939_digest_top>
>>> You received this digest because you're subscribed to updates for this
>>> group. You can change your settings on the group membership page
>>> <https://groups.google.com/forum/?utm_source=digest_medium=email#!forum/satchmo-users/join>
>>> .
>>> To unsubscribe from this group and stop receiving emails from it send an
>>> email to satchmo-users+unsubscr...@googlegroups.com.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Satchmo users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to satchmo-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to satchmo-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/satchmo-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Mike Hostetler
> SquarePeg Systems
> http://www.squarepegsystems.com
>



-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to satchmo-users+unsubscr...@googlegroups.com.
To post to this group, send email to satchmo-users@googlegroups.com.
Visit this group at https://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/d/optout.


Re: Digest for satchmo-users@googlegroups.com - 1 update in 1 topic

2018-03-07 Thread Mike Hostetler
Because of the "curiosity" of Satchmo storing checkout information in
cache, I tossed out memcache long ago and use db cache, so that is not
volatile. But that was something that I thought of.

I looked how the CartManager worked (because that is what the system is
using to get the cart from the session) and if the cart isn't in the
session, it tries to load the cart from the db via the customer. So I
change the code to always persist the cart when the user is on "/cart".
I've only tried it this morning but I haven't been able to reproduce it
since.

So Fingers crossed... but any insights would be valuable.



On Wed, Mar 7, 2018 at 9:37 AM, Daniel Purcell <danielpurc...@gmail.com>
wrote:

> Hi Mike,
>
> I haven't seen this happen before. Could it be something to do with your
> cache backend being a little too voliatle? What is your cache backend?
>
> On Wed, Mar 7, 2018 at 7:29 AM, <satchmo-users@googlegroups.com> wrote:
>
>> satchmo-users@googlegroups.com
>> <https://groups.google.com/forum/?utm_source=digest_medium=email#!forum/satchmo-users/topics>
>>  Google
>> Groups
>> <https://groups.google.com/forum/?utm_source=digest_medium=email/#!overview>
>> <https://groups.google.com/forum/?utm_source=digest_medium=email/#!overview>
>> Topic digest
>> View all topics
>> <https://groups.google.com/forum/?utm_source=digest_medium=email#!forum/satchmo-users/topics>
>>
>>- Session is forgetting?
>><#m_8780811162015218266_m_4413988285660307939_group_thread_0> - 1
>>Update
>>
>> Session is forgetting?
>> <http://groups.google.com/group/satchmo-users/t/cba58aa83ce62de4?utm_source=digest_medium=email>
>> Mike Hostetler <m...@squarepegsystems.com>: Mar 06 04:42PM -0600
>>
>> Not sure if anyone is still on this list but I'll give it a shot...
>>
>> I still have a customer on Satchmo (they haven't been willing to pay for a
>> rewrite to something else). Naturally they have had problems with old TLS
>> on their payments provider. I moved them to ActivePython 2.6 and the
>> gunicorn server that comes with it. That has TLS 1.2 and works
>> beautifully.
>>
>> But one in a while, a customer will look at his cart, hit the checkout
>> button, and step 1 of checkout says "your cart is empty" and it's only
>> obviously not. Restarting gunicorn fixes it.
>>
>> I looked at the code and it stores the cart in the user session and in
>> step
>> 1 gets it back out. So it seems to lose it.
>>
>> Anyone see this before (with or without Satchmo)? Is something with
>> gunicorn causing it to fall out?
>> Back to top <#m_8780811162015218266_m_4413988285660307939_digest_top>
>> You received this digest because you're subscribed to updates for this
>> group. You can change your settings on the group membership page
>> <https://groups.google.com/forum/?utm_source=digest_medium=email#!forum/satchmo-users/join>
>> .
>> To unsubscribe from this group and stop receiving emails from it send an
>> email to satchmo-users+unsubscr...@googlegroups.com.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Satchmo users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to satchmo-users+unsubscr...@googlegroups.com.
> To post to this group, send email to satchmo-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/satchmo-users.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to satchmo-users+unsubscr...@googlegroups.com.
To post to this group, send email to satchmo-users@googlegroups.com.
Visit this group at https://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/d/optout.


Session is forgetting?

2018-03-06 Thread Mike Hostetler
Not sure if anyone is still on this list but I'll give it a shot...

I still have a customer on Satchmo (they haven't been willing to pay for a
rewrite to something else). Naturally they have had problems with old TLS
on their payments provider. I moved them to ActivePython 2.6 and the
gunicorn server that comes with it. That has TLS 1.2 and works beautifully.

But one in a while, a customer will look at his cart, hit the checkout
button, and step 1 of checkout says "your cart is empty" and it's only
obviously not. Restarting gunicorn fixes it.

I looked at the code and it stores the cart in the user session and in step
1 gets it back out. So it seems to lose it.

Anyone see this before (with or without Satchmo)? Is something with
gunicorn causing it to fall out?

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to satchmo-users+unsubscr...@googlegroups.com.
To post to this group, send email to satchmo-users@googlegroups.com.
Visit this group at https://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/d/optout.


Re: Next steps for Satchmo

2014-04-28 Thread Mike Hostetler
On Mon, Apr 28, 2014 at 9:12 AM, Chris Moffitt ch...@moffitts.net wrote:

 As everyone knows, it's been a while since I spent much time on Satchmo. I
 recently spent some time getting myself back in the swing of things and
 hope to start making some forward progress with Satchmo. To be clear, I
 still would appreciate any and all efforts to help but wanted to let folks
 know I'm going to start plugging away in the days/weeks/months ahead.


That's good to hear!

 Since I've been out of the loop a while, the biggest thing I would like to
 do is get Satchmo working with Django 1.6. I have made some updates to the
 supporting packages and updated them in PYPI and would like to get a newer
 version of Satchmo out there as well.

 A couple of thoughts I've had:
 - Should we migrate from using PIL to Pillow? It looks like pillow is
 being updated more and is more installable so this seems like a
 straightforward suggestion but I am curious if anyone has any concerns with
 this approach.


+1 . I've used Pillow on a couple (non-Satchmo) projects and it's been
everything I hoped PIL would be -- which is installable yet stable after
installation.


 - I am considering wrapping django-signals-ahoy into Satchmo. It would be
 one less dependency and since it is relatively simple, I don't see the
 harm. Any thoughts here?


That's probably a good idea, since no one has updated it since 2009.
Whatever happened to Bruce anyway?


 - Are there any other watchouts people have after they have started using
 Django 1.6 with respect to Satchmo?

 Finally, I'd appreciate any help with triaging bugs in bitbucket. If you
 have bugs or issues that are still valid, feel free to update tickets.

 Please chime in with thoughts or issues. I'd love to try to get a little
 momentum going again.


I have one thing that has always bugged me getting a Price for a
Product has always been difficult. I can see the current scheme is good for
T-shirt sizes, etc. But can there be a column for base_price, etc so that
people that have one price per item don't have to get another object and
query the database for it? That way, they get the Product and have the
Price.

Anyway, glad you are back.


 Thanks,
 Chris

 --



Mike

 You received this message because you are subscribed to the Google Groups
 Satchmo users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to satchmo-users+unsubscr...@googlegroups.com.
 To post to this group, send email to satchmo-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/satchmo-users.
 For more options, visit https://groups.google.com/d/optout.




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
You received this message because you are subscribed to the Google Groups 
Satchmo users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to satchmo-users+unsubscr...@googlegroups.com.
To post to this group, send email to satchmo-users@googlegroups.com.
Visit this group at http://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/d/optout.


Re: Performance issues solution ?

2014-03-13 Thread Mike Hostetler
David,

I do know that how the replacement parts site is presented isn't typical of
most ecommerce site, but (on the other hand) it's certainly has one of the
largest numbers of parts of any Satchmo site.

I did a lot of research on  Postgres performance. I will say a custom
Django CMS will have a flatter structure than a Satchmo site so certainly
it will be faster.  I would also say that I did a quite a bit of tweaking
on the Postgres server itself and found a little bit of efforts goes a long
way.

I dug into my bookmarks and found the pages that came to my mind:

http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
http://www.postgresql.org/docs/current/static/kernel-resources.html  (this
is probably the most important one).

And this goes to what Arek was talking about:
http://www.askthepony.com/blog/2011/07/django-and-postgresql-improving-the-performance-with-no-effort-and-no-code/

The problems I had with Memcache were on the checkout -- Satchmo
(incorrectly, imho) used cache to store things on checkout and, if you look
how memcache works, it doesn't guarantee that what you just put in the
cache will be there if you ask for it right-away. For my setup, this causes
an occasional problem with people checking out (a big deal, even
occasionally). YMMV.




On Wed, Mar 12, 2014 at 1:40 PM, David Unric dunric...@gmail.com wrote:

  Thanks for your suggestions, guys. Glad to see this forum is not yet dead.

 @LZAntal  I'm aware of these newbie mistakes but it's not this case.
 Debugging mode is disabled, logging is tuned down to INFO level. Even
 reducing to critical makes no difference.

 @Mike Hostetler  Great answer, thanks.Nice site, btw. I'd bet Postgres
 server has an optimal setup and there would be only marginal improvement if
 any. I did tested performance even on powerful machine with postgresql
 running locally. On the same hosting is already running pure Django based
 CMS with ten times greater amount of items and is blazingly fast.
 Good point is about indexes to tables. I did checked for the most
 important models(Product, Category, ProductImage, Price, Discount ...) that
 came to mind are already created. However if you look into template tags,
 filters and some model's methods, you'll miss optimizations like
 select_related or prefetch_related at places where it would be reasonable
 and queries are needlessly doubled or even quadrupled. I see the only way
 to rewrite them myself, however it looks like a quite consuming task I've
 currently no resources to spend.
 As a side note, your linked site has a fair response times, however try to
 add much more details in category templates like basic price, discounted
 price, stock amount, link for direct buy, short description, brand name,
 promotion info etc. and you'll see what I am talking about. I had to reduce
 number of displayed products from 16 to 12 per page to get some so-so
 results. In a database is about 7 500 items only.
 See what workarounds like category menu generator were already
 accomplished - manual caching of category tree.
 Memcached seems to bring some improvements after extensive requests become
 handled but nothing drastical.

 @Arek I need to recheck if our provider does use or allow to use mentioned
 poolers. Thanks for the tips anyway !

  --
 You received this message because you are subscribed to the Google Groups
 Satchmo users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to satchmo-users+unsubscr...@googlegroups.com.
 To post to this group, send email to satchmo-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/satchmo-users.
 For more options, visit https://groups.google.com/d/optout.




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
You received this message because you are subscribed to the Google Groups 
Satchmo users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to satchmo-users+unsubscr...@googlegroups.com.
To post to this group, send email to satchmo-users@googlegroups.com.
Visit this group at http://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/d/optout.


Re: Performance issues solution ?

2014-03-11 Thread Mike Hostetler
I developed and still support a Satchmo site with over 340k products in the
database. The presentation is a little non-traditional but you can see it
here:
http://powerhousetoolparts.com

It runs on Django 1.3, Postgresql, and an older version of Satchmo.

And, I had some performance problems. This is what I did:

   - move Postgres onto a different server. Yes I'm running virtual
   machines (now, in this case, Digital Ocean). Even with (or especially with)
   VPS servers, this is important.
   - Django puts few indexes on the tables. You may manually have to add
   indexes on what Django's ORM is querying on.
   - Tune your Postgres server. The default Postgres package on Ubuntu (for
   example)  is hardly tuned for a production environment. You need to go
   experiment with different settings. I can't find the exact guide I used but
   here is a decent page to get started on

http://samiux.wordpress.com/2009/07/26/howto-performance-tuning-for-postgresql-on-ubuntudebian/

   - caching -- this is important but it's the last step I'd work on. I've
   found using memcache to be problematic with Satchmo, specifically. Now I
   used the database cache . . .yes, I cache my Postgres Queries in a Postgres
   table itself. There are other options, of course, but after I tuned my
   Postgresql server I found that doing the database cache was sufficient.

Let me know how it works out for you. Feel free to contact me off list if
you have more questions.


On Tue, Mar 11, 2014 at 9:27 AM, David Unric dunric...@gmail.com wrote:

 Hello,

 hope I'm not alone who fights with higher response times of deployed
 Satchmo application.
 Current Satchmo-tip running on pro hosting with recent mod-wsgi, memcached
 on top of recent nginx. Django is of 1.4.10 version, psycopg2 2.5.2 for
 connection to Postgresql.

 I've already investigated most of response time ( 95%) is spent in
 database queries, so there is the bottleneck. I've further discovered views
 code of Satchmo is relatively ok but templates tags and filters are
 painfully suboptimal, like `base_price', `discount_price', `sale'. Or some
 of model's path retrieval methods which instead of working with model
 attributes do invoke urlresolvers.

 I'm asking if there is some fork of Sacthmo with some of mentioned
 optimization already done. I can push some of my code fixes and
 enhancements in return.

 Any hints ?

 Thanks.

 --
 You received this message because you are subscribed to the Google Groups
 Satchmo users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to satchmo-users+unsubscr...@googlegroups.com.
 To post to this group, send email to satchmo-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/satchmo-users.
 For more options, visit https://groups.google.com/d/optout.




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
You received this message because you are subscribed to the Google Groups 
Satchmo users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to satchmo-users+unsubscr...@googlegroups.com.
To post to this group, send email to satchmo-users@googlegroups.com.
Visit this group at http://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/d/optout.


Re: Card number required response from Authorize.net even when memcached properly configured

2013-03-29 Thread Mike Hostetler
I'm away from my serves now so I can't tell you exactly how to fix this,
but I did run into it. I think you also have to configure cache the old
way for Satchmo to pick it up. Look at the Django 1.2 docs on caching.

Let me know if it works. If not, I'll look at my setup when I get a chance
to get to my server.
On Mar 28, 2013 9:11 PM, Rob Speed speed@gmail.com wrote:

 Adding a bit more info.

 Satchmo: 0.9.2
 Django: 1.4.5
 Python: 2.7.3
 python-memcached: 1.48

 Here's my test to make sure the cache is working:

 $ manage.py shell
  from django.core.cache import cache
  from time import sleep
  def test():
 ...   cache.set('does_this_work', 'Yes it does!')
 ...   sleep(60 * 4)
 ...   print(cache.get('does_this_work'))
 ...
  test()

 Yes it does!


 My next step is to figure out what they key for the stored number is, then
 decrypting the value and seeing what happens. If that doesn't turn anything
 up I'll be completely lost.

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




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




Re: new install issue w/ South?

2013-02-20 Thread Mike Hostetler
What database are you using?

If PostgreSQL, I bet there is a problem with transactions, so the table
South is trying to change hasn't commited yet, and another transaction has
started.

Does this work in SQLite?


On Wed, Feb 20, 2013 at 11:55 AM, Darren Hollenbeck dar...@softplc.comwrote:

 Doing a new install of Satchmo with South in INSTALLED_APPS from the
 start, I did:

 manage.py syncdb
 manage.py migrate

 got me:
   custom:0001_split
 FATAL ERROR - The following SQL query failed: ALTER TABLE
 product_customproduct_id_seq RENAME TO custom_customproduct_id_seq;
 The error was: relation product_customproduct_id_seq does not exist

   configurable:0001_split
 FATAL ERROR - The following SQL query failed: ALTER TABLE
 product_configurableproduct_id_seq RENAME TO
 configurable_configurableproduct_id_seq;
 The error was: relation product_configurableproduct_id_seq does not exist

 FATAL ERROR - The following SQL query failed: ALTER TABLE
 product_productvariation_id_seq RENAME TO
 configurable_productvariation_id_seq;
 The error was: relation product_productvariation_id_seq does not exist


 I dropped the db (to start over) and did:
 manage.py syncdb --all
 manage.py migrate --all --fake

 Error free.

 I don't see product_customproduct_id_seq nor
 custom_customproduct_id_seq in the database, though (or the other ones
 that had errors related). Everything *seems* to be ok, but it makes me
 nervous.

 What's up with this situation?

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






-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

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




Re: new install issue w/ South?

2013-02-20 Thread Mike Hostetler
The reason I knew about this is because I hit something similar. Here is a
long discussion on a bug I reported to Bitbucket.

https://bitbucket.org/chris1610/satchmo/issue/1256/cant-sync-with-postgresql




On Wed, Feb 20, 2013 at 12:58 PM, Darren Hollenbeck dar...@softplc.comwrote:

 It is PostgreSQL.

 Can't test SQLite at the moment but is there a way to get the desired
 result in PostgreSQL?


 On Wednesday, February 20, 2013 12:30:03 PM UTC-6, Mike Hostetler wrote:

 What database are you using?

 If PostgreSQL, I bet there is a problem with transactions, so the table
 South is trying to change hasn't commited yet, and another transaction has
 started.

 Does this work in SQLite?


 On Wed, Feb 20, 2013 at 11:55 AM, Darren Hollenbeck 
 dar...@softplc.comwrote:

 Doing a new install of Satchmo with South in INSTALLED_APPS from the
 start, I did:

 manage.py syncdb
 manage.py migrate

 got me:
   custom:0001_split
 FATAL ERROR - The following SQL query failed: ALTER TABLE
 product_customproduct_id_seq RENAME TO custom_customproduct_id_seq;
 The error was: relation product_customproduct_id_seq does not exist

   configurable:0001_split
 FATAL ERROR - The following SQL query failed: ALTER TABLE
 product_configurableproduct_**id_seq RENAME TO configurable_**
 configurableproduct_id_seq;
 The error was: relation product_configurableproduct_**id_seq does not
 exist

 FATAL ERROR - The following SQL query failed: ALTER TABLE
 product_productvariation_id_**seq RENAME TO configurable_**
 productvariation_id_seq;
 The error was: relation product_productvariation_id_**seq does not
 exist


 I dropped the db (to start over) and did:
 manage.py syncdb --all
 manage.py migrate --all --fake

 Error free.

 I don't see product_customproduct_id_seq nor
 custom_customproduct_id_seq in the database, though (or the other ones
 that had errors related). Everything *seems* to be ok, but it makes me
 nervous.

 What's up with this situation?

 --
 You received this message because you are subscribed to the Google
 Groups Satchmo users group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to satchmo-user...@**googlegroups.com.
 To post to this group, send email to satchm...@googlegroups.com**.

 Visit this group at 
 http://groups.google.com/**group/satchmo-users?hl=enhttp://groups.google.com/group/satchmo-users?hl=en
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .






 --
 Mike Hostetler
 SquarePeg Systems
 http://www.squarepegsystems.**com http://www.squarepegsystems.com

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






-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

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




more LINKED woes

2013-01-30 Thread Mike Hostetler
Hello,

I've put on this list a lot about the troubles we are having with orders
stuck in LINKED. I did make things better by removing memcache and using a
database cache. But the site is picking up traffic and so my customer is
starting to see more of these.

What happens is simple: the customer tries to check out, something happens,
and the order is stuck in LINKED. Because it's in LINKED, it can't move
forward. I wish I knew what something happens was -- that is actually
what I need to figure out.

I used to think this was totally related to sending information to our
payment gateway (in our case, Authorize.net). But I tracked down one LINKED
transaction and their order didn't make it that far. It did do a shipping
cost quote to UPS, however. (I can figure this out since I monitor the site
with New Relic. Highly recommended!!)

Does anyone else have these problems?



-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

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




Re: How can I disable caching in Satchmo

2012-11-09 Thread Mike Hostetler
I'm finally getting back to you. . .

I had to hunt a bit but the items about caching configuration is here:
http://www.satchmoproject.com/docs/dev/settings.html

if you search for CACHE_BACKEND you will find see it.

CACHE_BACKEND is an old-style configuration. When I did that (with
Memcache) I found that the pages, etc. weren't cached. I then looked at
Django's Caching How-to docs and found that caching for Django 1.3 is not
done like that anymore.

My $0.02 -- if you are still on tip, it probably still applies.

On Thu, Nov 8, 2012 at 9:04 AM, Paul Walsh paulywa...@gmail.com wrote:

 Thanks Mike, this is helping a great deal.

 Seeing as caches like Memcached, Redis, are systems that by design can
 lose data, in preference for speed, using this for CC details is to me a
 very strange design decision, and I sure wish I knew about that via the
 documentation.

 I don't mind using a DB cache (I am currently still using DB cache for
 SORL on this site too), so I will set up a db cache anyway. The site is on
 the production machine, but is not exposed to real trafic yet, so I am
 still actually using locmem for cache.

 And again - the thing with the old style and new style cache declarations
 - is that in the docs? I'd love to know that I just missed it somehow... I
 am using latest django and Satchmo tip - do you know if this still applies?

 *Paul Walsh*
 0543551144



 On Thu, Nov 8, 2012 at 4:57 PM, Mike Hostetler 
 m...@squarepegsystems.comwrote:

 I found the cache requirement in the code -- I was debugging why we were
 getting an occasional stopped transaction (transactions were saved as
 LINKED) and discovered that it how it worked. This was a problem with
 Memcache -- Memcache was working but once in a while I would have a cache
 miss on the credit card number, which is a bad thing. When I switched to
 the database cache, the problem with the LINKED transactions all but went
 away (now it happens when a user reloads a page when Satchmo is waiting for
 response to their external service request, al a AuthorizeNet or UPS).

 Cache invalidation is always a tricky subject -- I kinda had the same
 problem. Did you try anything else but Memcache? I didn't look at any other
 caching except Database and Memcache (since they are well-documented and
 come standard with Django). I'm certain that someone has developed plugins
 for others.

 For Satchmo:  you do have to setup the cache twice: once for Django using
 the 'CACHES' dictionary and another time with the 'old' way with
 CACHE_BACKEND,CACHE_MIDDLEWARE_SECONDS. and CACHE_MIDDLEWARE_KEY_PREFIX.
 That last one is how Satchmo uses the cache for cc numbers, etc.


 On Thu, Nov 8, 2012 at 8:40 AM, Paul Walsh paulywa...@gmail.com wrote:

 Thanks Mike,

 Where did you find this information about the credit card info + cache?
 For the life of me, I can't find anything in the docs about this.

 I am not feeling the love for the Satchmo docs for a bunch of reasons
 right now but anyway, I digress.

 It is not that I don't want to use caching in production. I have a
 problem where the cache doesn't seem to be invalidating in some cases, and
 I am therefore diving in to Satchmo's caching and just trying to understand
 what is going on (particularly, how it is different from Django's built in
 caching, or not).

 So, my first step was to work out how to turn caching off...

 Also, is it possible to use Johnny Cache with Satchmo? Or, a Redis cache?

 I am also wondering, concerned, why could you get a memached backend
 working with Satchmo? This is fairly trivial to setup with Django projects
 usually.

 thanks.

 *Paul Walsh*
 0543551144



 On Thu, Nov 8, 2012 at 4:15 PM, Mike Hostetler 
 m...@squarepegsystems.com wrote:

 I'm surprised no one answered this. I'll take a shot . .

 You can't. Or you can, but then you can't sent credit card info to the
 payment processor. One of the decisions made in Satchmo was to use the
 cache to persist the credit card number from one screen to the next. I'm
 not going to express my opinion on that decision . . .

 But why don't you want to use caching in production? That really
 doesn't make a lot of sense -- a properly configured caching system is
 worth the time in any Django app. I did have some problems with Memcache so
 I switched it to a database cache and that has helped a lot (YMMV with
 Memcache -- I actually would rather use that than the database cache).



 On Nov 7, 2012 10:14 AM, Paul Walsh paulywa...@gmail.com wrote:

 I want to disable caching in Satchmo, in production.

 I can't find anything in the docs that explicitly declares how I can
 managing Satchmo's caching.

 I'd love a pointer to the right place in the docs, if there is one,
 and also if anyone know hows I can disable caching.


  --
 You received this message because you are subscribed to the Google
 Groups Satchmo users group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/satchmo-users/-/S2MNqFXmnPkJ.
 To post

Re: How can I disable caching in Satchmo

2012-11-08 Thread Mike Hostetler
I'm surprised no one answered this. I'll take a shot . .

You can't. Or you can, but then you can't sent credit card info to the
payment processor. One of the decisions made in Satchmo was to use the
cache to persist the credit card number from one screen to the next. I'm
not going to express my opinion on that decision . . .

But why don't you want to use caching in production? That really doesn't
make a lot of sense -- a properly configured caching system is worth the
time in any Django app. I did have some problems with Memcache so I
switched it to a database cache and that has helped a lot (YMMV with
Memcache -- I actually would rather use that than the database cache).



On Nov 7, 2012 10:14 AM, Paul Walsh paulywa...@gmail.com wrote:

 I want to disable caching in Satchmo, in production.

 I can't find anything in the docs that explicitly declares how I can
 managing Satchmo's caching.

 I'd love a pointer to the right place in the docs, if there is one, and
 also if anyone know hows I can disable caching.


  --
 You received this message because you are subscribed to the Google Groups
 Satchmo users group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/satchmo-users/-/S2MNqFXmnPkJ.
 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.


-- 
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.



Re: How can I disable caching in Satchmo

2012-11-08 Thread Mike Hostetler
I found the cache requirement in the code -- I was debugging why we were
getting an occasional stopped transaction (transactions were saved as
LINKED) and discovered that it how it worked. This was a problem with
Memcache -- Memcache was working but once in a while I would have a cache
miss on the credit card number, which is a bad thing. When I switched to
the database cache, the problem with the LINKED transactions all but went
away (now it happens when a user reloads a page when Satchmo is waiting for
response to their external service request, al a AuthorizeNet or UPS).

Cache invalidation is always a tricky subject -- I kinda had the same
problem. Did you try anything else but Memcache? I didn't look at any other
caching except Database and Memcache (since they are well-documented and
come standard with Django). I'm certain that someone has developed plugins
for others.

For Satchmo:  you do have to setup the cache twice: once for Django using
the 'CACHES' dictionary and another time with the 'old' way with
CACHE_BACKEND,CACHE_MIDDLEWARE_SECONDS. and CACHE_MIDDLEWARE_KEY_PREFIX.
That last one is how Satchmo uses the cache for cc numbers, etc.

On Thu, Nov 8, 2012 at 8:40 AM, Paul Walsh paulywa...@gmail.com wrote:

 Thanks Mike,

 Where did you find this information about the credit card info + cache?
 For the life of me, I can't find anything in the docs about this.

 I am not feeling the love for the Satchmo docs for a bunch of reasons
 right now but anyway, I digress.

 It is not that I don't want to use caching in production. I have a problem
 where the cache doesn't seem to be invalidating in some cases, and I am
 therefore diving in to Satchmo's caching and just trying to understand what
 is going on (particularly, how it is different from Django's built in
 caching, or not).

 So, my first step was to work out how to turn caching off...

 Also, is it possible to use Johnny Cache with Satchmo? Or, a Redis cache?

 I am also wondering, concerned, why could you get a memached backend
 working with Satchmo? This is fairly trivial to setup with Django projects
 usually.

 thanks.

 *Paul Walsh*
 0543551144



 On Thu, Nov 8, 2012 at 4:15 PM, Mike Hostetler 
 m...@squarepegsystems.comwrote:

 I'm surprised no one answered this. I'll take a shot . .

 You can't. Or you can, but then you can't sent credit card info to the
 payment processor. One of the decisions made in Satchmo was to use the
 cache to persist the credit card number from one screen to the next. I'm
 not going to express my opinion on that decision . . .

 But why don't you want to use caching in production? That really doesn't
 make a lot of sense -- a properly configured caching system is worth the
 time in any Django app. I did have some problems with Memcache so I
 switched it to a database cache and that has helped a lot (YMMV with
 Memcache -- I actually would rather use that than the database cache).



 On Nov 7, 2012 10:14 AM, Paul Walsh paulywa...@gmail.com wrote:

 I want to disable caching in Satchmo, in production.

 I can't find anything in the docs that explicitly declares how I can
 managing Satchmo's caching.

 I'd love a pointer to the right place in the docs, if there is one, and
 also if anyone know hows I can disable caching.


  --
 You received this message because you are subscribed to the Google
 Groups Satchmo users group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/satchmo-users/-/S2MNqFXmnPkJ.
 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.

  --
 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.


  --
 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.




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Authorize.net doesn't always call out

2012-09-10 Thread Mike Hostetler
I think this is related to my previous issue with order transactions
staying in LINKED.

What seems to be happening is that Satchmo thinks it's sending an
transaction to Authorize.net and is just waiting for it it. A customer gets
tired of waiting, so they hit Stop and try again -- this causes the order
transaction to be in LINKED status.

I have NewRelic monitoring the site (high recommended!!) and it doesn't
show any call to Authorize.net for that order -- but it does for other,
complete orders.

What would cause this? Bad memcache configuration? Should I try another
caching tool? Does anyone have any other explanation?

-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Re: Lots of LINKED transactions

2012-08-23 Thread Mike Hostetler
So I increased our Memcache and that seemed to have worked -- for a while.
But it happened again yesterday. I do think that is cache is related in
some way, especially knowing that Satchmo stores the credit card
number temporarily in cache during checkout. Maybe there is a cache miss
during checkout that is causing this?

I removed some of the views from cache (one has a big form in it, so I'm
not sure it was cached anyway) to see if that helps.

Does anyone use something besides memcache that works well?

On Fri, Aug 17, 2012 at 1:08 PM, Orion Vianna guybrush@gmail.comwrote:

 IIRC, I had a lot of LINKED transaction ID problems when cashing and
 memcached were not setup properly.
 Maybe you are getting duplicate orders because users try again after a
 unsuccessful checkout. I would check your cashing setup.

 Orion


 On 08/16/2012 09:36 AM, Mike Hostetler wrote:



 We have had a rash of orders that simply stay in the LINKED state --
 sometimes they end up being duplicated as a charged orders but we also get
 some that stay at LINKED.

 We are getting more traffic (a good thing!) and more sales (a better
 thing!). Last night we had about 10 LINKED transactions and no actual new
 orders which is quite unusual.

 What causes a order to be LINKED? Why would it stay that way?


 --
 Mike Hostetler
 SquarePeg Systems
 http://www.squarepegsystems.**com http://www.squarepegsystems.com
 --
 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+unsubscribe@*
 *googlegroups.com satchmo-users%2bunsubscr...@googlegroups.com.
 For more options, visit this group at http://groups.google.com/**
 group/satchmo-users?hl=enhttp://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+unsubscribe@**
 googlegroups.com satchmo-users%2bunsubscr...@googlegroups.com.
 For more options, visit this group at http://groups.google.com/**
 group/satchmo-users?hl=enhttp://groups.google.com/group/satchmo-users?hl=en
 .




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Re: What IDE for Satchmo stores?

2012-08-02 Thread Mike Hostetler
I second flit's recommendation of PyCharm -- not free but it has create
Django support.

If you want to stay with Emacs, I found this package to be very helpful. It
takes the best Python packages for Emacs and gets them to work together:

https://github.com/gabrielelanaro/emacs-for-python/

As far as large codebases go with Emacs, you should make sure you are
building and using tag tables.

http://www.gnu.org/software/emacs/manual/html_node/emacs/Tags.html


On Sun, Jul 29, 2012 at 9:10 PM, Nick Mellor thebalance...@gmail.comwrote:

 Hi all,

 I'd be interested to know what IDE you use for your Django/Satchmo stores.
 I'm managing ok with emacs but getting around the large code base is
 somewhat slow. I'm looking for an IDE with good debugging (gold standard
 would be remote debugging!) and code navigation. Free is good, but improved
 programmer productivity is more important.

 Can't (so far) get on with PyDev because it seems to want to rearrange my
 shop for me, breaking it in the process.

 I was wondering about the latest version of Spyder. And Wing. And Komodo.
 But open to other suggestions.

 Any experiences/recommendations much appreciated.

 Nick

 --
 You received this message because you are subscribed to the Google Groups
 Satchmo users group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/satchmo-users/-/pViB0ez32PkJ.
 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.




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Not sending credit cart to Authorize.net

2012-03-23 Thread Mike Hostetler
 I'm not sure what I changed but now when someone checks out of the store,
Authorize.net reports back: 'Credit card number is required.'.  I put the
system in test mode and changed payment/modules/authorizenet/processor.py
to print out the test number I put in. The system prints out the last four
numbers of the card, but not the entire card number.

Why is it losing the card number?

-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Email validation on checkout

2011-12-13 Thread Mike Hostetler
The default Checkout 1 form (the one where you enter name, email, and
shipping info) only has one email address. My client would like to have a
second email verification since they get a lot of customers that enter the
wrong email address.

I've been looking at a javascript-only situation but can't seem to get it.
I really don't want to change the Satchmo code (but I could).  Has anyone
else done this?



-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Re: User specified text field for a custom product?

2011-11-13 Thread Mike Hostetler
I would make a model that inherits from products.model.Product and put your
custom fields in that. Django will make them have a one to one relationship
in database. You can then make a custom Admin with your custom product yet
all the AddToCart forms will still understand it.

I did not do this in my rather large Satchmo site and now it bites me once
in a while, and I've had to customize a lot of things because I took the
composition routes.

ymmv
On Nov 13, 2011 6:35 PM, Chris chris.tagg...@gmail.com wrote:

 How would I go about adding a user-specified text field for each
 product, for instance, I need the user to specify a text value along
 with their product.

 Configurable Product
 Custom text: [___]

 Qty: 1
 [ Add to Cart ]

 --
 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.



-- 
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.



Re: Send email when Admin changes Order to Shipped

2011-11-11 Thread Mike Hostetler
Tomas,

Can you send your details?  I know the idea, but I'm a bit lost how to add
signals to the Admin .

On Tue, Nov 8, 2011 at 7:24 PM, Tomas Neme lacrymol...@gmail.com wrote:


 Register a signal on order save and check for status. I can give more
 detail tomorrow. If girlfriend finds out im emailing on her bday, she'll
 kill me ;)
 -
 De: Joe K
 Enviados:  08/11/2011 20:18:27
 Asunto:  Re: Send email when Admin changes Order to Shipped

 Any luck with this yet, Mike? I'm trying to do the same thing.

 Hopefully it's easy...I told the client it would be :-/

 On Nov 7, 2:21 pm, Mike Hostetler m...@squarepegsystems.com wrote:
  I think my subject kind of explains it . . .
 
  When a customer submits an order through the site, they receive an email
  about it. When an Admin goes in and change the Order from In Process to
  Shipped, no email is sent.
 
  Is there another way to change the status of an Order that I'm not
 familiar
  with?  Or is there a way to turn this on in the Admin?
 
  Thanks,
 
  --
  Mike Hostetler
  SquarePeg Systemshttp://www.squarepegsystems.com

 --
 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.


 --
 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.




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Send email when Admin changes Order to Shipped

2011-11-07 Thread Mike Hostetler
I think my subject kind of explains it . . .

When a customer submits an order through the site, they receive an email
about it. When an Admin goes in and change the Order from In Process to
Shipped, no email is sent.

Is there another way to change the status of an Order that I'm not familiar
with?  Or is there a way to turn this on in the Admin?

Thanks,

-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Powerhouse Tool Parts

2011-07-20 Thread Mike Hostetler
I submitted this to the Satchmo sites page, but I think it's worth a mention
on the list as well -- because really shows how much you can extend a
Satchmo store.

We just finalized Powerhouse Distributing's site, which really would not
have been possible without Satchmo and Django.
http://www.powerhousetoolparts.com/

(I admit -- there are some image quirks left. . . we are working on them. .
. .)

This is not a yadda-yadda e-commerce site.  The customer can find or search
for their power tool, and see the part breakdown on it, find their part, and
add it to their cart.  Satchmo isn't actually used until the user puts it in
their cart -- the Manufacturer  listings and part breakdown is all part of
the custom Django app that I wrote to sit in  front of it.  This doesn't
count the off-line process that syncs the site's inventory and pricing to
their internal inventory system for their brick and mortar store.

Oh, and the site has a bit over 200k products in it -- not all are active
yet. I think the active number is 11k products.  But more will be active as
more tools are configured on the site.

A site like this would not be possible without Satchmo being so configurable
-- nor without it being written in Django. Chris and the other maintainers
and committers should feel proud of themselves for making just
an extensible product.

Finally, I can't take credit for the nice looking front-end for Powerhouse
Distributing.  That was conceived and implemented by my good friends at
Image Made Design:

http://imagemadedesign.com/

So my kudos go out to Chris Moffitt and everyone else who has helped out.

-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Re: Authorize.net in test: will not send credit card info

2011-07-01 Thread Mike Hostetler
I looked through the change logs and thought the same thing.

We are using memcache but I have it disabled at the moment. I restarted it
anyway but that didn't fix anything.

I do have a designer working on the templates (he's the one that discovered
it). Maybe he changed something he shouldn't have, but I can't see where.

I'll keep digging.

On Thu, Jun 30, 2011 at 10:53 PM, Chris Moffitt ch...@moffitts.net wrote:

 I just did a quick test and it seems to work for me. We haven't done
 anything in this area recently.

 What cache are you using, maybe try restarting that... Not sure what the
 issue is.

 -Chris

 On Thu, Jun 30, 2011 at 10:20 PM, Mike Hostetler 
 m...@squarepegsystems.com wrote:

 I had an older tip of Satchmo running, and I just recently upgraded to the
 latest tip because of the PostgreSQL changes Chris did.  And now my test
 Authorize.net payments don't go through anymore.  They used to.

 The reason is always Credit card number is required although I'm giving
 it the test credit card number.  I do not see the card in the log.

 where did it go?  My log file follows:

 2011-06-30 22:13:45,708 INFO (Extra logging) Capturing payment on order
 #13
 2011-06-30 22:13:45,714 INFO (Extra logging) Capturing payment for Order
 #13: Mike Hostetler
 2011-06-30 22:13:45,729 INFO (Extra logging) Using test connection.
 2011-06-30 22:13:45,738 INFO (Extra logging) standard charges
 configuration: {'x_login': u'6g7ce8CWr', 'x_version': '3.1', 'x_delim_char':
 '|', 'x_method': 'CC', 'x_type': 'AUTH_CAPTURE', 'x_delim_data': 'TRUE',
 'x_relay_response': 'FALSE', 'x_tran_key': u'9Vj32fUr3gL9R6DV',
 'x_test_request': False}
 2011-06-30 22:13:45,742 INFO (Extra logging) standard charges
 configuration: {'x_city': u'Omaha', 'x_address': u'14620 Frances Cir',
 'x_country': u'US', 'x_state': u'NE', 'x_first_name': u'Mike',
 'x_last_name': u'Hostetler', 'x_zip': u'68144', 'x_email':
 u'm...@squarepegsystems.com', 'x_phone': u'402-981-2648'}
 2011-06-30 22:13:45,784 INFO (Extra logging) standard charges
 transactionData: {'x_exp_date': '1/2012', 'x_card_num': u'', 'x_amount':
 Decimal('9.47'), 'x_card_code': 'REDACTED', 'x_invoice_num':
 '13_test_063011_88646'}
 2011-06-30 22:13:45,785 INFO About to send a request to authorize.net:
 https://secure.authorize.net/gateway/transact.dll

 x_login=6g7ce8CWrx_version=3.1x_delim_char=%7Cx_method=CCx_type=AUTH_CAPTUREx_delim_data=TRUEx_relay_response=FALSEx_tran_key=9Vj32fUr3gL9R6DVx_test_request=Falsex_exp_date=1%2F2012x_card_num=x_amount=9.47x_card_code=REDACTEDx_invoice_num=13_test_063011_88646x_city=Omahax_address=140+Smith+Cirx_country=USx_state=NEx_first_name=Mikex_last_name=Hostetlerx_zip=68144x_email=mike%
 40squarepegsystems.comx_phone=402-981-2648
 2011-06-30 22:13:46,102 INFO (Extra logging) Authorize response:
 3|2|33|(TESTMODE) Credit card number is
 required.|00|P|0|13_test_063011_88646||9.47|CC|auth_capture||Mike|Hostetler||14620
 Frances 
 Cir|Omaha|NE|68144|US|402-981-2648||m...@squarepegsystems.com|Mike|Hostetler||140
 Smith
 Cir|Atlanta|GA|30297|US||469413D7A16F4C722912921521A013F7||
 2011-06-30 22:13:46,102 DEBUG record_failure for None
 2011-06-30 22:13:46,106 INFO Recording a payment failure: order #13, code
 2
 message=(TESTMODE) Credit card number is required.
 2011-06-30 22:13:46,112 INFO (Extra logging) Returning success=False,
 reason=2, response_text=(TESTMODE) Credit card number is required.
 2011-06-30 22:13:46,120 INFO Processing Credit Cards transaction with
 AUTHORIZENET
 Order 13
 Results=False
 Response=
 Reason=(TESTMODE) Credit card number is required.



 --
 Mike Hostetler
 SquarePeg Systems
 http://www.squarepegsystems.com

 --
 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.


  --
 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.




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Re: Authorize.net in test: will not send credit card info

2011-07-01 Thread Mike Hostetler
Actually, looking at the log, it does send a card number (albeit not
complete).  It also had x_test_request=False but I think it should be True.

2011-06-30 22:13:45,785 INFO About to send a request to authorize.net:
https://secure.authorize.net/gateway/transact.dll
x_login=6g7ce8CWrx_version=3.1x_delim_char=%7Cx_method=CCx_type=AUTH_CAPTUREx_delim_data=TRUEx_relay_response=FALSEx_tran_key=9Vj32fUr3gL9R6DV
*x_test_request=False*x_exp_date=1%2F2012*x_card_num=*
x_amount=9.47x_card_code=REDACTEDx_invoice_num=13_test_063011_88646x_city=Omahax_address=140+Smith+Cirx_country=USx_state=NEx_first_name=Mikex_last_name=Hostetlerx_zip=68144x_email=mike%
40squarepegsystems.comx_phone=402-981-2648



On Thu, Jun 30, 2011 at 10:53 PM, Chris Moffitt ch...@moffitts.net wrote:

 I just did a quick test and it seems to work for me. We haven't done
 anything in this area recently.

 What cache are you using, maybe try restarting that... Not sure what the
 issue is.

 -Chris

 On Thu, Jun 30, 2011 at 10:20 PM, Mike Hostetler 
 m...@squarepegsystems.com wrote:

 I had an older tip of Satchmo running, and I just recently upgraded to the
 latest tip because of the PostgreSQL changes Chris did.  And now my test
 Authorize.net payments don't go through anymore.  They used to.

 The reason is always Credit card number is required although I'm giving
 it the test credit card number.  I do not see the card in the log.

 where did it go?  My log file follows:

 2011-06-30 22:13:45,708 INFO (Extra logging) Capturing payment on order
 #13
 2011-06-30 22:13:45,714 INFO (Extra logging) Capturing payment for Order
 #13: Mike Hostetler
 2011-06-30 22:13:45,729 INFO (Extra logging) Using test connection.
 2011-06-30 22:13:45,738 INFO (Extra logging) standard charges
 configuration: {'x_login': u'6g7ce8CWr', 'x_version': '3.1', 'x_delim_char':
 '|', 'x_method': 'CC', 'x_type': 'AUTH_CAPTURE', 'x_delim_data': 'TRUE',
 'x_relay_response': 'FALSE', 'x_tran_key': u'9Vj32fUr3gL9R6DV',
 'x_test_request': False}
 2011-06-30 22:13:45,742 INFO (Extra logging) standard charges
 configuration: {'x_city': u'Omaha', 'x_address': u'14620 Frances Cir',
 'x_country': u'US', 'x_state': u'NE', 'x_first_name': u'Mike',
 'x_last_name': u'Hostetler', 'x_zip': u'68144', 'x_email':
 u'm...@squarepegsystems.com', 'x_phone': u'402-981-2648'}
 2011-06-30 22:13:45,784 INFO (Extra logging) standard charges
 transactionData: {'x_exp_date': '1/2012', 'x_card_num': u'', 'x_amount':
 Decimal('9.47'), 'x_card_code': 'REDACTED', 'x_invoice_num':
 '13_test_063011_88646'}
 2011-06-30 22:13:45,785 INFO About to send a request to authorize.net:
 https://secure.authorize.net/gateway/transact.dll

 x_login=6g7ce8CWrx_version=3.1x_delim_char=%7Cx_method=CCx_type=AUTH_CAPTUREx_delim_data=TRUEx_relay_response=FALSEx_tran_key=9Vj32fUr3gL9R6DVx_test_request=Falsex_exp_date=1%2F2012x_card_num=x_amount=9.47x_card_code=REDACTEDx_invoice_num=13_test_063011_88646x_city=Omahax_address=140+Smith+Cirx_country=USx_state=NEx_first_name=Mikex_last_name=Hostetlerx_zip=68144x_email=mike%
 40squarepegsystems.comx_phone=402-981-2648
 2011-06-30 22:13:46,102 INFO (Extra logging) Authorize response:
 3|2|33|(TESTMODE) Credit card number is
 required.|00|P|0|13_test_063011_88646||9.47|CC|auth_capture||Mike|Hostetler||14620
 Frances 
 Cir|Omaha|NE|68144|US|402-981-2648||m...@squarepegsystems.com|Mike|Hostetler||140
 Smith
 Cir|Atlanta|GA|30297|US||469413D7A16F4C722912921521A013F7||
 2011-06-30 22:13:46,102 DEBUG record_failure for None
 2011-06-30 22:13:46,106 INFO Recording a payment failure: order #13, code
 2
 message=(TESTMODE) Credit card number is required.
 2011-06-30 22:13:46,112 INFO (Extra logging) Returning success=False,
 reason=2, response_text=(TESTMODE) Credit card number is required.
 2011-06-30 22:13:46,120 INFO Processing Credit Cards transaction with
 AUTHORIZENET
 Order 13
 Results=False
 Response=
 Reason=(TESTMODE) Credit card number is required.



 --
 Mike Hostetler
 SquarePeg Systems
 http://www.squarepegsystems.com

 --
 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.


  --
 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.




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
You received this message because you are subscribed to the Google Groups 
Satchmo users group.
To post

Re: Authorize.net in test: will not send credit card info

2011-07-01 Thread Mike Hostetler
I did figure out what the issue is . . . and, yes, it's something stupid.

I committed out the CACHE_PREFIX and CACHE_TIMEOUT settings as I was
debugging.  I came to the realization that the key that the card number was
saved in the keycache was not the same key that it was saved with.  As I was
scratching my head on that, I noted warnings about those settings not being
set.  So I set those back and *boom* everything worked.

So keycache needs those (duplicated and, perhaps, decprecated) settings.  If
you don't have them set, you can't send card information to Authorize.net.
 That should be in the documentation somewhere.


On Fri, Jul 1, 2011 at 8:53 AM, Chris Moffitt ch...@moffitts.net wrote:

 The payment module is pretty simple. You could add some debugging
 statements in the processor.py file and see if you're getting the right cc#
 passed to you.

 -Chris


 On Fri, Jul 1, 2011 at 5:00 AM, Mike Hostetler 
 m...@squarepegsystems.comwrote:

 Actually, looking at the log, it does send a card number (albeit not
 complete).  It also had x_test_request=False but I think it should be True.

 2011-06-30 22:13:45,785 INFO About to send a request to authorize.net:
 https://secure.authorize.net/gateway/transact.dll

 x_login=6g7ce8CWrx_version=3.1x_delim_char=%7Cx_method=CCx_type=AUTH_CAPTUREx_delim_data=TRUEx_relay_response=FALSEx_tran_key=9Vj32fUr3gL9R6DV
 *x_test_request=False*x_exp_date=1%2F2012*x_card_num=*
 x_amount=9.47x_card_code=REDACTEDx_invoice_num=13_test_063011_88646x_city=Omahax_address=140+Smith+Cirx_country=USx_state=NEx_first_name=Mikex_last_name=Hostetlerx_zip=68144x_email=mike%
 40squarepegsystems.comx_phone=402-981-2648



 On Thu, Jun 30, 2011 at 10:53 PM, Chris Moffitt ch...@moffitts.netwrote:

 I just did a quick test and it seems to work for me. We haven't done
 anything in this area recently.

 What cache are you using, maybe try restarting that... Not sure what the
 issue is.

 -Chris

  On Thu, Jun 30, 2011 at 10:20 PM, Mike Hostetler 
 m...@squarepegsystems.com wrote:

  I had an older tip of Satchmo running, and I just recently upgraded to
 the latest tip because of the PostgreSQL changes Chris did.  And now my 
 test
 Authorize.net payments don't go through anymore.  They used to.

 The reason is always Credit card number is required although I'm
 giving it the test credit card number.  I do not see the card in the log.

 where did it go?  My log file follows:

 2011-06-30 22:13:45,708 INFO (Extra logging) Capturing payment on order
 #13
 2011-06-30 22:13:45,714 INFO (Extra logging) Capturing payment for Order
 #13: Mike Hostetler
 2011-06-30 22:13:45,729 INFO (Extra logging) Using test connection.
 2011-06-30 22:13:45,738 INFO (Extra logging) standard charges
 configuration: {'x_login': u'6g7ce8CWr', 'x_version': '3.1', 
 'x_delim_char':
 '|', 'x_method': 'CC', 'x_type': 'AUTH_CAPTURE', 'x_delim_data': 'TRUE',
 'x_relay_response': 'FALSE', 'x_tran_key': u'9Vj32fUr3gL9R6DV',
 'x_test_request': False}
 2011-06-30 22:13:45,742 INFO (Extra logging) standard charges
 configuration: {'x_city': u'Omaha', 'x_address': u'14620 Frances Cir',
 'x_country': u'US', 'x_state': u'NE', 'x_first_name': u'Mike',
 'x_last_name': u'Hostetler', 'x_zip': u'68144', 'x_email':
 u'm...@squarepegsystems.com', 'x_phone': u'402-981-2648'}
 2011-06-30 22:13:45,784 INFO (Extra logging) standard charges
 transactionData: {'x_exp_date': '1/2012', 'x_card_num': u'', 
 'x_amount':
 Decimal('9.47'), 'x_card_code': 'REDACTED', 'x_invoice_num':
 '13_test_063011_88646'}
 2011-06-30 22:13:45,785 INFO About to send a request to authorize.net:
 https://secure.authorize.net/gateway/transact.dll

 x_login=6g7ce8CWrx_version=3.1x_delim_char=%7Cx_method=CCx_type=AUTH_CAPTUREx_delim_data=TRUEx_relay_response=FALSEx_tran_key=9Vj32fUr3gL9R6DVx_test_request=Falsex_exp_date=1%2F2012x_card_num=x_amount=9.47x_card_code=REDACTEDx_invoice_num=13_test_063011_88646x_city=Omahax_address=140+Smith+Cirx_country=USx_state=NEx_first_name=Mikex_last_name=Hostetlerx_zip=68144x_email=mike%
 40squarepegsystems.comx_phone=402-981-2648
 2011-06-30 22:13:46,102 INFO (Extra logging) Authorize response:
 3|2|33|(TESTMODE) Credit card number is
 required.|00|P|0|13_test_063011_88646||9.47|CC|auth_capture||Mike|Hostetler||14620
 Frances 
 Cir|Omaha|NE|68144|US|402-981-2648||m...@squarepegsystems.com|Mike|Hostetler||140
 Smith
 Cir|Atlanta|GA|30297|US||469413D7A16F4C722912921521A013F7||
 2011-06-30 22:13:46,102 DEBUG record_failure for None
 2011-06-30 22:13:46,106 INFO Recording a payment failure: order #13,
 code 2
 message=(TESTMODE) Credit card number is required.
 2011-06-30 22:13:46,112 INFO (Extra logging) Returning success=False,
 reason=2, response_text=(TESTMODE) Credit card number is required.
 2011-06-30 22:13:46,120 INFO Processing Credit Cards transaction with
 AUTHORIZENET
 Order 13
 Results=False
 Response=
 Reason=(TESTMODE) Credit card number is required

Authorize.net in test: will not send credit card info

2011-06-30 Thread Mike Hostetler
I had an older tip of Satchmo running, and I just recently upgraded to the
latest tip because of the PostgreSQL changes Chris did.  And now my test
Authorize.net payments don't go through anymore.  They used to.

The reason is always Credit card number is required although I'm giving it
the test credit card number.  I do not see the card in the log.

where did it go?  My log file follows:

2011-06-30 22:13:45,708 INFO (Extra logging) Capturing payment on order #13
2011-06-30 22:13:45,714 INFO (Extra logging) Capturing payment for Order
#13: Mike Hostetler
2011-06-30 22:13:45,729 INFO (Extra logging) Using test connection.
2011-06-30 22:13:45,738 INFO (Extra logging) standard charges configuration:
{'x_login': u'6g7ce8CWr', 'x_version': '3.1', 'x_delim_char': '|',
'x_method': 'CC', 'x_type': 'AUTH_CAPTURE', 'x_delim_data': 'TRUE',
'x_relay_response': 'FALSE', 'x_tran_key': u'9Vj32fUr3gL9R6DV',
'x_test_request': False}
2011-06-30 22:13:45,742 INFO (Extra logging) standard charges configuration:
{'x_city': u'Omaha', 'x_address': u'14620 Frances Cir', 'x_country': u'US',
'x_state': u'NE', 'x_first_name': u'Mike', 'x_last_name': u'Hostetler',
'x_zip': u'68144', 'x_email': u'm...@squarepegsystems.com', 'x_phone':
u'402-981-2648'}
2011-06-30 22:13:45,784 INFO (Extra logging) standard charges
transactionData: {'x_exp_date': '1/2012', 'x_card_num': u'', 'x_amount':
Decimal('9.47'), 'x_card_code': 'REDACTED', 'x_invoice_num':
'13_test_063011_88646'}
2011-06-30 22:13:45,785 INFO About to send a request to authorize.net:
https://secure.authorize.net/gateway/transact.dll
x_login=6g7ce8CWrx_version=3.1x_delim_char=%7Cx_method=CCx_type=AUTH_CAPTUREx_delim_data=TRUEx_relay_response=FALSEx_tran_key=9Vj32fUr3gL9R6DVx_test_request=Falsex_exp_date=1%2F2012x_card_num=x_amount=9.47x_card_code=REDACTEDx_invoice_num=13_test_063011_88646x_city=Omahax_address=140+Smith+Cirx_country=USx_state=NEx_first_name=Mikex_last_name=Hostetlerx_zip=68144x_email=mike%
40squarepegsystems.comx_phone=402-981-2648
2011-06-30 22:13:46,102 INFO (Extra logging) Authorize response:
3|2|33|(TESTMODE) Credit card number is
required.|00|P|0|13_test_063011_88646||9.47|CC|auth_capture||Mike|Hostetler||14620
Frances 
Cir|Omaha|NE|68144|US|402-981-2648||m...@squarepegsystems.com|Mike|Hostetler||140
Smith
Cir|Atlanta|GA|30297|US||469413D7A16F4C722912921521A013F7||
2011-06-30 22:13:46,102 DEBUG record_failure for None
2011-06-30 22:13:46,106 INFO Recording a payment failure: order #13, code 2
message=(TESTMODE) Credit card number is required.
2011-06-30 22:13:46,112 INFO (Extra logging) Returning success=False,
reason=2, response_text=(TESTMODE) Credit card number is required.
2011-06-30 22:13:46,120 INFO Processing Credit Cards transaction with
AUTHORIZENET
Order 13
Results=False
Response=
Reason=(TESTMODE) Credit card number is required.



-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Re: Can't get past first checkout step

2011-06-15 Thread Mike Hostetler
The dummy module.  I also have an unconfigured Authorized.net enabled, too.

On Jun 14, 2011 10:42 PM, Chris Moffitt ch...@moffitts.net wrote:
 What payment processor are you using?

 -Chris

 On Tue, Jun 14, 2011 at 8:34 PM, Mike Hostetler
 m...@squarepegsystems.comwrote:

 Hi everyone,

 I have a Satchmo site that is just about ready to go but when I try to
test
 checking out a product, I can't get past the initial checkout screen,
where
 a user enters email, address, etc. in it. There are no errors on the page
 nor in log file. It just doesn't get past the /checkout/ page.

 I'm sure I don't have something setup properly. Anyone have a suggestion
 of what I did wrong?

 --
 Mike Hostetler
 SquarePeg Systems
 http://www.squarepegsystems.com

 --
 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.


 --
 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.


-- 
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.



Re: Can't get past first checkout step

2011-06-15 Thread Mike Hostetler
I dug into it a little more.  Verbose logging isn't giving me anything, but
I think I did find something wrong.

The form template says:
form method=post action={% url satchmo_checkout-step1 %}

But when it renders to HTML I have:
form method=post action=/checkout/

Which is the same URL that I am on. Is that right?  It is supposed to post
back to the same view or go to another?  Seems like it should go to another.




On Wed, Jun 15, 2011 at 8:06 AM, Chris Moffitt ch...@moffitts.net wrote:

 Have you enabled verbose logging? You should get some sort of error
 somewhere.

 What shipping modules do you have enabled - you might want to verify those
 too.

 -Chris

 On Wed, Jun 15, 2011 at 7:23 AM, Mike Hostetler m...@squarepegsystems.com
  wrote:

 The dummy module.  I also have an unconfigured Authorized.net enabled,
 too.
 On Jun 14, 2011 10:42 PM, Chris Moffitt ch...@moffitts.net wrote:
  What payment processor are you using?
 
  -Chris
 
  On Tue, Jun 14, 2011 at 8:34 PM, Mike Hostetler
  m...@squarepegsystems.comwrote:
 
  Hi everyone,
 
  I have a Satchmo site that is just about ready to go but when I try to
 test
  checking out a product, I can't get past the initial checkout screen,
 where
  a user enters email, address, etc. in it. There are no errors on the
 page
  nor in log file. It just doesn't get past the /checkout/ page.
 
  I'm sure I don't have something setup properly. Anyone have a
 suggestion
  of what I did wrong?
 
  --
  Mike Hostetler
  SquarePeg Systems
  http://www.squarepegsystems.com
 
  --
  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.
 
 
  --
  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.
 

 --
 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.


  --
 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.




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Re: Can't get past first checkout step

2011-06-15 Thread Mike Hostetler
I figured it out . ..

Even though all my products are  shippable, cart.is_shippable was returning
false.  Not sure why.  So I just took out that check and now can get past
the screen.



On Wed, Jun 15, 2011 at 2:53 PM, Mike Hostetler
m...@squarepegsystems.comwrote:

 I dug into it a little more.  Verbose logging isn't giving me anything, but
 I think I did find something wrong.

 The form template says:
 form method=post action={% url satchmo_checkout-step1 %}

 But when it renders to HTML I have:
 form method=post action=/checkout/

 Which is the same URL that I am on. Is that right?  It is supposed to post
 back to the same view or go to another?  Seems like it should go to another.




 On Wed, Jun 15, 2011 at 8:06 AM, Chris Moffitt ch...@moffitts.net wrote:

 Have you enabled verbose logging? You should get some sort of error
 somewhere.

 What shipping modules do you have enabled - you might want to verify those
 too.

 -Chris

 On Wed, Jun 15, 2011 at 7:23 AM, Mike Hostetler 
 m...@squarepegsystems.com wrote:

 The dummy module.  I also have an unconfigured Authorized.net enabled,
 too.
  On Jun 14, 2011 10:42 PM, Chris Moffitt ch...@moffitts.net wrote:
  What payment processor are you using?
 
  -Chris
 
  On Tue, Jun 14, 2011 at 8:34 PM, Mike Hostetler
  m...@squarepegsystems.comwrote:
 
  Hi everyone,
 
  I have a Satchmo site that is just about ready to go but when I try to
 test
  checking out a product, I can't get past the initial checkout screen,
 where
  a user enters email, address, etc. in it. There are no errors on the
 page
  nor in log file. It just doesn't get past the /checkout/ page.
 
  I'm sure I don't have something setup properly. Anyone have a
 suggestion
  of what I did wrong?
 
  --
  Mike Hostetler
  SquarePeg Systems
  http://www.squarepegsystems.com
 
  --
  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.
 
 
  --
  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.
 

 --
 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.


  --
 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.




 --
 Mike Hostetler
 SquarePeg Systems
 http://www.squarepegsystems.com




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Can't get past first checkout step

2011-06-14 Thread Mike Hostetler
Hi everyone,

I have a Satchmo site that is just about ready to go but when I try to test
checking out a product, I can't get past the initial checkout screen, where
a user enters email, address, etc. in it.  There are no errors on the page
nor in log file.  It just doesn't get past the /checkout/ page.

I'm sure I don't have something setup properly.  Anyone have a suggestion of
what I did wrong?

-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Re: Memory issue

2011-05-31 Thread Mike Hostetler
What database are you using?

I'm finishing up a large (200k items) Satchmo store with some offline
inventory updates, and quickly found that MySQL with MyISAM files did not go
well. I don't know about memory usage, but I was getting timeouts from the
database.

I ended up using PostgreSQL and using transaction management and things got
a lot better.  You could try InnoDB tables if you are on MySQL -- that may
also work.

Also, I discovered that I didn't have Memcache setup properly and wasn't
using it when I thought I was.  Make sure you have these in your
MIDDLEWARE_CLASSES:

'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',


I discovered this by installing memcache_status.  That gives you a view into
memcache in your admin:
http://pypi.python.org/pypi/django-memcache-status/1.0




On Tue, May 31, 2011 at 6:09 AM, ug Charlie ug.char...@gmail.com wrote:

 I think my satchmo shop takes too much memory :(

 I have used memcached to set my cache backend and set DEBUG false.

 In the server there are lots of www-data user taking memory. I have no
 idea about that.

 It is my first time to use satchmo and django.

 Could anyone give me some advice?

 Thank you :)

 --
 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.




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Re: upstream timed out

2011-03-07 Thread Mike Hostetler
I think that's understandable on product pages, but what about the Admin
list?  I can get the full list of products, but when I click on a Category
to filter out, it doesn't show up. That seems to me to be a query problem.

On Mon, Mar 7, 2011 at 7:35 AM, Alex Robbins
alexander.j.robb...@gmail.comwrote:

 I've had a problem a couple times where the page will error out when
 showing products because of all the thumbnailing that has to happen.
 Obviously this only happens the first couple times, but if you have
 30k products, maybe you are viewing a subset that hasn't ever been
 viewed before, and the thumbnailing is making the request take too
 long. You won't get any errors in the logs because nothing actually
 broke, just took too long.

 Alex

 On Sun, Mar 6, 2011 at 2:57 PM, Mike Hostetler
 m...@squarepegsystems.com wrote:
  I have a similar setup (Apache/wsgi and PostgreSQL) only I have 300,000
  products (!!!)
  So I just tried it and it takes a while, but I do get a response back.
  Have
  run ANALYZE or VACUUM on your tables?  With 40,000 products, you may
  need
  to.  That said, it seems that there is an index missing on the Satchmo
  tables.
 
  On Sun, Mar 6, 2011 at 12:37 PM, Dan dan...@gmail.com wrote:
 
  Using satchmo with Nginx, uWsgi and postgresql on a linode slice and
  getting 504 gateway error when trying to filter products by a certain
  category in admin and front end.
 
  There are about 40,000 products on the system.
 
  nginx logs says:
 
  upstream timed out (110: Connection timed out) while reading response
  header from upstream
 
  No errors from postgres or uwsgi, thier process's still seem to be
  runing
 
  listing all products in admin without category filters works ok.
 
  Any ideas about this issue?
 
  --
  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.
 
 
 
 
  --
  Mike Hostetler
  SquarePeg Systems
  http://www.squarepegsystems.com
 
  --
  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.
 

 --
 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.




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Many products on a page

2011-03-06 Thread Mike Hostetler
Hello all,

I have a case where there is a table of products on the page, and the user 
needs to specify the quantity of each item (if any) and then click the 
submit button.

The examples with Satchmo show an individual product page, so it is uses 
url satchmo_smart_add but that's not what I want to use, since my URL will 
not have the slug of any product in it.

I'm fine with writing a custom view to make this happen, but how does one 
create a CartItem to add to a Cart? Or is there an easier way that I'm 
overlooking?

Thanks,
Mike

-- 
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.



Re: upstream timed out

2011-03-06 Thread Mike Hostetler
I have a similar setup (Apache/wsgi and PostgreSQL) only I have 300,000
products (!!!)

So I just tried it and it takes a while, but I do get a response back.  Have
run ANALYZE or VACUUM on your tables?  With 40,000 products, you may  need
to.  That said, it seems that there is an index missing on the Satchmo
tables.

On Sun, Mar 6, 2011 at 12:37 PM, Dan dan...@gmail.com wrote:

 Using satchmo with Nginx, uWsgi and postgresql on a linode slice and
 getting 504 gateway error when trying to filter products by a certain
 category in admin and front end.

 There are about 40,000 products on the system.

 nginx logs says:

 upstream timed out (110: Connection timed out) while reading response
 header from upstream

 No errors from postgres or uwsgi, thier process's still seem to be
 runing

 listing all products in admin without category filters works ok.

 Any ideas about this issue?

 --
 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.




-- 
Mike Hostetler
SquarePeg Systems
http://www.squarepegsystems.com

-- 
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.



Re: is there a mass import app?

2008-11-14 Thread Mike Hostetler
On Wed, Oct 29, 2008 at 11:12 AM, hugh muirhead [EMAIL PROTECTED]
 wrote:

 hi, would it be difficult to import a .csv of: product description, price,
 image, weight, dimensions, inventory, and product number, are there any
 existing scripts?, thanks.


It wouldn't be difficult at all  . . .

Our supplier has a large amount of products (~3500) in an XML file. I
studied the format a little bit, and took an hour to write a script that
parses the file, and puts in the products that we want, while creating
categories, downloading images, etc.

Surely a CSV file would be just as simple but the format would be different
for every supplier.  But the time you took converting their Excel format to
a Satchmo-specific, you could have whipped up the  custom script yourself.

That's my $0.02 . . .
-- 
Mike Hostetler
http://mike.hostetlerhome.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~--~~~~--~~--~--~---