Preselect configurable product options based on simple product - magento

This is a very similar question to this:
Preselect configurable product options by simple product URL
But the important part of the answer just points to a dead link.
There are a million pages that explain how to get the configurable product from the simple product, but not the configurable product with the options set to what would produce the simple product.
I need this for a couple areas. First, there's a section of the site that will programatically add the product to the cart based on SKU. It finds the simple product via SKU, and I can get its parent product, but I can't add that to the cart with the options that will point it to the simple product.
Secondly, I need the link that's generated for the simple product to show the page for it's configurable product, with the appropriate options selected since we're generating links for an external service that gets the links to all the simple product pages which are currently disabled.
I've looked everywhere but can't find how to get the configurable product options selected.

Related

Magento configurable product not showing all posible combinations

I am using an attribute set for all the jeans products which have waist size, inseam and color. I managed to add the products to the configurable product but now all the options don't show in the front end. I already add all the options to the attributes and also linked the single products to the configurable product. The first product I created shows the correct attributes but the second one doesnt, instead it shows exactly the same options than the first product even when the extra options were already added as single products.
This is the product in question:http://geveysim.net/ValleyBigandTall/index.php/copper-cove-big-and-tall-stonewashed-denim-jeans.html
This is the product showing correctly: http://geveysim.net/ValleyBigandTall/index.php/casual-wear/jeans/greystone-big-and-tall-570-cargo-jeans.html
01) check the quantity in all simple products and make it as in stock
02) after changed go to configuration and re-index

How to remove information in Magento catalog, but only for specific product type

I am wondering how can I delete this two divs -
in Magento catalog, but only for specific product type. In short, I would like to have product type which would appear in catalog only with product-image and product-name, without - price, Out of stock, Add to Wishlist, Add to Compare.
It's possible to load different layout updates depending on loaded product type. You can see an example of how it's done in Magento for configurable products here: https://github.com/LokeyCoding/magento-mirror/blob/magento-1.7/app/design/frontend/base/default/layout/catalog.xml#L275-L287
It's possible because view action of product controller makes this to be executed: https://github.com/LokeyCoding/magento-mirror/blob/magento-1.7/app/code/core/Mage/Catalog/Helper/Product/View.php#L59-L60
You can change the design for any product from the admin.
You need to create a separate theme with a different product page which will have only the attributes you would like.
Then you can select the design for that specific product. Please see the screenshot, how you can change design for any product

make configurable product options independent on product view page --Magento

I am working on a Magento project and I need to know if there is a way to make a product's options independent to each other or unrequired. I need to use one of several at a time (I have 6 dropdowns).
I have tried add to cart by query string but all dropdown values were still required. I also tried to make all the options default, then modify the selected options in the observer, but I did not meet with success. See the screenshot below for more details.
Any help will be appreciated
Screenshot http://secure.justhost.com/~sharpwe1/img/imf.png
Configurable Products in Magneto are only parent products of Simple Products. Whatever you have as an attribute of a Configurable - a Simple Product has to be present for each. To do this out of the box in Magento, you should be looking into setting up a Simple Product with Custom Options.

Associated Product not showing the different price

I have just added a product and everything works fine. The product is a top with different attributes: size and color.
However I want to have reduced price on one of the different colors like in a sale, so I went into the associated products section and changed the price. However, whenever I go to the website and click on the color of the reduced price top, it still shows the original price and not the one I just changed.
How can I get it to show the price I changed it to?
Out of the box the only way to do this is via the price offsets for each configurable option under "Super product attributes configuration" as shown in the attached image:
Otherwise, you can use an extension such as Simple Configurable Products http://www.magentocommerce.com/magento-connect/simple-configurable-products.html
Go to system > Index Management and reindex Product Prices data
It sounds like you are using a configurable product with associated simple products. As far as I'm aware Magento only refreshes the product price for bundle product types.
I have seen a lot of people recommending this module.

magento configurable products options

In my store i have all the products as configurable products and there is no simple products displayed on store. Everything goes fine but then i noticed one problem.
After adding a product to cart by choosing the simple product from the configurable product page, i still gets configurable products sku in the cart , also it maintains through out the session. So we cant track actually which product sell.
Is it problem with any configuration or should i do anything to catch the simple products sku instead of configurable product SKU.
Please help me
This is probably a bit late if your store is filled with configurable products, but I've found this product a lifesaver in the past:
http://www.magentocommerce.com/magento-connect/Matt+Dean/extension/596/simple-configurable-products
It basically just adds the simple product to the cart using the simple product's price as the buying price. Custom options must also be added to the simple products rather than the config products.
As a result the purchased item is the simple product SKU rather than the configurable product.

Resources