Currently, code assumes we always have standard "default" order items with a product variation as the purchaseable entity. We should support other order item types.

CommentFileSizeAuthor
#7 commerce-admin-checkout-3204925.gif996.81 KBzengenuity

Comments

zengenuity created an issue. See original summary.

  • zengenuity committed a139a67 on 8.x-1.x
    Issue #3204925: Allow creation of different order item types on admin...

  • zengenuity committed 0040285 on 8.x-1.x
    Issue #3204925 by zengenuity: Allow creation of different order item...

  • zengenuity committed 8f01a00 on 8.x-1.x
    Issue #3204925 by zengenuity: Allow creation of different order item...
jdcllns’s picture

Will this issue ever be resolved?

ZingWebTeam’s picture

This appears to have been implemented but the form is missing a purchasable entity lookup.

There is a dropdown for selecting the order item type but clicking add will put a null product into the cart.

https://i.imgur.com/W6Hm0Db.png

zengenuity’s picture

StatusFileSize
new996.81 KB

@ZingWebTeam, I just tested it, and the product variation lookup works on the default install. So, it's probably related to customizations with your site.

Screen recording of testing the product variation add process

ZingWebTeam’s picture

yeah, there are some customizations, preprocessing the form and validating the checkout form, but the thing is it is a null object on the order item I think.

Maybe this is related to that patch about price too, but what should I be looking for to be null, order_item is there but is it just `getPurchasableEntity()` that you've left null?