Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image from deafult variation #1521

Open
wmdhosting opened this issue Oct 4, 2024 · 4 comments
Open

Image from deafult variation #1521

wmdhosting opened this issue Oct 4, 2024 · 4 comments

Comments

@wmdhosting
Copy link

As in Commerce 5 There is no single products now and all is managed as variations now..

To not duplicate images and fields can you add option to select image from default variation

2024-10-04_17-22-49

@khalwat
Copy link
Collaborator

khalwat commented Oct 4, 2024

Does that default variant necessarily have an image field associated with it?

@wmdhosting
Copy link
Author

You can add it , same way as it was for product.. , i didi have same field for product .. just removed it and put here..
2024-10-04_19-08-34

IN templaets i call now just default variants images.. now
Like this..
asset: getAsset(post.defaultVariant ?? post, 'one', true, (item.customNoImage.ids()|last) ?: null),

If that cant be done for some reason..

Can you just add option to add code..

@khalwat
Copy link
Collaborator

khalwat commented Oct 4, 2024

So to clarify... are you saying that the Content SEO settings for a Product section does not display any of the Asset fields that are in the field layout for that Product?

Or are you saying that it should display the Variant fields for Commerce 5, and not the Product fields (or both?)?

@wmdhosting
Copy link
Author

Its shows when that same field is in Product field TAB

But That same Field does nto show when i put it in Varaint field Tab

In Commerce 5 will be then great to display for Both.
2024-10-05_06-24-38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants