I resolved the pricing problem by setting the script to create things correctly, where a ConfigurableProduct stands alone and each variation of the product is an individual ProductVariation. It looks like you didn't have this issue because your spreadsheet was created for variations/configurability. Mine wasn't. It took a while to figure out that CPs should be standalone without a variation on the same product. Each CP should be a master product, and then individual variations standalone. In this setup, it works fine. I am not zeroing the price.
Thanks for the ProductPriceLookup rebuild line, that does resolve that issue. Now I have one more problem, and I could solve it myself by copying files manually, but such a way is slow and I'd like to know what you all think is the best way to handle this. Right now, when an image is set, it is moved out of its directory into Satchmo's directory. I don't want the image to be moved -- I want it to be copied. Does anyone have a recommendation for the correct way to tell Satchmo to copy, not move, the product's image? I could copy the file in the script but as mentioned above, I'd like to know if there is something simple like a parameter I can pass that will just the copy the image from its place to Satchmo instead of moving it. Thanks for all the help so far. :) From Jeff On Thu, Dec 2, 2010 at 3:23 AM, Sebastian Zwack <[email protected]> wrote: > I'm using absolute prices on variations too and it's working for me. > Did you set the root ConfigurableProduct to zero? > Not sure if this is necessary but that's what I have. > > I encountered the out of stock msg myself and finally looked into it. > It's a refreshing problem. After all products have been created you > need to call ProductPriceLookup.objects.rebuild_all(). I added it to > the script. > > > On Dec 2, 8:34 am, Jeff Cook <[email protected]> wrote: >> So I'm using this script to add a lot of products. I'm trying to use >> the product variation features. I've got it mostly working, except: >> * I want to do an absolute price override for the different options, >> not just a price delta. I've set the price for the productvariation by >> hand, but it doesn't change when I select the other option. >> * Every configurable product says, "Sorry, we don't have any of that >> combination available." What do I need to set? I've been setting the >> items_in_stock thing on the product variation as well. >> >> What do I need to set to make these problems go away? >> >> Thanks in advance, and thanks for this script, it's been a very >> helpful starting point. :) >> >> From >> Jeff >> >> On Fri, Nov 26, 2010 at 9:08 AM, Sebastian Zwack >> >> <[email protected]> wrote: >> > Great that it's working for you now Jacques. >> > I also fixed a bug in the script when using hierarchical categories. >> >> > On Nov 26, 6:00 am, Jacques Nel <[email protected]> wrote: >> >> Hi Sebastian, >> >> >> My previous comment was not entirely accurate as I have been mistaken in >> >> the >> >> thought that simply putting an image path to the picture would not read >> >> the >> >> image. I have tried your script again and thank you for the brilliant job >> >> you have done. >> >> >> All is well in the land of Satchmo again :D >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "Satchmo users" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group >> > athttp://groups.google.com/group/satchmo-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Satchmo users" group. > To post to this group, send email to [email protected]. > 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. > > -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. 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.
