Is there an easy way to set up a system which will copy data from my parent configurable product and apply to it’s simple children products? I would like to copy things like description, product attributes, etc.
Wondering if there is anything built in, or I would have to write a custom script.
Louis, as you don't want to use 'Quick simple product creation', why don't you try to import children products from csv file once you have created parents?
That is built in. Create the configurable product first, save it at least once, then on it's Associated Products tab use the "Quick simple product creation" form.
Related
I'd like to have a set of products that are available within a certain zip code range. All the products are supposed to be "grouped" underneath a single product. When you want to add a product to the cart, you type in your zip code, and get a list of products you can select which match the zip code entered.
How would one achieve something like this? I've looked into configurable products, but I don't believe that will give me the needed functionality out of the box.
My problem:
At one point, everything was working fine. Associated simple products for a configurable product inherited the configurable products' categories. Then we reorganized some categories and added a few new ones, and now all existing child products' assigned categories have been wiped out, and when I create a new configurable product and use quick create to associate child products, it no longer passes the parent product's category assignments along.
What I've tried:
I've tried assigning products to categories through Manage Categories > Desired Category > Category Products tab > Reset Filter button > Check off all desired products, but then Magento becomes unhappy with me and won't make the change. Now it looks like I'm also stuck going through all the simple products manually and assigning categories.
Solution I'm looking for:
I do not want an extension as a solution, as we already are using several, and have had issues with them conflicting with each other. Is there a simple way to programmatically assign a parent product's categories to its child product? Or perhaps there's some setting that I'm overlooking?
Any help would be greatly appreciated!
This is a task rather than a specific question.
It is pretty trivial to write an extension whose sole task would be to gather all of the configurable product, then set all of their child product's category_ids attribute to the original configurable's. Then use the cron to run it at certain intervals (like once a day or once a week).
It would be just as easy to make a stand alone script to do it too (though you would have to visit the page to run it).
I sell Pet Supplies. My distributor provides me with a CVS file with all the nessacrty information for me to upload it to my website. I currently upload it as a simple product. But I would like it to be more user friendly. I am using Magento Community 1.7. I have tried messing with the configurable products but this is not possible for the upload I use.
Example: A Dog Cage comes in different sizes. Currently it shows as simple products and shows 5 different sizes. I would like it to show like all the bigger named stores. Basically show a dropdown with the different options. I tried creating a configurable product and associate the products I uploaded as a simple product but this method will not work. Any other ideas of what I can do? I want my customers to be able to click:
iCrate Double Door and have the options 18x24....24x30 etc. How do the other companies get them listed like this?
You are doing the right thing - configurable products will give you what you want to achieve.
You need to install the Magmi configurable product plugin. You also need to set your csv up so the simple products come first, then the configurable. To automatically associate the simple product with the parent configurable on import you need an extra column specifying the configurable attribute (see the Magmi docs) and the skus need set up so the simple skus are extended versions of the configurable's sku. Again, the Magmi wiki on configurables will explain more.
You could also amend your grouped products to do similar and provide the list as a dropdown
check out this thread
http://www.magentocommerce.com/boards/viewthread/208482/#t297046
I have a Magento shop with 2 simple products
Great Red Cup
Great Blue Cup
and a configurable product
Great Cup
with those cups assigned.
The Red and Blue cups are visible in the search.
If the use clicks one of those simple products, the configurable product should be opened instead, but the right color should be preselected.
I am aware that a simple product can be assigned to multiple configurable products, so I would log an exception if two matching configurable products are found an just take the first one.
I think I have to catch the predispatch event of catalog/product/view and somehow replace the simple product by the configurable one.
How can I now pre-configure the right simple product one?
Is there an elegant solution for this?
I found a solution:
register observer on controller_action_predispatch_catalog_product_view
check if we have a simple product with a parent that is a configurable product
create a array that contains the configuration data of the simple product
pass this data to Mage::helper('catalog/product_view')->prepareAndRender() (third parameter)
stop dispatching by setting the FLAG_NO_DISPATCH on the front action
Full code is available in the Mestrona_ForwardToConfigurable module on github.
To preselect a simple product in a configurable product, the address of a simple product should look like this for example:
/mona-pullover-hoodlie.html#143=167&93=53
where
/mona-pullover-hoodlie.html - configurable product URL
143, 93 - attribute IDs
167, 53 - option IDs.
In order to change the URL of simple products, you can create a Plugin (Interceptor) for Magento\Catalog\Model\Product::getProductUrl(), where to generate the URL as in the example above.
Product selection using URL parameters from example above is already implemented in Magento out of the box.
I made VCT Simple Product URl module on Magento Marketplace that solves this problem with the choice of the first configurable product if there are several.
One idea would be to redirect to the configurable product if the simple products meets somes requirements :
have a new attribute "should_redirect_to_parent" to True (optionnal)
have at least a parent product (for that point, I let you follow the link of Alex)
ps: if you don't want to do a parent product lookup you could add a new attribute like "redirect_sku" or "redirect_product_id" in order to directly make a redirection on that product
For the redirection you should use the event catalog_controller_product_init_after and if the two previous conditions match you redirect the user to the configurable product.
ps: for performance optimisation, you could use instead the catalog_controller_product_init_before which would save an expansive and useless Product::load() but it requires that you build custom SQL queries to search for a parent product
Tell if you want some code examples
I created a configurable product and went to the associated products tab and used the quick create product feature to create a bunch of products based on my configurations. However non of these products appear in the list of associated products.
I noticed that the attributes I created don't even show up on the edit product page, on either the simple, or the configurable product.
I started first by creating 3 new attributes for a configurable product I want to add, I setup the options for each one and created a new attribute set based on default that included the new attributes I created.
When I create a new simple product or configurable product, you cannot see the attributes I have created. I have tried with the attributes in the general tab as well as on their own tab. But they are never visible when you try to edit the product.
I'm suspecting the reason I can't associate the products is due to this strange problem
I'm using 1.4.2
[edited to add my work flow/screen grabs]
http://www.buggyonpurpose.com/magento/configurable_products/01-attirubte_set.png
http://www.buggyonpurpose.com/magento/configurable_products/02-create_configurable.png
http://www.buggyonpurpose.com/magento/configurable_products/03-setup_configurable.png
http://www.buggyonpurpose.com/magento/configurable_products/04-quick_create.png
http://www.buggyonpurpose.com/magento/configurable_products/05-associate_product.png
http://www.buggyonpurpose.com/magento/configurable_products/06-manage_products.png
http://www.buggyonpurpose.com/magento/configurable_products/07-edit_product.png
It took a while but finally figured it out. When I created my attributes, in Attribute Properties where it says "Apply To:" I had only assigned it to configurable products, but you must also assign to simple products as well. (or just apply to all)
Keep in mind you will have to recreate your original configurable product before it will work.
Assuming you have created attributes with options and attribute set.
Can you please createConfigurable product again
Manage products -> Add Product select your default attribute set and Configurable product option.
The next window will be to choose the attributes that you have have created.
Lets say that there are three attributes color, fragrance, and volume as three different attributes and you pick fragrance here to associate the Configurables to the simples which you will be creating.
After you successfully created the Configurable product.
Create simple products based on the same attribute set default
you must be able to see all the attributes you created(color, fragrance, and volume).
Please pick any option for the Fragrance attribute.
Go to the Manage Products ->select to edit the Configurable product you have just created.
Go to the "Associated Products" tab and select "Any" from the drop down on the extreme left.
You must be able to see the Simple which you have created now
you must also be able to see the parent-child linking attribute "fragrance" present above the grid of products.
Make sure the simple is in "In stock" before you see whether they appear in front end.
Its not necessary for the attribute to appear in the Configurable product edit page.
Follow the above steps, hope it will guide you.
Please let me know if you unable to follow any of the above steps.
You can also read the below link, which is very useful to create a config product.
http://www.magentocommerce.com/knowledge-base/entry/tutorial-creating-a-configurable-product/
Cheers
I had the same issue.
A possible workaround is to add the attributes in the single products and after they become available through the configurable product at "Apply To:".