How to save additional attributes when purchasing a product? - magento

I have products in Magento which are heavily customized by the manufacturer (i.e. color) but these attributes do not change the product price. For example you can select white or blue product, but the price is the same. I have 4-5 similar attributes for the product, which customer selects via javascript, and gets a preview right there on the Product view page.
Any idea how to pass these attributes on (to the following steps in the checkout process), so that I can a) show them in the Shopping Cart (under product name) b) get them in the order and admin module (where I need to regenerate preview again, this time for the merchant).
I already have a custom module so if I have to override some Magento code and/or templates that is fine.

You could:
Create a custom module that add these options programmatically to additional_options when your items are added to cart. See Add options to quote item
Create custom option for each product or configurable products. See Adding Custom Product Options in Magento

Related

Removing product from item-options in magento checkout cart

Is it possible to show up the product separately in checkout/cart ,
I like to show up item-options added product separately, Is it possible in checkoout/cart ?
Please check this screenshot : https://docs.google.com/file/d/0BxQWcg4HaqrsUEgwV2o1V09zUGs/edit?usp=drivesdk , Thanks.
What added in the screenshot is a configurable product. I think what you are looking for is having 3 different line items in cart : 1)Actual Product 2) Plug 3) Cable
If you want to do so in 2 ways :
1) Override addAction in CartController.php and check if item is a configurable product. Load its simples and add them to cart instead of their parent configurable product.
2) Instead of having a configurable product, you can integrate a functionality something called freebie in which you will specify items you with the main product in backend. Override addAction in CartController.php and load the freeitems when their parent is added to cart. Add them to cart with the main product which will make different line item entries for all 3. Freebie functionality is not default in magento but you can get good modules for free in magentoconnect

Preselect configurable product options based on simple product

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.

Magento configurable products doesn't show attribute set inside tabs

I add some associated products to a configurable product. I used many attributes defined in attribute set "Phone_specification" for example for configurable phone.
It is supposed to show these specifications as a table (like CPU, GPU, LCD quality, ... so that to be compared later or ...) inside tabs below main description of configurable product.
But it shows nothing. It ignores these attributes which have been defined for configurable product. But in individual associated items it shows properly.
The tab on the product detail page that shows a list of product attributes will only show the attributes and their values assigned for that product. If it's a configurable product, it will not show the attributes for the simple products, because there could be more than one value.
If you want information to appear there, assign the attributes and values to the configurable product and they should appear.
Also for the attributes to appear on the Product View Page, you must make sure that the Visible on Product View Page on Front-end is set to Yes for that product.
Go to Catalog > Attributes > Manage Attributes
Click the attribute you want to appear on the product view page.
Set the option Visible on Product View Page on Front-end to Yes
Hit the Save button and flush your Magento caches.
Your attributes will now on the product view pages for the products they are directly assigned to.

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

Add two products to magento Shopping Cart simultaneously on click of add to cart button

I have been working on a LiftSuggest - an automatic Product Recommendations generator.
Now,I have introduced a bundling functionality which will bundle two products and assign discount.
For example,
On product page of A of the client's site,I(LiftSuggest) displays a bundle Saying "Buy A and B together and avail 10% off on net value". Now, when the user clicks on the add to cart button , I want both the products to be added simultaneously to cart. I had implemented the solution proposed on this link, but I need the products to be added on click of add to cart button,without entering the quantity or providing the check box.Just imagine that you can see a box( container) containing two products and on click of add to cart button-in that div container itself, both of them should be added to cart.I can make out that I need to store both the products in session, but I don't know exactly how to proceed.
Scripting language used:PHP
Please Help!
There are cart rules for various shopping carts. You can manipulate those rules through coding and achieve the desired output.

Resources