Shopping Cart total percentage discount when specific item is in cartHow to display the total discount amount on my shopping cart?How to apply 2 shopping cart price rules in magentoShopping Cart Price rule - tieredModify Shopping Cart Rules Function to apply discounts by Percentage of Original Price Instead of Product Price DiscountCreate discount if products from two specific categories are in cartHow can I get discount amount and grand total amount in mini cart ? (Magento 1.9)How to retrieve individual discount split up (shopping cart price) on Cart pageShow item discount in top cart (mini cart)Shopping Cart rule to apply fixed discount on different productMagento 2: How to get discount price for each cart rule in quote
How does Captain America channel this power?
How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?
Critique of timeline aesthetic
Mistake in years of experience in resume?
Extension of 2-adic valuation to the real numbers
Why was the Spitfire's elliptical wing almost uncopied by other aircraft of World War 2?
I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?
Aliens crash on Earth and go into stasis to wait for technology to fix their ship
Like totally amazing interchangeable sister outfits II: The Revenge
Is the claim "Employers won't employ people with no 'social media presence'" realistic?
Was there a shared-world project before "Thieves World"?
Can someone publish a story that happened to you?
Does tea made with boiling water cool faster than tea made with boiled (but still hot) water?
How do I reattach a shelf to the wall when it ripped out of the wall?
Was there a Viking Exchange as well as a Columbian one?
Which big number is bigger?
What is causing the white spot to appear in some of my pictures
Get consecutive integer number ranges from list of int
Classification of surfaces
Can SQL Server create collisions in system generated constraint names?
Multiple options vs single option UI
"The cow" OR "a cow" OR "cows" in this context
How to stop co-workers from teasing me because I know Russian?
Check if a string is entirely made of the same substring
Shopping Cart total percentage discount when specific item is in cart
How to display the total discount amount on my shopping cart?How to apply 2 shopping cart price rules in magentoShopping Cart Price rule - tieredModify Shopping Cart Rules Function to apply discounts by Percentage of Original Price Instead of Product Price DiscountCreate discount if products from two specific categories are in cartHow can I get discount amount and grand total amount in mini cart ? (Magento 1.9)How to retrieve individual discount split up (shopping cart price) on Cart pageShow item discount in top cart (mini cart)Shopping Cart rule to apply fixed discount on different productMagento 2: How to get discount price for each cart rule in quote
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a specific type of shopping cart rule I'd like to create. You can think of it as a 'variety discount'; the more products from different categories the customer has in their basket, the greater a discount they get from their order:
Example
Categories:
Shoes (3% discount)
Coats (2% discount)
Jackets (2% discount)
Sale (Exempt from discount)
Accessories (5% discount)
Scenario:
A customer adds a product to the (empty) cart from category Shoes worth £40, this adds a 3% discount to the cart total, resulting in £38.80 (40 - 3%)
Then a product from the Coats category worth £200 is added to the cart. The total discount increases to 5% for the cart total, resulting in £228 (240 - 5%)
A second product from shoes is added worth £30. As the price rule has already been applied, the discount isn't affected, resulting in a total of £256.50 (270 - 5%)
A sale item is added to the cart worth £10, at a reduced price of £8. This is exempt from the deduction for the other products, giving a total of £264.5.
The Shopping Cart Price Rule interface allows you to discount a fixed amount from the cart, and the alternative is applying a percentage amount to items that match the conditions set.
Is the described scenario above possible without writing a custom extension? If not some advice on where to get started would be appreciated as Magento is still a little alien to me.
magento-1.9 price shopping-cart-price-rules discount price-rules
add a comment |
I have a specific type of shopping cart rule I'd like to create. You can think of it as a 'variety discount'; the more products from different categories the customer has in their basket, the greater a discount they get from their order:
Example
Categories:
Shoes (3% discount)
Coats (2% discount)
Jackets (2% discount)
Sale (Exempt from discount)
Accessories (5% discount)
Scenario:
A customer adds a product to the (empty) cart from category Shoes worth £40, this adds a 3% discount to the cart total, resulting in £38.80 (40 - 3%)
Then a product from the Coats category worth £200 is added to the cart. The total discount increases to 5% for the cart total, resulting in £228 (240 - 5%)
A second product from shoes is added worth £30. As the price rule has already been applied, the discount isn't affected, resulting in a total of £256.50 (270 - 5%)
A sale item is added to the cart worth £10, at a reduced price of £8. This is exempt from the deduction for the other products, giving a total of £264.5.
The Shopping Cart Price Rule interface allows you to discount a fixed amount from the cart, and the alternative is applying a percentage amount to items that match the conditions set.
Is the described scenario above possible without writing a custom extension? If not some advice on where to get started would be appreciated as Magento is still a little alien to me.
magento-1.9 price shopping-cart-price-rules discount price-rules
I think it would help if you edit your question and add a specific example to it (with real prices and percentages). This will make us understand your question better and might get you an answer sooner...
– 7ochem
Feb 24 '15 at 20:13
Thanks @7ochem - I've modified the example scenario to include a more detailed description of expected behaviour and real numbers, which should hopefully help visualise the expected outcome.
– Gaffen
Feb 26 '15 at 10:39
Sorry with the update you made it explains it a little better. The logic behind it is not what i thought it would be. Doesn´t seem very appealing as people will just order seperately to get the most discount in my opinion
– Klettseb
Feb 26 '15 at 10:45
You are of course right, @Thomas - I've updated the logic again to reflect a saner implementation. I had initially held off on this as it seemed like unnecessary complication - but I guess I might as well get a full answer if I'm going to ask for one.
– Gaffen
Feb 26 '15 at 11:21
add a comment |
I have a specific type of shopping cart rule I'd like to create. You can think of it as a 'variety discount'; the more products from different categories the customer has in their basket, the greater a discount they get from their order:
Example
Categories:
Shoes (3% discount)
Coats (2% discount)
Jackets (2% discount)
Sale (Exempt from discount)
Accessories (5% discount)
Scenario:
A customer adds a product to the (empty) cart from category Shoes worth £40, this adds a 3% discount to the cart total, resulting in £38.80 (40 - 3%)
Then a product from the Coats category worth £200 is added to the cart. The total discount increases to 5% for the cart total, resulting in £228 (240 - 5%)
A second product from shoes is added worth £30. As the price rule has already been applied, the discount isn't affected, resulting in a total of £256.50 (270 - 5%)
A sale item is added to the cart worth £10, at a reduced price of £8. This is exempt from the deduction for the other products, giving a total of £264.5.
The Shopping Cart Price Rule interface allows you to discount a fixed amount from the cart, and the alternative is applying a percentage amount to items that match the conditions set.
Is the described scenario above possible without writing a custom extension? If not some advice on where to get started would be appreciated as Magento is still a little alien to me.
magento-1.9 price shopping-cart-price-rules discount price-rules
I have a specific type of shopping cart rule I'd like to create. You can think of it as a 'variety discount'; the more products from different categories the customer has in their basket, the greater a discount they get from their order:
Example
Categories:
Shoes (3% discount)
Coats (2% discount)
Jackets (2% discount)
Sale (Exempt from discount)
Accessories (5% discount)
Scenario:
A customer adds a product to the (empty) cart from category Shoes worth £40, this adds a 3% discount to the cart total, resulting in £38.80 (40 - 3%)
Then a product from the Coats category worth £200 is added to the cart. The total discount increases to 5% for the cart total, resulting in £228 (240 - 5%)
A second product from shoes is added worth £30. As the price rule has already been applied, the discount isn't affected, resulting in a total of £256.50 (270 - 5%)
A sale item is added to the cart worth £10, at a reduced price of £8. This is exempt from the deduction for the other products, giving a total of £264.5.
The Shopping Cart Price Rule interface allows you to discount a fixed amount from the cart, and the alternative is applying a percentage amount to items that match the conditions set.
Is the described scenario above possible without writing a custom extension? If not some advice on where to get started would be appreciated as Magento is still a little alien to me.
magento-1.9 price shopping-cart-price-rules discount price-rules
magento-1.9 price shopping-cart-price-rules discount price-rules
edited Feb 26 '15 at 11:20
Gaffen
asked Feb 24 '15 at 18:59
GaffenGaffen
414
414
I think it would help if you edit your question and add a specific example to it (with real prices and percentages). This will make us understand your question better and might get you an answer sooner...
– 7ochem
Feb 24 '15 at 20:13
Thanks @7ochem - I've modified the example scenario to include a more detailed description of expected behaviour and real numbers, which should hopefully help visualise the expected outcome.
– Gaffen
Feb 26 '15 at 10:39
Sorry with the update you made it explains it a little better. The logic behind it is not what i thought it would be. Doesn´t seem very appealing as people will just order seperately to get the most discount in my opinion
– Klettseb
Feb 26 '15 at 10:45
You are of course right, @Thomas - I've updated the logic again to reflect a saner implementation. I had initially held off on this as it seemed like unnecessary complication - but I guess I might as well get a full answer if I'm going to ask for one.
– Gaffen
Feb 26 '15 at 11:21
add a comment |
I think it would help if you edit your question and add a specific example to it (with real prices and percentages). This will make us understand your question better and might get you an answer sooner...
– 7ochem
Feb 24 '15 at 20:13
Thanks @7ochem - I've modified the example scenario to include a more detailed description of expected behaviour and real numbers, which should hopefully help visualise the expected outcome.
– Gaffen
Feb 26 '15 at 10:39
Sorry with the update you made it explains it a little better. The logic behind it is not what i thought it would be. Doesn´t seem very appealing as people will just order seperately to get the most discount in my opinion
– Klettseb
Feb 26 '15 at 10:45
You are of course right, @Thomas - I've updated the logic again to reflect a saner implementation. I had initially held off on this as it seemed like unnecessary complication - but I guess I might as well get a full answer if I'm going to ask for one.
– Gaffen
Feb 26 '15 at 11:21
I think it would help if you edit your question and add a specific example to it (with real prices and percentages). This will make us understand your question better and might get you an answer sooner...
– 7ochem
Feb 24 '15 at 20:13
I think it would help if you edit your question and add a specific example to it (with real prices and percentages). This will make us understand your question better and might get you an answer sooner...
– 7ochem
Feb 24 '15 at 20:13
Thanks @7ochem - I've modified the example scenario to include a more detailed description of expected behaviour and real numbers, which should hopefully help visualise the expected outcome.
– Gaffen
Feb 26 '15 at 10:39
Thanks @7ochem - I've modified the example scenario to include a more detailed description of expected behaviour and real numbers, which should hopefully help visualise the expected outcome.
– Gaffen
Feb 26 '15 at 10:39
Sorry with the update you made it explains it a little better. The logic behind it is not what i thought it would be. Doesn´t seem very appealing as people will just order seperately to get the most discount in my opinion
– Klettseb
Feb 26 '15 at 10:45
Sorry with the update you made it explains it a little better. The logic behind it is not what i thought it would be. Doesn´t seem very appealing as people will just order seperately to get the most discount in my opinion
– Klettseb
Feb 26 '15 at 10:45
You are of course right, @Thomas - I've updated the logic again to reflect a saner implementation. I had initially held off on this as it seemed like unnecessary complication - but I guess I might as well get a full answer if I'm going to ask for one.
– Gaffen
Feb 26 '15 at 11:21
You are of course right, @Thomas - I've updated the logic again to reflect a saner implementation. I had initially held off on this as it seemed like unnecessary complication - but I guess I might as well get a full answer if I'm going to ask for one.
– Gaffen
Feb 26 '15 at 11:21
add a comment |
1 Answer
1
active
oldest
votes
The individual sales rules are possible, so you can create a cart rule that will give a percentage for any order containing items bought from a given category. You can then create other rules for other categories. So each of them could cumulatively give e.g. 2% off the order.
However, those rules are not aware of each other. So they do not know what the current discount is (from the other rules) and cannot then have the 'if' to decide whether a further discount is possible.
As for the product specific discount, you can do that one with a rule or a just a special price on the product.
If you want to do this with a module then the easy bit is coding the rules that you want. Quite a few other changes are needed. There may be a need to update templates (to show your extra line item), some xml for 'totals_sort' order - it goes on.
I also feel that your original sales idea might actually be confusing for customers. Sometimes the spend X get Y rules need to be easy for people to understand.
Thanks for the input, I did manage to get part of the way by stacking the rules the way you describe; creating several price rules that look for an item in the cart to add a discount, but the CMS only seemed to offer a fixed cart discount rather than a percentage - is there some way of enabling this? I agree the idea of a variety discount is a little unusual, unfortunately I'm just the guy being asked to implement it though. I know the Magento sales rules are very powerful, so I was hoping to avoid making an extension if possible
– Gaffen
Feb 26 '15 at 12:59
You can do percentages, however sometimes the labels on the boxes are not that clear, e,g, says 'amount' instead of 'amount or percentage'. Give it a few tests.
– Henry's Cat
Feb 26 '15 at 15:21
Thanks, I will take a look into this. If I manage to work it out I'll include the location of the CMS option that allows this as it's not obvious to beginners
– Gaffen
Feb 26 '15 at 16:45
If you want to go for doing it in your own code that can be done too, with a line item. Tutorials for that are hard to find online, contact me if you want some sample code for that.
– Henry's Cat
Feb 26 '15 at 16:54
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f58575%2fshopping-cart-total-percentage-discount-when-specific-item-is-in-cart%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The individual sales rules are possible, so you can create a cart rule that will give a percentage for any order containing items bought from a given category. You can then create other rules for other categories. So each of them could cumulatively give e.g. 2% off the order.
However, those rules are not aware of each other. So they do not know what the current discount is (from the other rules) and cannot then have the 'if' to decide whether a further discount is possible.
As for the product specific discount, you can do that one with a rule or a just a special price on the product.
If you want to do this with a module then the easy bit is coding the rules that you want. Quite a few other changes are needed. There may be a need to update templates (to show your extra line item), some xml for 'totals_sort' order - it goes on.
I also feel that your original sales idea might actually be confusing for customers. Sometimes the spend X get Y rules need to be easy for people to understand.
Thanks for the input, I did manage to get part of the way by stacking the rules the way you describe; creating several price rules that look for an item in the cart to add a discount, but the CMS only seemed to offer a fixed cart discount rather than a percentage - is there some way of enabling this? I agree the idea of a variety discount is a little unusual, unfortunately I'm just the guy being asked to implement it though. I know the Magento sales rules are very powerful, so I was hoping to avoid making an extension if possible
– Gaffen
Feb 26 '15 at 12:59
You can do percentages, however sometimes the labels on the boxes are not that clear, e,g, says 'amount' instead of 'amount or percentage'. Give it a few tests.
– Henry's Cat
Feb 26 '15 at 15:21
Thanks, I will take a look into this. If I manage to work it out I'll include the location of the CMS option that allows this as it's not obvious to beginners
– Gaffen
Feb 26 '15 at 16:45
If you want to go for doing it in your own code that can be done too, with a line item. Tutorials for that are hard to find online, contact me if you want some sample code for that.
– Henry's Cat
Feb 26 '15 at 16:54
add a comment |
The individual sales rules are possible, so you can create a cart rule that will give a percentage for any order containing items bought from a given category. You can then create other rules for other categories. So each of them could cumulatively give e.g. 2% off the order.
However, those rules are not aware of each other. So they do not know what the current discount is (from the other rules) and cannot then have the 'if' to decide whether a further discount is possible.
As for the product specific discount, you can do that one with a rule or a just a special price on the product.
If you want to do this with a module then the easy bit is coding the rules that you want. Quite a few other changes are needed. There may be a need to update templates (to show your extra line item), some xml for 'totals_sort' order - it goes on.
I also feel that your original sales idea might actually be confusing for customers. Sometimes the spend X get Y rules need to be easy for people to understand.
Thanks for the input, I did manage to get part of the way by stacking the rules the way you describe; creating several price rules that look for an item in the cart to add a discount, but the CMS only seemed to offer a fixed cart discount rather than a percentage - is there some way of enabling this? I agree the idea of a variety discount is a little unusual, unfortunately I'm just the guy being asked to implement it though. I know the Magento sales rules are very powerful, so I was hoping to avoid making an extension if possible
– Gaffen
Feb 26 '15 at 12:59
You can do percentages, however sometimes the labels on the boxes are not that clear, e,g, says 'amount' instead of 'amount or percentage'. Give it a few tests.
– Henry's Cat
Feb 26 '15 at 15:21
Thanks, I will take a look into this. If I manage to work it out I'll include the location of the CMS option that allows this as it's not obvious to beginners
– Gaffen
Feb 26 '15 at 16:45
If you want to go for doing it in your own code that can be done too, with a line item. Tutorials for that are hard to find online, contact me if you want some sample code for that.
– Henry's Cat
Feb 26 '15 at 16:54
add a comment |
The individual sales rules are possible, so you can create a cart rule that will give a percentage for any order containing items bought from a given category. You can then create other rules for other categories. So each of them could cumulatively give e.g. 2% off the order.
However, those rules are not aware of each other. So they do not know what the current discount is (from the other rules) and cannot then have the 'if' to decide whether a further discount is possible.
As for the product specific discount, you can do that one with a rule or a just a special price on the product.
If you want to do this with a module then the easy bit is coding the rules that you want. Quite a few other changes are needed. There may be a need to update templates (to show your extra line item), some xml for 'totals_sort' order - it goes on.
I also feel that your original sales idea might actually be confusing for customers. Sometimes the spend X get Y rules need to be easy for people to understand.
The individual sales rules are possible, so you can create a cart rule that will give a percentage for any order containing items bought from a given category. You can then create other rules for other categories. So each of them could cumulatively give e.g. 2% off the order.
However, those rules are not aware of each other. So they do not know what the current discount is (from the other rules) and cannot then have the 'if' to decide whether a further discount is possible.
As for the product specific discount, you can do that one with a rule or a just a special price on the product.
If you want to do this with a module then the easy bit is coding the rules that you want. Quite a few other changes are needed. There may be a need to update templates (to show your extra line item), some xml for 'totals_sort' order - it goes on.
I also feel that your original sales idea might actually be confusing for customers. Sometimes the spend X get Y rules need to be easy for people to understand.
answered Feb 26 '15 at 12:29
Henry's CatHenry's Cat
1,7051923
1,7051923
Thanks for the input, I did manage to get part of the way by stacking the rules the way you describe; creating several price rules that look for an item in the cart to add a discount, but the CMS only seemed to offer a fixed cart discount rather than a percentage - is there some way of enabling this? I agree the idea of a variety discount is a little unusual, unfortunately I'm just the guy being asked to implement it though. I know the Magento sales rules are very powerful, so I was hoping to avoid making an extension if possible
– Gaffen
Feb 26 '15 at 12:59
You can do percentages, however sometimes the labels on the boxes are not that clear, e,g, says 'amount' instead of 'amount or percentage'. Give it a few tests.
– Henry's Cat
Feb 26 '15 at 15:21
Thanks, I will take a look into this. If I manage to work it out I'll include the location of the CMS option that allows this as it's not obvious to beginners
– Gaffen
Feb 26 '15 at 16:45
If you want to go for doing it in your own code that can be done too, with a line item. Tutorials for that are hard to find online, contact me if you want some sample code for that.
– Henry's Cat
Feb 26 '15 at 16:54
add a comment |
Thanks for the input, I did manage to get part of the way by stacking the rules the way you describe; creating several price rules that look for an item in the cart to add a discount, but the CMS only seemed to offer a fixed cart discount rather than a percentage - is there some way of enabling this? I agree the idea of a variety discount is a little unusual, unfortunately I'm just the guy being asked to implement it though. I know the Magento sales rules are very powerful, so I was hoping to avoid making an extension if possible
– Gaffen
Feb 26 '15 at 12:59
You can do percentages, however sometimes the labels on the boxes are not that clear, e,g, says 'amount' instead of 'amount or percentage'. Give it a few tests.
– Henry's Cat
Feb 26 '15 at 15:21
Thanks, I will take a look into this. If I manage to work it out I'll include the location of the CMS option that allows this as it's not obvious to beginners
– Gaffen
Feb 26 '15 at 16:45
If you want to go for doing it in your own code that can be done too, with a line item. Tutorials for that are hard to find online, contact me if you want some sample code for that.
– Henry's Cat
Feb 26 '15 at 16:54
Thanks for the input, I did manage to get part of the way by stacking the rules the way you describe; creating several price rules that look for an item in the cart to add a discount, but the CMS only seemed to offer a fixed cart discount rather than a percentage - is there some way of enabling this? I agree the idea of a variety discount is a little unusual, unfortunately I'm just the guy being asked to implement it though. I know the Magento sales rules are very powerful, so I was hoping to avoid making an extension if possible
– Gaffen
Feb 26 '15 at 12:59
Thanks for the input, I did manage to get part of the way by stacking the rules the way you describe; creating several price rules that look for an item in the cart to add a discount, but the CMS only seemed to offer a fixed cart discount rather than a percentage - is there some way of enabling this? I agree the idea of a variety discount is a little unusual, unfortunately I'm just the guy being asked to implement it though. I know the Magento sales rules are very powerful, so I was hoping to avoid making an extension if possible
– Gaffen
Feb 26 '15 at 12:59
You can do percentages, however sometimes the labels on the boxes are not that clear, e,g, says 'amount' instead of 'amount or percentage'. Give it a few tests.
– Henry's Cat
Feb 26 '15 at 15:21
You can do percentages, however sometimes the labels on the boxes are not that clear, e,g, says 'amount' instead of 'amount or percentage'. Give it a few tests.
– Henry's Cat
Feb 26 '15 at 15:21
Thanks, I will take a look into this. If I manage to work it out I'll include the location of the CMS option that allows this as it's not obvious to beginners
– Gaffen
Feb 26 '15 at 16:45
Thanks, I will take a look into this. If I manage to work it out I'll include the location of the CMS option that allows this as it's not obvious to beginners
– Gaffen
Feb 26 '15 at 16:45
If you want to go for doing it in your own code that can be done too, with a line item. Tutorials for that are hard to find online, contact me if you want some sample code for that.
– Henry's Cat
Feb 26 '15 at 16:54
If you want to go for doing it in your own code that can be done too, with a line item. Tutorials for that are hard to find online, contact me if you want some sample code for that.
– Henry's Cat
Feb 26 '15 at 16:54
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f58575%2fshopping-cart-total-percentage-discount-when-specific-item-is-in-cart%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I think it would help if you edit your question and add a specific example to it (with real prices and percentages). This will make us understand your question better and might get you an answer sooner...
– 7ochem
Feb 24 '15 at 20:13
Thanks @7ochem - I've modified the example scenario to include a more detailed description of expected behaviour and real numbers, which should hopefully help visualise the expected outcome.
– Gaffen
Feb 26 '15 at 10:39
Sorry with the update you made it explains it a little better. The logic behind it is not what i thought it would be. Doesn´t seem very appealing as people will just order seperately to get the most discount in my opinion
– Klettseb
Feb 26 '15 at 10:45
You are of course right, @Thomas - I've updated the logic again to reflect a saner implementation. I had initially held off on this as it seemed like unnecessary complication - but I guess I might as well get a full answer if I'm going to ask for one.
– Gaffen
Feb 26 '15 at 11:21