Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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.
is working on a reply...