Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8944021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:55:48+00:00 2026-06-15T11:55:48+00:00

I have installed a rewards module into my Magento build. I have also set

  • 0

I have installed a rewards module into my Magento build. I have also set up some shopping cart promotions. Everything works. On the shopping cart page you can redeem reward points and enter a discount code and everything is discounted correctly. The problem is that they are both labelled under the ‘discount’ label (where 1,000 points = £1 off)


(source: i.imm.io)

As you can see, it is grouping the £5 coupon discount and the £1 rewards discount together. How do I separate these so that I have two discount rows, one for the coupon and one for the rewards points?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:55:49+00:00Added an answer on June 15, 2026 at 11:55 am

    This is not a simple task. Unfortunately Magento’s discount system is not supremely prepared for the addition of new discount types that you might not want added together in the cart totals box.

    It’s true that you need to modify the resetDiscountLabels() method of the TBT_Rewards_Model_Salesrule_Observer class. However, this method is not where Sweet Tooth adds its discount to the discount description. Quite the opposite. Sweet Tooth’s discounts are automatically added to Magento’s list of discounts on the cart (and the discount description is generated automatically from this list of discounts). The problem is that even the Sweet Tooth discounts that shouldn’t be added to the cart will show up there – the discounts that apply to the cart based on the rule you created, but the customer hasn’t actually selected to spend their points yet. The resetDiscountLabels() method exists to remove the unwanted discount descriptions from the cart, not add any.

    The solution to your problem comes in two steps, and the second step is the more taxing.

    First you must modify the above-mentioned method to remove all Sweet Tooth discount descriptions from the cart, rather than just those that don’t apply. I would suggest copying the file to your app/code/local codepool first, and modifying that file instead of the original. If you loop through all rule IDs on the cart, then load the rule model, you can tell if it’s a Sweet Tooth rule or not if its points_action field is set, i.e. $rule->getPointsAction() !== null. If any of the rules are Sweet Tooth rules, you can unset them from the discount description the way that method is already doing it. After this, Sweet Tooth discounts should no longer appear in that row of your totals box.

    The second step is to add a new row to the totals box, a.k.a. add a new total model to the quote. This will be the more complicated step – much more complicated than I can describe in this answer, but here is a tutorial on adding new total columns: http://turnkeye.com/blog/magento-development-add-total-row-checkout/ In your new total model’s collect() method, you should check the quote’s applied_redemptions field to get a list of Sweet Tooth rule IDs that the customer has applied to their cart. You can then regenerate the total Sweet Tooth discount using these values.

    As I said, this is not a simple task, and unfortunately this is the only semi-clean way to do it. Hopefully it’s not too much. You could also always hire a development firm to do it for you, if you’d rather focus your own dev time on other tasks.

    Hopefully this is useful!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed pyglet onto Mac OS X 10.7.4 using MacPorts. pyglet only works
We have TFS installed in a US server. We need to login into VPN
I have installed Magento 1.7.0.2 to mydomain.com/mag (mydomain - is the primary registered domain
I have many Java versions installed on a Windows 7 machine. Some of them
How to know the xdebug version I have installed? Regards Javi
I have installed Android SDK and packages. Since I had an error when opening
I have installed my dependencies using bundle package Then transferred them to the offline
I have installed the following components of SQL Server 2012: management tools - complete
I have installed team foundation server 2012 express and am wanting to connect through
i have installed wordpress and i i have installed couple of plugins and i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.