When attempting to create a new block through the content area on a commerce item (i.e. product variant), there appears to be no option to create a new block, just the option to drag blocks onto the content area.. despite there being no blocks panel available in Commerce.
I've implemented a workaround to get this link to appear (https://gregwiechec.com/2016/05/how-to-disable-creating-new-blocks-in-content-area/) however a 500 error appears in the console when trying to create a new block so am back to square one.. Anyone have any idea on how to implement this functionality or when Episerver plan to implement this as it is quite a key flaw in my opinion.
This is a know limitiation, or rather, "Create New Block" has been a feature request that we haven't prioritized.
The reason was to have that option, the content must implement IResourecable. We did not implement it because Catalog Content handles assets differently.
You can try this work around
public class MyVariationContent : VariationContent, IResourecable
and it might work (haven't tried myself). However this is obviously a work around, so you will have to live with the drawback (if any)
It may be useful to see this post which allows you to add the blocks panel into the commerce UI views:
Hi David (Knipe)
Those were integrated in later version of Commerce - can't remember the exact version and too lazy to look it up now, but 11.6 would be my guess :)
Ha very good point Quan! As you always advise, always upgrade to the latest :)!
Hi Quan and David,
Had already implemented that blog post to get the blocks panel but had no clue that this was in the latest version of Commerce! Looks like i'll be stripping that code out now! :) Thanks though guys
Hi Quan, hope you don't mind but I wrote a quick blog post about this solution to help others out :)
Hey you stole my thunder! (j/k)
No, I don't mind, at all - actually I appreciate that - sharing your finding/solution will make the community better - good job.
Blogging is good David, I've found my own posts when searching for answers in the past so its a worthy investment :)!