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

[Shop] Currency switcher #16861

Merged

Conversation

mpysiak
Copy link
Member

@mpysiak mpysiak commented Sep 5, 2024

Q A
Branch? bootstrap-shop
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets n/a
License MIT

Made currency switcher twig component, enabled currency scenarios. Refactored CardComponent - removed duplicated PriceComponents

# Conflicts:
#	features/shop/currency/handling_different_currencies_on_multiple_channels.feature
#	features/shop/currency/switching_current_currency.feature
@mpysiak mpysiak requested review from a team as code owners September 5, 2024 05:48
@probot-autolabeler probot-autolabeler bot added the Shop ShopBundle related issues and PRs. label Sep 5, 2024
Copy link

github-actions bot commented Sep 5, 2024

Bunnyshell Preview Environment deleted

Available commands:

  • /bns:deploy to redeploy the environment

Comment on lines +36 to +43
#[ExposeInTemplate]
public ?string $price = null;

#[ExposeInTemplate(name: 'original_price')]
public ?string $originalPrice = null;

#[ExposeInTemplate(name: 'has_discount')]
public bool $hasDiscount = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is there a missing name declaration here? Are the following defined to enforce snake case?

Suggested change
#[ExposeInTemplate]
public ?string $price = null;
#[ExposeInTemplate(name: 'original_price')]
public ?string $originalPrice = null;
#[ExposeInTemplate(name: 'has_discount')]
public bool $hasDiscount = false;
#[ExposeInTemplate(name: 'price')]
public ?string $price = null;
#[ExposeInTemplate(name: 'original_price')]
public ?string $originalPrice = null;
...

@Rafikooo Rafikooo merged commit 5081335 into Sylius:bootstrap-shop Sep 5, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Shop ShopBundle related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants