Magento Configurable products and their quantity logic - magento

Magento version - 1.7.0.2
How works quantity for configurable products (CP)
For example, i have an attribute "size" with values from 20 to 32
So, i created 12 simple products with sizes 20, 21, 22, et**c (with **quantity = 1 for each product)
Then i created two different CP (cp1 and cp2) and selected in Associated Product tab those s*imple products with sizes*
If users buy cp1 with size = 20, then what system do?
i want to know detailed system logic in this case
Quantity of Simple product with size=20 would be 0 and cp1 would be "out of stock" or not?
Sorry for my english and thanks for any consultations about my issue!

In Magento strictly saying, a Configurable product(CP) is not a product in itself, but a collection of simple products. When you are choosing among 10 colors of a CP is nothing but choosing 10 different simple products of the same color.
Suppose a store have only one RED Ball and two magic boxes CP1 and CP2.
Now you can take out the RED Ball from any of the boxes,as it is a magic box. But when you take out the ball from one of the boxes(CP1), the RED Ball can't be taken out from the other box(CP2) or from the CP1 as there is only One RED Ball.
Now you can have hundreds of Magic Boxes and you can take the RED Ball from any of the boxes(if the magician allows it- in this case store owner), but when the stock of RED Ball is out then nobody can take out the RED Ball from any of the boxes.
And to make the product out of stock when the Quantity becomes zero, you have to go to
System->Configuration->Inventory(under catalog tab)
As shown in the image below, set the field marked in red to zero.
That's it. Hope I made your concept clear about Configurable Product.
Enjoy...

Yes, if you reduce the stock of an associated simple product, the stock status is updated in all of the parent configurable products that contain that simple product. The configurable products will only become out of stock if all of their own associated child products are out of stock.
The system logic is fairly complicated as Magento accommodates a number of built in product types, but is also designed to accommodate custom product types. Inventory can be managed (or not managed) in a variety of ways in these different product types.
When you complete an order in Magento, the quote object representing the shopping cart is converted to an order object. If you look in Mage/CatalogInventory/etc/config.xml you'll see that this module is observing events in the system that relate to inventory levels. A lot of these events are emitted by Mage_Sales_Model_Service_Quote::submitOrder() which is the method that is driving most of the conversion from a quote to an order. The CatalogInventory observer methods both reduce the inventory levels and issue requests to re-index the stock levels.
In Mage_CatalogInventory_Model_Stock_Status::updateStatus() on line 266 you can see the call that updates the stock status of all parents of a simple product when the simple product's stock status changes.

Related

Configurable products Design App for Magento

We are planning development of a jewellery design tool for a magento site.
Something like gem vara has.We are looking towards some pointers as to what will be the best approach. We can use configurable products but the problem is with product images. For example, a pendant can have 10-12 different kind of stones and we want to give user instant view of his/her selections.
For example, if user selects a blue stone, we would like the stones on the pendant to be replaced and blue color stones loaded.
There are two challenges -
1. If we create all images, the combinations would cross 200K images per product.
2. If we try to merge two images, and replace only the stones on selection, how we will define their position for each product ?
Magento 1.9.1.0 new feature is introduced that is "Configurable Swatches".
you can set multiple images if you set configurable products in magento. you can also set diffetent images for all products. customers can select different images in product listing page and product detail page. you can refer this link for more detail.
http://blog.emiprotechnologies.com/configurable-swatches-guide-magento-1-9-1-0/

Create a product in Magento with different colors (associated products) pointing to the same stock

Is it possible to create a product with different colors where each different color points to the same stock?
For example, I have created a configurable product with a color attribute. After creating the configurable product I create a couple of associated simple products for a few different colors. Instead of having each color have it’s own product qty / stock, I want all the colors to share the same stock.
So for example the configurable product is a lamp. The associated simple products are lamp green, lamp red etc. I want to tell Magento that the lamp product has 10 in stock. So when someone buys a lamp red, it will tell me there are only 9 lamps left in stock regardless of the color. Is this possible?
The way I have it now is that each associated simple product has it’s own stock, but this is not what I want in my case.
This functionality is not in vanilla magento, so you will need to create/obtain a module that handles it. this one seems to do what you need.
If you don't want to pay or prefer to do it yourself, perhaps and easy solution is to keep the stock of your products synchronized.. maybe use observe stock changes or use crons that detect and syncs when they are out of sync.

Magento: Configurable / Bundeld products ? How does it work exactly?

We're a little bit lost between configurable products, bundled products, using custom options, etc.
I'll tell you the result we would like to obtain:
We're a USB manufacturing company. And we want to sell custom USB keys via Magento.
We have about 50 different USB models available. For each model, the customer must be able to select the desired color (won't change the price), the desired capacity (1 GB, 2GB, 4 GB, etc - this will change the price, e.g. 20, 30, 40 % more of product's price). He must also be able to select the packaging of the key (eg box, plastic bag, leather bag, etc).
We want to use tier pricing, and show the price of the keys depending on the quantity AND on the capacity he selected.
A perfect example of what we want to do is: http://wowusb.com/plastic-custom-usb-flash-drive/usb-81.html.
We've tried using the SCP extension (Single Configurable Products), but don't really understand how to use it.
We don't really need to have associated products. One product for each USB model is OK, just having options (and tier pricing) on this one, just like the shop above.
Can you guide us on how to realise this ?
Any help will be greatly appreciated !
Thanks
The Simple Configurable Products extension will work well for this sort of thing, there's typically not a whole lot of configuration (just choose what parts of the configurable product you want to update when the user selects the options). The SCP extension will help greatly when it comes to tiered pricing.
To build a configurable option for what you are looking for, first you must make product attributes (drop-down type, global scope) for each attribute. This is in Catalog -> Attributes -> Manage Attributes. You would make one each for color, storage size and packaging. For each attribute you would add the different options available.
Once those are made, make sure to add them to the Attribute Set (Catalog -> Attributes -> Manage Attribute Sets) you will be using.
Now comes the work: You'll need to make a simple product for every combination available. For each simple product, you'll need to select the specific attributes created earlier, as well as set the tiered pricing for each simple product.
A rough idea math wise: 5 colors X 5 sizes X 3 packages = 75 simple products
This can be done via csv import, so that may save you some time, although you'll have to examine how tiered pricing is structured from within an exported list and copy it exactly. By the way, I recommend setting these products visibility to "Not Visible Individually", but don't disable them.
Now you can begin to build the configurable product. Once you start creating the new product, it will ask you which attributes to use, so select the color/size/packages and whichever else you want the products to be fine-tuned by.
Enter the general product information as normal. Price doesn't matter here (SCP extension doesn't use it).
Under "Associated Products", filter the grid view to find all the simple products you have created, and begin checking them off. If a product line turns red, it means that a product has already been selected with the exact same attributes.
Once you have a configurable product listed, you can play with the SCP extension settings (System -> Configuration -> SCP Config) to have the product behave as you want. The options under the Cart heading determines what you would like to display in the cart line. The options under the Product Page heading let you determine if you would like various sections of the configurable product to update with the corresponding simple product info (description, short description, main image, gallery images and additional info box).
When the user selects the last option, the product prices will automatically update, as well as show the tiered pricing box ("Buy X for $Y each and save Z%!").
One last thing, when using the SCP extension, do NOT add any "Custom Options" to a configurable product, they must be added to the simple products associated to the configurable product instead (Other product types are fine).

Magento add product size and attribute inventory

I think this is a common situation, I'm selling clothes and shoes and I need to have an option for sizes and attribute an inventory level for each. How could I do that?
Here is an example, I m selling shoes in sizes 41 to 45. I have 5 pairs of each except the size 45 which I only have 2.
(Keep in mind that clothes and shoes don t have the same measurement options).
Would be awesome if I could do it for all products in a category at the same time, even if that means having to go through the DB.
Thanks.
Creating a Configurable Product
There are a few steps involved:
Create the attributes that will be configurable by the user - for our example they will be Size and Color
Create the attribute set that will be assigned to the variant products - for our example, we’ll call it “T-shirt”
Create the individual variant products
Create the configurable product, and add the “T-shirt” attribute set
Add the individual variants to this configurable product
http://www.magentocommerce.com/knowledge-base/entry/tutorial-creating-a-configurable-product/
Adding a new attribute to the table isn't to difficult, but you need to find a good way of making sure it's not dirty. You do not want to add empty attributes to make sure you have room for enough products and you don't want to have too few. I was recommended using implode on an array to put it into a variable in which each element of the original ray is stored and separated by a character. You could then put this into one column. You can find some good information for updating a magento table here: http://www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-6-magento-setup-resources/

Change Related Products Depending on Size - Magento

Really hope someone can help point me in the right direction with this, i have been going round in circles for a quite a while.
Background Info
i) I have a configurable product with 3 associated simple products (different sizes)
ii) I have some related products that are specific to each size (they are each different prices & simple products also)
iii) I have linked the related products to the relevant different size simple products
If i go to the simple product directly, the correct related product shows
Problem
How do i make it so on the main configurable product. that when the customer selects the size, that it shows the correct related product to buy with that size? (as Add on Buys)

Resources