Copied to clipboard

Flag this post as spam?

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


  • Steve Borg 28 posts 99 karma points
    Jun 01, 2017 @ 12:33
    Steve Borg
    0

    Products added programmatically issue

    Hi,

    I have created a product programmatically and it appears in the back-office. However, my front-end code:

    Merchello.Web.Models.VirtualContent.IProductContent merchelloProductContent = merchello.Query.Product.TypedProductContent(merchelloProductGuid);

    returns a null unless I have previously viewed the extended content of the product in the back-office. Maybe some kind of caching issue?

    Any ideas anyone please?

    Best regards,

    Steve

  • Steve Borg 28 posts 99 karma points
    Jun 02, 2017 @ 07:52
    Steve Borg
    0

    To answer my own question: the creation of the detached content needed the CanBeRendered property setting to true. Not sure why simply viewing the extended content in the back-office made the product usable.

Please Sign in or register to post replies

Write your reply to:

Draft