Skip to content

Conversation

@gregmag
Copy link

@gregmag gregmag commented Feb 4, 2025

product.condition is an array. Here is product.condition.type the right value to use

Questions Answers
Description? Please be specific when describing this change. What did you change? Why?
Type? bug fix / improvement / new feature / refactor
BC breaks? yes / no
Deprecations? yes / no
Fixed ticket? Fixes #{issue URL here}, Fixes #{another issue URL here}
Sponsor company Your company or customer's name goes here (if applicable).
How to test? Indicate how to verify that this change works as expected.

product.condition is an array. Here is product.condition.type the right value to use
@ps-jarvis
Copy link

Hello @gregmag!

This is your first pull request on classic-theme repository of the PrestaShop project.

Thank you, and welcome to this Open Source community!

Copy link
Contributor

@Hlavtox Hlavtox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are absolutely right, but we can simplify it more.

Just use this:

{if !empty($product.condition)}"itemCondition": "{$product.condition.schema_url}",{/if}

@kpodemski
Copy link
Contributor

@Hlavtox willing to finish this PR?

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

Projects

Status: Waiting for author

Development

Successfully merging this pull request may close these issues.

4 participants