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

Configure number of synchronised products in Channel configuration #32

Merged
merged 7 commits into from
Jul 29, 2024

Conversation

Zales0123
Copy link
Member

@Zales0123 Zales0123 commented Apr 9, 2024

Closes #22

TODO:

  • document that the highest number from channels would be used

Copy link
Member

@NoResponseMate NoResponseMate left a comment

Choose a reason for hiding this comment

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

Guess we're missing validation for the number_of_synchronised_products on the channel.

@@ -5,3 +5,8 @@ sylius_ui:
commerce_weavers_sylius_also_bought_missing_configuration:
template: '@CommerceWeaversSyliusAlsoBoughtPlugin/_missing_configuration.html.twig'
priority: 40
sylius.admin.channel.form.second_column_content:
blocks:
commerce_weavers_sylius_also_bought_number_of_synchronised_products:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
commerce_weavers_sylius_also_bought_number_of_synchronised_products:
commerce_weavers_sylius_also_bought_number_of_synchronized_products:

just because in different places, we already use the US version with z

Copy link
Member

Choose a reason for hiding this comment

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

same for twig tempalte file name etc.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let me change that in a separate PR, as it would require also changing the property name and a bunch of other stuff :D

features/managing_number_of_items_on_channel.feature Outdated Show resolved Hide resolved
{
/** @ORM\Column(name="number_of_synchronised_products", type="integer", nullable=false, options={"default": 10}) */
#[ORM\Column(name: 'number_of_synchronised_products', type: 'integer', nullable: false, options: ['default' => 10])]
private int $numberOfSynchronisedProducts = 10;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
private int $numberOfSynchronisedProducts = 10;
private int $numberOfSynchronizedProducts = 10;

Copy link
Member Author

Choose a reason for hiding this comment

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

See #32 (comment) 😅

@Zales0123
Copy link
Member Author

Guess we're missing validation for the number_of_synchronised_products on the channel.

Agreed 👍 let's do it in a separate PR, ok? 💃

@lchrusciel lchrusciel merged commit 239026d into CommerceWeavers:main Jul 29, 2024
8 checks passed
@lchrusciel
Copy link
Member

Great job, @Zales0123! 🏅

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

Successfully merging this pull request may close these issues.

Move configuration of number of also bought products to the Channel configuration
4 participants