Skip to Content
author's profile photo Former Member
Former Member

How to create global discount row?

Our requirement is to provide 50% discount , based on the user group. we shouldn't use promotions . instead we should create global discount row . please let me know the steps to create a global discount row. i have referred link https://wiki.hybris.com/pages/viewpage.action?spaceKey=release5&title=europe1+Pricing+System+Guide . but i was not able to create it successfully.

Thanks karthik

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2016 at 01:06 PM

    Hi Karthik,

    For this you need to access HMC (http://localhost:9001/hmc/hybris) and do the following:

    1. Create a Customer Discount Group

      • Once on HMC
        • Click on Price Settings >> Discounts, right click on Customer Discount Group. On the menu that appears, click on Create Customer Discount Group

        • For this example, I will use the information - Identifier: YourDiscountGroup - Localized name: YourDiscountGroup

        • Click on Create

    2. Create a Discount

      • Still on HMC
        • Click on Price Settings >> Discounts, right click on Discounts. On the menu that appears, click on Create: Discount

        • Fillout the information: - Identifier: DiscountForYourCustomers - Name: DiscountForYourCustomers - Priority: 1 - Value: 50 - Currency: Do not select any so that it takes it as a percentage, otherwise it would be taken as a 50 EUR or USD discount

        • Cick on Create

        • Click on Create Discount Rows

        • On the screen that appears: - Customer: Do not select any because you will specify a group - Customer Discount Group drop-down menu: select YourDiscountGroup - Catalog version: Do not select any, if you do then the discount only applies to that catalog - Value: 50 - Do not select any currency, otherwise it would take it as a 50 EUR or 50 USD discount. - Validity period: You specify this dates

    3. Assign the DiscountGroup to the Group, for this:

      • Still on HMC
        • If you need to create the group: Click on User and right click on User Groups, it will open a menu with the options: Create: User Group, B2B User Group, etc. If the group already exists: Click on User, User Groups, look for the user group, double click on the group's name which will take you to the Editor's section.

        • Click on the Customer Prices

        • Select YourDiscountGroup from Discount Group drop-down menu and click on save.

    After this you can test by placing an order for any product with a user from the group you assigned the discount to and he should get 50 percent off on any product he buys.

    Regards,

    Luis

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 16, 2016 at 01:07 PM

    you can create the discount row as follows the code :

      List<DiscountValue> discounts =  Arrays.asList(new DiscountValue[] {
                                  new DiscountValue("ROW 1", 20.0, true,  order.getCurrency().getIsocode()),
                                  new DiscountValue("ROW 2", 10.0, true,  order.getCurrency().getIsocode())}); 
          cartEntry.setDiscountValues(discounts);
    
    
    
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.