Spec for Magento module.
We recently posted this requirement, but have reworded the spec to ensure everyone is aware of the full features we need.
On a new Magento website we are creating, the customer is only allowed to purchase 1 of each particular product SKU, due to it being a samples offering.
At present we have set the maximum qty allowed in cart to 1 and this works as required for simple products.
In offering pre-built sample packs with a selection of preselected products, as far as I see it the best way to do it is to use bundled products.
However, when a bundle product is added to the cart alongside a simple product that is also part of the bundle, Magento doesn't register the clash of SKU and allows multiples of each product in the cart (i.e. one from the single product and one from each bundle the product is in).
We require a Magento module to work with magento verson 1.6.2.
The software needs to be written as a module so should not overwrite any core files.
We need a new product type, based on the bundle product type. We’ll call it samplepack product type.
The samplepack will only need to have quantity of 1 for each associated product and customer will not be able to change that quantity. Customer will also not be able to select / deselect whether the product is part of the pack.
It can look a bit like this: [url removed, login to view] with a few changes:
• the From / To price at the top will be removed
• The “Price as configured” will say “Sample Pack Price” (at both top and bottom)
• The Price will display the full price and discounted price
• The Checkboxes will be removed – customer doesn’t get the choice to remove items from pack
• The price next to each associated product will display full price (with strikethrough styling) and special price (no + sign required here)
The samplepack will be added to the cart as a single product (like the bundle product is). However the SKU of each associated simple product will be compared with those already in the cart (including those in other sample packs) and if there is a duplicate, the simple product will only be allowed in the cart once, and the samplepack product price will be adjusted.
The customer will get a message explaining what has happened.
Example of functionality:
We have 4 products, A,B, C, D all costing £1
We have 2 samplepacks:
1. PACK1 contains products A, B and C (so costs £3)
2. PACK2 contains B, C and D (so costs £3)
Customer adds simple product A to cart and then adds PACK1.
When PACK1 is added, product A is removed from PACK1, and the price is adjusted to £2 (i.e. a samplepack is added with just products B and C)
Customer gets a message explaining that product A was removed from PACK1 as it’s already in the cart.
Customer adds PACK1 and then PACK2 to the cart.
PACK 1 goes into the cart as expected at £3. When PACK2 is added, products B and C are removed from PACK2 so the price of PACK2 becomes £1 and only contains product D
Customer gets a message explaining that products B and C were removed from the PACK2 as they were already in the cart.
Customer adds Simple product A to the cart, then PACK2, then PACK1.
Product A and PACK2 are both added in full as they don't clash. When Pack1 is added the customer is informed that all products in this pack are already in the cart and nothing extra is added.
There are other permutations but I'm sure you get the idea - each product only goes into the cart once
The website should only ever utilize simple products and samplepacks so the SKU will not need to be checked against grouped, configurable or bundle product SKU’s.
The customer should also be able to add this product type to the cart from the category view, without being taken to look at the product configuration. If not possible, then the “add to cart” button on catalog view should say “view pack” instead.