Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Matt Nolan 45 posts 65 karma points
    Jan 09, 2012 @ 10:34
    Matt Nolan
    0

    "Amount off..." discounts don't handle multiple currencies

    Hi,

    We're building a site where customers can choose to pay in pounds, dollars or euros.
    When a campaign item is created and any of the "Amount off..." discounts chosen as the award, there is no way to set the award in the different currencies. When the discount is then applied to a product, the price is reduced by a fixed amount regardless of currency.

    Eg. "Amount of order line: 50" results in £50, $50 or €50 being  taken of the price.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 09, 2012 @ 10:56
    Søren Spelling Lund
    0

    Hi Matt,

    When working with multiple currencies you can set up multiple campaign items and combine the Act section with tthe Product Catalog Group target for the store in question.

    We're aware that this will cause duplication so a better approach will probably be to add a more advanced Award type, which will let you specify discounts for multiple currencies.

    Extending Marketing Foundation: Adding A New Advertise and Act Target will tell you how to add a custom target. The process is much the same for Awards.

    Please let me know if you need additional help with this.

  • Matt Nolan 45 posts 65 karma points
    Jan 09, 2012 @ 11:13
    Matt Nolan
    0

    I'm not sure using multiple campaing items and the Product Catalog Group target is an option our case as we only have 1 store and each product has three prices against it.

    Which class(es) will i need to implement to add a custom award?

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 09, 2012 @ 11:23
    Søren Spelling Lund
    0

    You want the IAward and IAwardResolver.

    The resolver concept is covered in the article I mention. Same thing for the UI to configure your custom award.

  • Matt Nolan 45 posts 65 karma points
    Jan 09, 2012 @ 11:24
    Matt Nolan
    0

    Thanks.

    EDIT: I went to create my own award and I'm getting a confused. Do I really only need to implement 3 functions or am i missing something?

  • Matt Nolan 45 posts 65 karma points
    Jan 09, 2012 @ 13:54
    Matt Nolan
    0

    Hi Soren,

    Could you provide some extra information on how to implement my own awards?

    I believe that need to recreate the "Amount off..." awards with three discount values (one for each currency) and have the Apply function use the correct value depending on the billing curerncy of the order.

    I've done this by extending the 'Award' class but I get an NHibernate mapping exception every time I try to add the award in the uCommerce interface.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 16, 2012 @ 10:34
    Søren Spelling Lund
    0

    Hi Matt,

    You'll want the IAward interface to avoid getting NHibernate into the mix.

    You'll basically need three separate piece to make it work: The IAward implement for the actual logic, the IAwardResolver for loading your custom award as part of a campaign item, and the configuration UI as described in the article for configuration and storing your award in the database.

  • Matt Nolan 45 posts 65 karma points
    Jan 17, 2012 @ 12:25
    Matt Nolan
    0

    I didn't realise I needed to create my own version of the uCommerce_Award table so was using that and ending up with errors.

    All working now tho.

    Thanks for all your help Soren

Please Sign in or register to post replies

Write your reply to:

Draft