Our monthly Virtual Happy Hour is happening this week, Fri Feb 23!

Try our conversational search powered by Generative AI!

"Create New Block" option unavailable in Content Area for Commerce Items

Vote:
 

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.

Thanks

#188666
Feb 28, 2018 17:24
Vote:
 

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) 

#188668
Feb 28, 2018 17:53
Vote:
 

Hey David

It may be useful to see this post which allows you to add the blocks panel into the commerce UI views:

http://fellow.aagaardrasmussen.dk/2017/07/22/enabling-blocks-by-default-in-episerver-commerce/

http://fellow.aagaardrasmussen.dk/2017/12/11/enable-use-of-blocks-in-episerver-commerces-marketing-view/

David

#188791
Mar 04, 2018 20:29
Vote:
 

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 :) 

#188795
Mar 04, 2018 22:29
Vote:
 

Ha very good point Quan! As you always advise, always upgrade to the latest :)!

#188796
Mar 04, 2018 23:02
Vote:
 

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 

#188819
Mar 05, 2018 10:14
Vote:
 

Hi Quan, hope you don't mind but I wrote a quick blog post about this solution to help others out :) 

https://world.episerver.com/blogs/david-harlow/dates/2018/3/extending-commerce---content-area-functionality/

#188874
Mar 06, 2018 10:27
Vote:
 

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.

#188876
Mar 06, 2018 10:39
Vote:
 

Blogging is good David, I've found my own posts when searching for answers in the past so its a worthy investment :)! 

#188880
Mar 06, 2018 11:09
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.