question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preview not working for Drupal Commerce Products

See original GitHub issue

The Iframe preview mode doesn’t work for Drupal Commerce Products. The issue seems to be that Products don’t have revisions.

Error: 501 Not Implemented
Resource versioning is not yet supported for this resource type.

I tried setting isVersionable to false, but it has no effect:

 const entity = await drupal.getResourceFromContext<DrupalNode>(
    path,
    context,
    {
      params: getParams(path.jsonapi.resourceName),
      isVersionable: false,
    },
  );

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

1reaction
shadcncommented, Nov 10, 2022

Yes. Tagged and released today.

1reaction
shadcncommented, Nov 7, 2022

I’ll take a look at this and report back. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to generate Preview from Add Product form [#2338649]
I want to add a Preview button in Commerce Product Add form. Before adding product, user can see Preview of Product same as...
Read more >
Views preview not working [#3256055] | Drupal.org
Hi, after updating to 9.3 views preview stopped working in all themes and all views - not only views created by me, is...
Read more >
File upload preview broken [#2946034] | Drupal.org
When I upload using core's image file widget the created thumbnail is broken. The path looks something like this.
Read more >
Order Item Table not showing on Order View page - Drupal
Hi, I have installed drupal commerce 8.x-2.14 version, ... order list showing in view preview section, not showing in order view section.
Read more >
Product Variation is without context in view based listing of ...
Open page listing created with views. Proposed resolution. Inject into current request Commerce product entity within hook_entity_prepare_view.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found