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.

  • Kory 14 posts 34 karma points
    Nov 13, 2013 @ 18:33
    Kory
    0

    How to make Item page price reflect the price of a variant?

    I had found this post http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/39739-Dynamic-Price-update, but when I downloaded the code, but I didn't see the refered to GetProductVariationsResponse when downloading from https://bitbucket.org/uCommerce/ucommerce-razor-store.

    The issue is that on my page http://www.theframeroom.com/ready-made-frames-from-the-frame-room/ready-made-picture-frames/sustainably-sourced-wood-frames/gold-compo-frame/c-24/c-89/p-10213 when I select the 8 x 10 option on the frame, it doesn't dynamically change the price on the page.  When you add to the cart, it is correct, but I think for the customer not showing it is extremely confusing.

    We don't see any code that would do it but before we dive in to the code, I reckon someone has had this problem and a solution is out there for this issue. 

    Thanks,

    Kory

     

  • Lars Horne-Mortensen 40 posts 184 karma points
    Nov 15, 2013 @ 11:35
    Lars Horne-Mortensen
    0

    Hi Kory,

    You can extend the razor store web services, to include the variant price.

    Take a look in /Services/Commands/GetProductVariations.cs in the razor store project. The GetProductVariationsResponse method returns a Variations object, that you can extend to include the variation price. Note that you can't return any EntitiesV2 objects in the web service response, because of the way those objects are bound to the database.

    Then you can extend the javascript api used on the product page, to update the product price.

    Hope that helps,

    Lars Horne-Mortensen

  • Kory 14 posts 34 karma points
    Nov 19, 2013 @ 01:49
    Kory
    0

    Hi Lars,

    Thanks for the reply.

    Where can I access the services file?  I can't find the structure /Services/Commands/GetProductVariations.cs.

    Thanks.

    Kory

  • Lars Horne-Mortensen 40 posts 184 karma points
    Nov 19, 2013 @ 14:25
    Lars Horne-Mortensen
    0

    Hi Kory,

    Heres a link to the file i'm talking about: Bitbucket

    If you cloned the razor store from bitbucket, the file structure should be the same. You have to build the package yourself in order to extend the webservices.

    /Lars

Please Sign in or register to post replies

Write your reply to:

Draft