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.

  • Jørn Cornelius Olsen 2 posts 22 karma points
    Mar 26, 2013 @ 11:13
    Jørn Cornelius Olsen
    0

    Need to find documentation for adjusting price according to Show prices with VAT

    Hi.

    Starting with the Razor demo store, I want to display prices including VAT. Unfortunately changing the flag "Show prices with VAT" only switches text between "Inc." and "Exc." below the raw price - i.e. the price is not updated as I would have expected. From searching the web I gather that I need to to build this logic myself.

    I have located macroScrips\uCommerce\Product.cshtml and have found this line

      var price = CatalogLibrary.CalculatePrice(product);

    Apparently price has the type UCommerce.Api.PriceCalculation so I'm looking for some docs to guide me on this object, but I cannot seem to find the namespace UCommerce.Api in http://www.ucommerce.dk/docs/

    Am I looking in the wrong place?

    /Jørn

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 10, 2013 @ 11:46
    Søren Spelling Lund
    0

    Hi Jørn,

    PriceCalculation.YourPrice has an Amount property that you can use instead. It'll reflect the price based on config on the catalog.

Please Sign in or register to post replies

Write your reply to:

Draft