How to prevent certain items from being added to the cart first in magento1 - cart

As the title I would like to disable prioritization of certain items from being added to the cart In Magento 1.
For example, I want to treat a product with a price of 0 as not being able to put it in the cart, and put the product with a non-zero price first, followed by the product with a price of 0.
Is there any way?

Related

Volusion Soft Add To Cart - Show cart Total instead of Subtotal

In the Volusion shopping carts "soft add to cart" feature, which is turned on in product options with "Enable Add To Cart Popup", the popup shows the "Subtotal" of products currently in the cart.
The issue is this Subtotal does not include quantity discounts and therefore shows customers a higher price than the actual Subtotal after discounts are applied.
For that reason, we would like to display the cart Total, which includes any quantity discounts applied.
The problem is, I cannot find a place where this can be done in the HTML we have access to and if I were to find it, I'm not sure of the proper Volusion syntax to use to call up the Total instead of the Subtotal.
Thanks!
I had a different issue, but the same problem (soft add to cart did not display the proper info).
In my case, we allow engraving on our products, for an additional charge, and when selected this option was not displayed in the popup cart. As a result, customers were not sure if they chose it or not.
My solution was to add a Shopping Cart block to the page, as part of the template, using jQuery.
If you call http://yourUrl/AjaxCart.asp you'll see the discount info you need in the JSON data, as well as the line items in the order.

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

Magento custom pricing rule

I need a custom pricing rule that can be used with fixed quantities. I need to apply discounts to certain groups of items in the cart. I think a custom salesrule would be the way to go but I need the collection of products in the cart instead of a single product. Any ideas?
EDIT
To clarify, I need to be able to have two particular items within a specified category have a discount applied. Let's call them product A and product B. The quantity of product A and product B must sum up to a specified number in the shopping cart rule, for example, 100 (quantity 50 for product A and quantity 50 for product B typically). This rule would need to apply to be applied to products/sets of products/the cart multiple times, e.g., product C and product D should have the discount applied if their quantities sum to 100.
Product A/B could be added to the cart again but as a quantity that does not qualify for the discount, i.e. a quantity < 100.
Use "shopping cart price rules" under "Promotions"
Use a combination of "Conditions" and "Actions"
Use the "Conditions" to determine when the rule will start.
Use the "Actions" to determine which items to apply the rule to.
That will allow you to say something like "If customer has a blue jacket, red jacked, and orange jacket, discount the orange jacket 20%" or something like that.
Tip: Attributes can be used in actions and conditions. If you dont see the attribute there to select from, go to Catalog>Attributes>Manage Attributes, open the attribute you want to use (such as sku), and make sure its set to "Use for Promo Rule Conditions" "YES"
If your rule doesnt work, keeping playing with it. It has to be exact in order to work.
Hope this helps!

How to not allow 0 quantity products in shoppingcart rule in Magento?

I have set up shopping cart rule for 20% discount over $1000.
But I have to add one more condition for those products should not be included with quantity 0.
I have enabled backorder. So how can I add this product quantity is 0 or not in Shopping cart rule.
Please help
You can add multiple conditions in Magento. Find the '+' button near the first condition and set the second condition that you want. It is as easy you can think of.

Limiting products that can be bought/ added to cart in Magento

So our store basically sells 6month and annual subscriptions to our businesses website. I was wondering if there was a way to make it so that they can only add one subscription (product) to the cart, not multiples, so customers dont make the mistake of buying double subscriptions?
To limit only one item per order
Create a custom module with a observer to disallow adding items if the cart already has quantity (see getItemsQty()). You should also be aware of updateItem() which could be used to change the quantity of items in one's cart
checkout_cart_update_items_after
checkout_cart_product_add_after
checkout_cart_add_product_complete
checkout_cart_update_item_complete
checkout_cart_save_before
checkout_cart_save_after
See
- Magento - Adding multiple products to cart programatically
To limit one of each product per order
You can limit the maximum quantity of a product that can be added to your shopping cart by editing the value on the Inventory tab when in product admin.
See Magento: limit product max quantity to 1 per order. quantity 2 = 2 orders

Resources