Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be great to add support for module Panelizer.
Comment | File | Size | Author |
---|---|---|---|
#2 | panelize_commerce_product_viewmode.png | 13.12 KB | davps |
#2 | panelizer_for_commerce_product-2865263-2.patch | 4.6 KB | davps |
Comments
Comment #2
davps CreditAttribution: davps as a volunteer and at DrupalJedi commentedCase:
This allows to attach panels and any data to product or product variation page.
In our case, product page (in view mode "Full") builds via panelizer and we store on page different information, for example:
Requirements:
Comment #3
davps CreditAttribution: davps as a volunteer and at DrupalJedi commentedComment #4
casaran CreditAttribution: casaran commentedThis patch has been tested on one of our sites and it is working fine.
Thank you @david.pashaev!
Comment #5
mglamanI'm on a project in which we're using Panelizer, and was going to investigate this. Thanks for the patch, I will review.
However, per #2 you're saying #2865249: Product variation with canonical links is required? It's definitely a won't fix.
Comment #6
davps CreditAttribution: davps as a volunteer and at DrupalJedi commented@mglaman this patch needs only for product variations and for IPE mode (In-Place Editor).
But I'm not sure in stability of the Panelizer (with IPE) for product variations without canonical links. IPE can't properly work with 'v' (any) arguments in url.
Comment #7
mglamanIs there still the admin way to edit the Panelizer? I'd assume that's how product variations would be managed. And, variations should really only be rendered in a view that links to the product. Either way, if we start with just Product we can follow up with variations.
Comment #8
mglamandavid.pashaev, sorry I forgot about this issue. In #2915274: Add PanelizerEntity plugin to support Panelizer integration for products we committed a Panelizer plugin for products that keep field injection working. That was also something missing here. The next step is to expose injected fields as blocks.
Closing as fixed so you get issue credit.
Comment #10
pyxio CreditAttribution: pyxio commentedI do not believe panelizer for product plays well with variations and attributes. please correct me if i am wrong ... but product variation items such as price field are not available for manipulation. in the panelizer UI