Manipulating Shopping Cart Rules - php

I’m just confused about how the shopping cart rule works. I have a promo, buy 5 get 5% discount. Under my settings, I have set the discount to be percentage, the discount amount is 5 while the maximum is amount is 9. I’ve also set the discount qty step to 5.
Then under the conditions, I’ve set Quantity in cart is equals or less than 9.
From my understanding this should mean any item as long as there are 5 or more (max 9) on my shopping cart, I should get a 5% discount. However, after performing some tests, I noticed that this is only applied if for example I buy something like so:
Item A Quantity - 5
If I buy something like:
Item A Quantity - 2
Item B Quantity - 3
Item C Quantity - 1
It doesn’t work. Is there a different setting I should do or is the shopping cart only item specific?
If it is, is there any way I can work around this to achieve what I need?

Yes if you got to Promotions > Shopping Basket Rules > Then create new rule.
under conditions set the following:
If ALL of these conditions are TRUE : Total Items Quantity equals or greater than 5
And second condition are TRUE : Total Items Quantity equals or less than 9
Then under actions:
for the Apply dropdown: choose Percent product price discount then below this add your percentage. like 5
This is the basic requirement. There are more settings you can / tweak apply here.
i hope this can sure help you, and i just tested in my setup as you require.

Related

Magento 2: Apply discount calculation on total item price instead of single item price

is it possible in the current version of Magento 2 to apply the discount calculation on the cart total price ((Qty in cart * Price) - Discount) instead of the single item price. ((Price - Discount) * Qty)
We use a lot of discount rules. Sometimes multiple rules. The current behavior of magento causes rounding errors with the currently used accounting software.
Is there a way to change the calculation behavior of Magento?
Thanks in advance.

Magento Negative product price

I need to find a way to create Negative product prices in Magento.
We use Magento both as Online shop and POS and in POS we sometimes need
to give a certain discount that simply can't be accomplished with coupons or shopping cart rules.
I did some googling but nothing turned out. Does anybody know how I could create this?
Example:
1 x Apple iPhone 6 - € 699,99
1 x Discount with subscription from provider X - € -100
Total : € 599,99
Thanks in advance!
Why can't you use coupons?
Another possible way to go with is a configureable product option. You need to setup this for each product, however. An option can have a negative price, in your case -100€. You can include an description as text on invoices, but it won't show you "599.99-100.00 = 499.99" but just "499.99" as row total price.

magento cart totals when using subscriptions

when using paypal subscriptions in magneto - by default, magento uses the awkward method of
separating the subscription items from grand totals
grand total is zero if only sub is in cart while it calculates physical good separately
subscription items cost is placed below grand totals so it looks like:
as shown, subscription items are not even totaled
subtotal
0.00
grand total
0.00
subscription items
sub1 $1.00
sub2 $1.00
In my view, it would be better like this:
this would be what i consider normal....
Subscription Items:
sub1 $1.00
sub2 $1.00
Subtotal $2.00
Other Cart Items:
T-Shirt 1.00
Subtotal $1.00
grand total
$3.00
or...
Subscription Items:
sub1 $1.00
sub2 $1.00
Other Cart Items:
T-Shirt 1.00
Subtotal $3.00
grand total $3.00
or simply...
Your Cart Items:
sub1 $1.00
sub2 $1.00
T-Shirt 1.00
Subtotal $3.00
grand total $3.00
has anyone faced this and found a way to fix paypal/magnetos bad coding so that everything in cart adds up like a normal shopping cart?
It is a standard practice to keep subscription items separate from current order items. The way you're outlining this would cause confusion with your customers, I can pretty much guarantee.
If you show a break down like you've explained...
sub1: 1.00
sub2: 1.00
tshirt: 1.00
subtotal: 3.00
grand total: 3.00
Your customers are going to wonder if they're being charged 3.00 on a recurring bases or only the 2.00.
The actual shopping cart items that are "normal" as you put it, would be setup and included in the one-time purchase. Subscription items, which would be billed on a recurring basis, would be shown separately to differentiate and make it very clear.
Now, a subscription profile may have an "initial amount" charged, and that could be included and shown as a cart item, but again, the recurring amount would typically be shown separately.
Here's an example of a site of mine that is completely custom. I toyed around with lots of ways to display this so it was clear to people, and this is the sort of thing I came up with.
As you can see there I'm showing the one-time amount as the subtotal and then the recurring amount under that as an additional charge that will happen based on the subscription included with the order. If I were to simply show 71.85 as the total that would be confusing to people (and I experienced that first hand before I moved to this format.)
So then here's another screenshot of what it looks like with shipping included, so the subtotal and grand total are updated accordingly, but the subscription amount is still separate.
I have other orders where the one-time is $0 and there's nothing but a subscription, but it still gets broken down as $0 + 1.95/mo or whatever the case may be.
So, personally, I think what Magento is doing makes sense and is going to be better for you once you have live customers shopping on your site. It breaks down exactly what will be charged now, one-time, vs. what will be charged on a recurring basis.

Magento shopping cart pricing rules not applying correctly

I have been having a problem with shopping cart price rules that aren't being applied correctly in the cart. The problem occurs when there are multiple discounts. Here is a specific example:
Discount A:
Product: 3 Book Set
Price: $20 each book
Discount: $10 (when you buy all 3)
Discount B:
Product: Suit (jacket and pants)
Price: $500 each piece
Discount: $50 (when you buy both)
Here is the situation:
When the suit is listed first and the books second, all discounts are taken ($50 + $10 = $60). However, when the books are first, only the suit discount is taken ($50).
Using firebug/firephp I have been able to see that for the first case, the discount is less than the price of the first product and all the discounts can be taken off that product.
In the second case, the discount is more than the price of the first product. When this happens, the $50 discount is spread across the 3 books. It takes $20 off the first book, $20 off the second, $10 off the third; but then the $10 discount for the books is not processed.
I need to know where to look next. What models/methods are involved in processing shopping cart price rules? How do I go about tracing the code so I can find out where the error happens?

Ubercart - Product discount based on total number of all products in cart

I'm using Ubercart in Drupal for a simple web store. I'm having trouble calculating a product discount based on the total number of all products in the cart. For example, I'm easily able to define discounts for if a user buys more than one of the same product, using the uc_custom_price module. But I want to give the discount if they buy more than one of any product. If they buy item 1 for 10 dollars and then add item 2 for 10 dollars, then I want both items to now cost 8 dollars.
Hopefully this makes sense. I searched the forums and googled for a couple of hours, but I just can't get this to work correctly. Thanks for your help.
Check Rules + Ubercart module. Or write custom code on order creation

Categories