Final update: The reason that I was still getting the Integrity Error issue was that I hadn't properly upgraded Satchmo in my virtualenv after the fix was implemented. deleting the virtualenv, starting a new one, and pip install -r requirements.txt did the trick.
Thanks again for the help, Chris. Marco On Jul 13, 7:03 pm, Marco <4584...@gmail.com> wrote: > Thanks Chris, > > One of my problems was actually related to the > product.ProductPriceLookup model. The ProductPriceLookup object for > the variation's product remained saved as a product and not as a > variation. This was causing all variations to appear as "not > available" on the site. I solved this by resaving the configurable > product after the creation of the varition (i.e: create product, > create variation, configurable_product.save), which modified the > productpricelookup. > > Everything else seems to work now, except that this issue (https:// > bitbucket.org/chris1610/satchmo/issue/1318/cant-add-more-than-one- > product-variation) is back! I will scrutinize my code and see if I can > find the real source of the postgre Integrity error and post on the > issue page. > > thanks again! > > On Jul 12, 7:58 pm, Chris Moffitt <ch...@moffitts.net> wrote: > > > > > > > > > Did you take a look at the satchmo_load_store > > command?https://bitbucket.org/chris1610/satchmo/src/8e4dfbc31cfd/satchmo/apps... > > > -Chris > > > On Tue, Jul 12, 2011 at 1:30 PM, Marco <4584...@gmail.com> wrote: > > > Hello, > > > > I am working on an app that imports inventory files into a satchmo > > > store. It is supposed to create configurable products and variations > > > automatically. I got pretty much everything working except for the > > > creation of variation, with which I have had HUGE problems. Can anyone > > > share a good, proven method of creating product variations when the > > > parent, product, and option items already exist? > > > > thanks, > > > > Marco > > > > -- > > > 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.