Magento 1.7 - Getting a price rule to trigger with bundle contents - magento

In our Magento 1.7.0.2 store, we have a bundle product which contains 3 simple products which are checkbox selectable.
So a customer can choose any combination of the individual simple products, 2 products or all 3 and add to cart all from the 1 bundle page.
We want to add a shopping cart price rule which says if all 3 simple products are chosen, then apply a percentage discount. 'Buy all 3 together and save 10%' type of thing.
Seems simple enough, but we can't get the rules to trigger on an SKU match, even if we simply check for the presence of 1 of the simple product SKUs in the cart and even if we chose a 'contains' match which should be less fussy.
Is there a reason that this rule wouldn't work with a bundle? And if there's an issue can anyone recommend a workaround please?
thanks,
James

We sorted this by using a condition for "product type" and "cart price" rules to look for the specific price of all 3 items added.
It's a bit of a fudge, but the end results are the same.

Related

Limit cart to 1 product per attribute/type - Magento

Our company sells pharmaceuticals online and by law we are limited to how much of a particular drug a customer can purchase.
For singular products with one brand this is easily controllable through default Magento functionality, my problem arises when we have different brands of a particular drug.
In a nutshell I can currently limit a customer to 1 pack of paracetamol from brand A but there is nothing to stop them getting another pack from brand B at the same time.
I would like to be able to check the cart for products with a particular attribute and limit them to 1 per cart. Ideally this would be when the customer clicks add to cart and the message would be displayed via the default Magento alerts that we currently have.
EDIT: I think the easiest way to solve this would be to check the SKU codes currently in the basket when adding a product to the cart. If there is a match, Throw up an error else add the item to the cart.
I think this link will help you but you need to modify as per your requirement. http://ceckoslab.com/magento/magento-check-if-product-is-in-cart/..
This link is to check the cart whether the same product is added or not? So modify this as per you requirement
You can set maximum allowed quantity in cart from admin panel. System->configuration. From left tab see catalog->inventory. Set Maximum qty allowed in shopping cart to 1.
If you want to add check on whole cart. see this paid extension

Addtional pack size attribute in magento shopping cart price rules

My catalog contains a number of configurable products where the configurable attribute is a custom attribute called pack_size.
ie:
T-shirt - single
T-shirt - pack of 10
T-shirt - pack of 25
I need to be able to access this attribute in my cart price rule so that if my rule applies a discount for 100 + t-shirts, this could be achieved by:
100 single t-shirts
10 packs of 10 shirts
4 packs of 25
2 packs of 25 and 5 packs of 10 etc etc...
Can anyone please help with this?
Thanks,
Matt
I think you can achieve this by building up the Shopping Cart Price Rule Conditions for each case. Are you familiar with how to set up a rule like that?
The logic is: Apply this discount if...
if (qty>99 and pack_size="t-shirt") or
if (qty>49 and pack_size="2 pack") or
if (qty>24 and pack_size="4 pack")
The top rule needs to be changed from ALL to ANY to get the or, or, or. Then in teh sub rules you want a product attribute combination rule. and then set up an additional rule for each pack size and its corresponding quantity. See the screenshot below (I used size in place of pack_size as an example).
You may need to set the pack_size attribute to be useable in shopping cart rules - that is under Catalog->Manage attributes->Attributes and then set Use for Promo Rule Conditions to yes. then I think it will need a re-index before it will show up as an option in the rule dropdown.

Price in Cart is not correct Magento 1.8

Today I've run into a new problem and can´t find a solution.
I've added some simple products and configurable products via MagMI. Everything is fine. Products are shown in the front-end as I want it. But following happens:
simple product 1 has a price of 49€, simple product 2 has a price of 90€.
Both are part of the same configurable product which has a price of 49€. Now, in cart, the single-price of both simples is 49€. (If I print out $_item->getSku() I get the right skus of the simple products, so I think, the products in cart are the correct ones)
How can I fix this?
It would be also helpful if someone could tell me where the subtotal is built exactly - I can't find this.
I would be thankful for all help or hints.
If the simple products are not visible individually then the price shown will be the price of the configurable product. The pricing variations on the associated single products are managed in the Associated Products tab of the configurable item.
Pricing is managed here as a plus/minus relative to the price of the main configurable.

Magento Qty Increments

Basically all my products in magento are single units, however everything is sold in packs say 10 units to a pack. Theres the Enable Qty Increments on the product options in Magento and then you enter the Qty increments, which works without problems. However by default when you go to the product on the front end, hit add to cart it tries to add just 1 unit not the minimum of 10 is there a way, when you hit add to cart it adds the minimum qty of 10 rather than 1?
I know this is a while after you posted the problem & you probably have a fix already..
We are looking at this problem ourselves.. & have an issue with Bundled products not allowing us to add more than one instance of the product on each page.. hard to explain..
What I am thinking to do is remove the quantity box from the actual product.. Customers can select in a drop down if they want packs of 5 - 10 - or singles.. if they require odd numbers they can adjust the number still in the checkout..
does that all make sense..
Add to cart & Qty box are on the products.phtml page i think... I am still looking at all my options though.. Setting up a selection of Grouped products at the moment..
Just a passing suggestion ;)
Edit.. // What we have done as a final solution.. Use // Promotions /
Shopping Cart Rules.. You can make specific rules for Bulk categories
& Products in set numbers.. This will be a lot easier for our staff to
manage.. just drop requested products into a category called "bulk"
..wish I had thought of it earlier :)
In Admin panel go to
System >> Configuration >> Catalog >> Inventory >> Product Stock Options and set Qty Increments to what you want.
Magento provides Bundled Products to achieve such sell of products in packets.
Create a Bundle Product and follow these steps at Bundled Items tab in product edit form
Add New Option
Provide Title, select input type checkbox or multiselect and set Is Required to Yes
Search your product in below grid and add this product providing "Qty to add" to 10
Add selected product to option and then save product.

magento upsell missing first item everytime

Magento ver. 1.7.0.2, Up Sells show on the product page but never the first product I add as an up sell. For example if I ad a,b,c,d as up sell products, and yes I am reindexing, I go check the product page and only b,c,d are displaying. It's not a specific product issue as it happens the exact same when mixing and matching simple & configurable products and testing with different items.
It seems to be like somewhere an array is starting at one instead of zero, any ideas?

Resources