Simple product with custom options in grouped product in Magento

22 Comments 15th JAN 2009 | Posted by Tomislav Bilic in Magento

Simple product with custom options in grouped product in Magento

Does the title sound complicated? Grouped Products display several products on one page.  For example – if you’re selling chef’s knives and you have the same knife in four sizes, you can make a grouped product to display all four sizes.  Customers can select the size(s) they want and add to cart from this page.  Another example would be a themed bedroom set – you can create a grouped product and sell the sheets, comforter, and pillow cases all from the same page.

Technically, we create a simple products and after that a grouped products. When we edit the grouped product, we will associate simple products to it.It works very fine, but some of you might have issue if a simple product has custom options. If that’s the case, and if costum options are set as required (default way), the simple product will not be associative to the grouped product. Let’s see what needs to be changed in that case.

On Magento site, there is a nice tutorial how to create a grouped product. Please read it first to become familiar with the process. If you don’t have to assign simple products with custom options to a grouped product, that tutorial will be enough.

In case you wish to have simple products with custom options listed, be sure you don’t set any of the custom options to be required.

Custom Options in Magento

If you like what you read, please share it.

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Yahoo! Bookmarks
  • Reddit
  • Technorati
  • Twitter
  • StumbleUpon
  • LinkedIn
  • Netvibes
  • NewsVine
  • Sphinn
  • Tumblr
  • Posterous

To post code in comments, place your code inside [code] and [/code] tags.

There are 22 comments (Add Yours +)

  • Tomislav
    Since you blog is honestly the best Magento Resource i have found yet on the net I thought I would ask this question here hope that is alright. (the magento forums i feel are at times very unresponsive). So I recently downloaded the modern theme and added all kinds of custom attributes to display various options on our products. But I hate the way they do the tabs at the bottom and prefer the old style tables in the default magento theme. so my question is where would I need to start hacking around to replace the modern theme code with the default magento themes code for just lower half of that page. Any help would be greatly appreciated, thanks in advance.

  • Hey Parky,

    Before you start, please be sure you read Magento’s Designer Guide.

    You have to know that you SHOULDN’T update default magento files, even the theme ones. Be sure to understand folder structure. Once you are ready, compare product info files of default and modern theme at: app/design/frontend/default/[theme]/template/catalog/product/view.phtml

    This is just a start so that you know where to start. Hope it helps.

  • @parky

    “the best Magento Resource…” … I’m disappointed, what about http://activecodeline.com :)

    Concerning your question. There are at least two files you need to modify: template/catalog/product/view/attributes.phtml and template/catalog/product/view/additional.phtml.

    Great help would be if you can learn (if you don’t know it by now) FireBug, Fire PHP (check http://activecodeline.com/utilize-firebug-and-firephp-to-speed-up-magento-development/)

    Cheers…

  • Hi,

    I am facing some problem with duplicate URL’s in magento. I have a product which is in three categories (Cat1, Cat2 and in Cat2 -> SubCat2 (subcategory of Cat2)), Now currently there are four url’s for one product,
    1. mywebsitename .com/cat1/my-product.html
    2. mywebsitename .com/cat2/my-product.html
    3. mywebsitename .com/cat2/subcat2/my-product.html
    4. mywebsitename .com/my-product.html

    But I want url like as and only one,
    1. mywebsitename .com/cat1/my-product.html

    Basically I want first category means Main category (Cat1) in the URL. Its difficult to find out which category is default, so that I think we can make a attribute which will contain that which is the default category for a particular product.

    I want to make a single URL for one product, single URL means it must be same, in listing, in viewing, in Shopping Cart, in Recently Viewed (sidebar) etc.

    I am not able to figure out which file or function I have to edit. I know there is a getProductURL() function in magento using which it takes URL’s but how it works and where to edit it exactly, because this function is in many files.

    Please tell me how to solve this problem.

    Thanks

  • Toni Anicic Says

    We faced the same problem with duplicated content when listing a single product in multiple categories. What you should do is turn off the category based URL structure from the Magento administration. Didn’t have time to come up with better solution but this one will provide you with the same link to product no matter what path the visitor or search engine bot takes. :)

  • Hi @Toni,
    Yes, we can disable category URL’s but we want to include categories.
    Please tell me some solution if you can.

    Thanks

  • Hi, Tomislav, I am new to Magento and now I really have lots of problem with its database. I want to modify functionality for custom option of product, but I don’t know how to access Magento database. Where’s code with sql query? Help me, please!

  • Hi, Tomislav, I created a simple product with some custom option (select box type) but I don’t know how to get this select box in grouped product in frontend layout, I tried so many times but still fail. Can you give me some hint? Thanks you so much. :)

  • Prashant – I know this is a bit of extra work, but I have found that you can create permanent re-directs of links using the URL Rewrites functionality. What if you go in there, and create re-directs for each of the links to your product that you don’t want? (eg. yoursite.com/cat2/subcat1/product.htm -> Redirect to yoursite.com/cat1/product.htm)

    Again, it’s extra work, but it does what you’re needing, and is also fairly search-engine friendly if you set those up as Permanent (301).

    This can be edited in Admin > Catalog > URL Rewrite Management.

  • For those seeking to reduce the duplicate content. I believe Magento now supports the Google meta tag which states the preferred URL for any given item. This way, rather than use the URL rewrites, the meta tag will correctly route users to your preferred URL which you could have be any valid URL for the product. So if a product was in multiple categories, you can specify whether to have the product be located at the base url (mysite.com/item.html), within a category (mysite.com/mycat/item.html) or… wherever!

  • How can you show the max price of the grouped products as well? To give a $min to $max display.

  • Hi,
    does anyone know how I can create a grouped product using configurables. I’ve searched and searched and watched the screencast on magento and I have a feeling it’s not possible. Is this right? Is there any other way? I am selling kids clothing and want to sell a skirt and tshirt as a matching set but I can’t add the configurable skirt and tshirt. It only allows me to add simple products. I am not a developer so I won’t understand programming terminology. Any help for a simple administrator?
    thanks
    Danica

  • I need a detail page, like
    http://www.blankapparel.com/Jerzees_29W.htm

    Please help

  • Looking for a solution where the option(s) for each simple product that is associated within grouped product is actually shown on grouped product page. Cannot find an answer anywhere and cannot think of alternative solution for my product. Anyone?

  • Great post dude. I have a major problem however, Ive assigned a custom option template to over 300 products. Now the client wants to remove one of the options. How do I update all the products custom options without having to go in to every product which would take years! Got no help from magento forum as usual.

    Thanks

  • you can get rid of duplicate URLs using canonical URLs. you will surely find an extension on the magento commerce for the same. so, no more duplicate URL will be detected by Search engines.

  • Yes, this solution works, but it’s useless if Custom options are important for Simple Product. On Product details page you’ll not see Custom Options selection. Only variant to choose quantity for Simple Products.

  • Hie great site can anyone help me i want to add link for each simple product listed under grouped product (Example : I have three simple products under grouped if customer click on any simple product it will open in new window so customer can see all the details of that product) any help is appreciated Thanks in Advance :)

  • can we include quantity discounts in the cart.

    For example a quantity of 1-10 the price is 20.00, for 11-20 the price is 17.00, for 21 + the price is 15.00

    Thanks,

  • Hi,

    I did try the suggested method, but my custom options is not showing up.
    Is there any file that I should check and edit as well?

    Thanks.

  • Leonard Michael Says

    This basically what I need done.

    On a product page, all the grouped products appear below with Quantity Boxes just like I want, but there not behaving the way I need them to. They are giving the Tiered Prices “per product” not accumulatively .

    The way it “should” work is if the Tier Pricing goes something like 1-12 watches @$10, 13-24 watches @9.50, and 25+ watches @ 9.00. They should be able to choose 5 of the blue, 6 of the green, 7 of the red, etc. And “that total” *(the accumulative total) should then show the Tier Price discount.

    Not “per product” like it’s doing now.

    Any ideas on how to accomplish this task?

    Respectfully,
    LMW

  • I’m not sure if this has been address or not (I didn’t read through all the comments), but I wrote up a blog post detailing how to associate simple products WITH required options to a grouped product, using only a few core overrides. If it helps anyone, check it out : http://www.brimllc.com/2010/07/magento-associating-simple-products-with-required-options-to-a-grouped-product/

Leave a Comment

Please wrap all source codes with [code][/code] tags.
Magento Design and Development | Magento SEO | iPhone Application Development Web Application Development with ZEND | WordPress Ecommerce | WordPress development
Sitemap

Inchoo - webappsolutions | 2009