Relates to #2723691: Add Panels integration for variation fields.

Panelizer is proving to be the best way to customize products without worrying about configuration being modified. However, we must provide a PanelizerEntity plugin to enable support for products.

Like..

$variation = $variation_storage->loadFromContext($entity);

We don't ensure the variation is loaded for the product's current language (see add to cart logic for reference.)

CommentFileSizeAuthor
#2 add_panelizerentity-2915274-2.patch5.16 KBmglaman

Comments

mglaman created an issue. See original summary.

mglaman’s picture

Status: Active » Needs work
StatusFileSize
new5.16 KB

The product title is not properly being set, otherwise, it is working decently, so far. I'll continue to update this patch to mirror plugin in client project.

mglaman’s picture

Token was messed up because.. well there are none. Requires token module.

mglaman’s picture

Status: Needs work » Needs review

https://github.com/drupalcommerce/commerce/pull/811

Patch is fine. We'll just have that forever soft dependency on token until core improves.

  • bojanz committed 2c2eb35 on 8.x-2.x authored by mglaman
    Issue #2915274 by mglaman: Add PanelizerEntity plugin to support...
bojanz’s picture

Status: Needs review » Fixed

Yay!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

neubreed’s picture

I have paragraphs fields on my display and they are not showing language translation when language is switched. I disabled panelizer and viewed the product in native mode and translation is working .. so I'm guessing this patch needs to support it?

mglaman’s picture

Issue summary: View changes

neubreed, can you open a new issue highlighting Panelizer + multilingual? There's probably some small issue

neubreed’s picture

thanks