I think this is not possible out of the box.
The intuitiv way: Creating a configurable and two simples one with tax and one without won't work, because for the price calculation only the price and tax setting of the configurable is used.
I think there are two ways to achieve this:
- Change the way this is handled and use the price and the tax setting of the simple
- Hook into one of the add to cart events and add only the simple (then you have the problem that you can't click it if it is not visible or you have to add a rewrite or build an observer which redirects from the simple to the configurable)
So, if I understand your question correctly, you want to build a layered image display of selectable items?
Thus if I sell hats, the base image is a person's head, and then the user selects a hat, and the hat image is layered on top of the head?
Very interesting concept, and I would very much like to see the the end result :)
How I would do it:
The main product would need to be either a configurable, or a bundle product, with child products attached. This would give you the ability to have the customizable aspects using core magento functionality, so no extra code required.
The main product image would be placed in a container div, so its id/class is known. Lets call it 'image_container'. The child image for the parent product would be positioned absolute within this container.
Each of the child products would have the planned layered image as its image configured as its base image, again pure core functionality.
Now you'd need some custom js code to bind on the change events of the selectable child inputs (be they select/radios etc)
This would fire off some ajax to get the path to the image for that child as a result.
The resulting ajax call would then insert a new img element into the DOM, as a child for the container image 'image_container', and positioned absolute on top of the parent image. You can easily get the correct x/y coords from the known static parent image.
You could then pop new images in/out as the options are changed.
You could even make the child image draggable so the client can position it somewhere else on the parent (if this is required)
Hope this helps.
Best Answer
The custom options are stored in the table catalog_product_option. If you delete all the options for the product_ids that you specify.