Merchello - Problems following single product page sample
Hi,
I've tried following the single page product page sample and have hit an issue. When calling CurrentPage.product I don't get a guid back, I get an instance of 'Mercehllo.Web.Models.ContentEditing.ProductDisplay' so the call to helper.Query.Product.GetByKey fails.
I don't think I've missed any steps out of the demo but it's certainly possible.
The properties in the document type appear correct, I can select a product from the catalog on the content page, and can call the ProductDescription property with the expected result.
Any ideas what I might have done wrong or how I can get from that object type to a guid that can be loaded into the helper?
The ProductDisplay object should have all the properties you need e.g. .product.Price, .product.Name etc. Essentially you already have the product so the call to GetByKey is redundant.
Not sure what sample you are following but it sounds like it is out ofdate with the latest Merchool release. The most up to date sample store is the Merchello Bazaar package. You can install the Bazaar standalone package into an Umbraco site with Merchello already installed, but I would suggest using the combined install package on a clean Umbraco site (no starter kit). That will set up Merchello and the Bazaar sample store up together and all the various moving parts will be working together nicely.
which are still linked from the main page. I realise now they specify that they relate to v1.4 but it wasn't clear how different this was to the latest version :)
Thanks for the clarification, I'll keep testing but the solution looks good so far.
Merchello - Problems following single product page sample
Hi, I've tried following the single page product page sample and have hit an issue. When calling CurrentPage.product I don't get a guid back, I get an instance of 'Mercehllo.Web.Models.ContentEditing.ProductDisplay' so the call to helper.Query.Product.GetByKey fails.
I don't think I've missed any steps out of the demo but it's certainly possible.
The properties in the document type appear correct, I can select a product from the catalog on the content page, and can call the ProductDescription property with the expected result.
Any ideas what I might have done wrong or how I can get from that object type to a guid that can be loaded into the helper?
Many thanks!
Hi David,
The ProductDisplay object should have all the properties you need e.g. .product.Price, .product.Name etc. Essentially you already have the product so the call to GetByKey is redundant.
Not sure what sample you are following but it sounds like it is out ofdate with the latest Merchool release. The most up to date sample store is the Merchello Bazaar package. You can install the Bazaar standalone package into an Umbraco site with Merchello already installed, but I would suggest using the combined install package on a clean Umbraco site (no starter kit). That will set up Merchello and the Bazaar sample store up together and all the various moving parts will be working together nicely.
Good luck - its worth persevering with!
Amazingly helpful, thanks very much for the prompt reply!
I was trying to follow the sample at
'http://merchello.com/documentation/getting-started/how-to/Single-Product-Page'
which are still linked from the main page. I realise now they specify that they relate to v1.4 but it wasn't clear how different this was to the latest version :)
Thanks for the clarification, I'll keep testing but the solution looks good so far.
is working on a reply...