-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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] Product show #16748
[Shop] Product show #16748
Conversation
mpysiak
commented
Aug 20, 2024
Q | A |
---|---|
Branch? | bootstrap-shop |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Related tickets | n/a |
License | MIT |
b1fb434
to
9779a62
Compare
Bunnyshell Preview Environment deletedAvailable commands:
|
features/shop/product/show/accessing_product_page_via_permalink.feature
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/Resources/config/services/twig/component.xml
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/Resources/config/services/twig/component.xml
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/Resources/config/app/twig_hooks/product/show.yaml
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/Resources/config/app/twig_hooks/product/show.yaml
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/Twig/Component/Product/ProductShowPriceComponent.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/Twig/Component/Product/ProductSummaryComponent.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/templates/product/show/page/info/summary/price/original.html.twig
Outdated
Show resolved
Hide resolved
8e393bd
to
47cc8da
Compare
@@ -89,5 +89,57 @@ | |||
template="@SyliusShop/product/common/original_price.html.twig" | |||
/> | |||
</service> | |||
|
|||
<service | |||
id="sylius_shop.twig.component.product_summary" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id="sylius_shop.twig.component.product_summary" | |
id="sylius_shop.twig.component.product.product_summary" |
or, if you rename ProductSummaryComponent to SummaryComponent
id="sylius_shop.twig.component.product_summary" | |
id="sylius_shop.twig.component.product.summary" |
src/Sylius/Bundle/ShopBundle/templates/product/show/page/info/summary.html.twig
Show resolved
Hide resolved
|
||
<tag | ||
name="sylius.live_component" | ||
key="sylius_shop:product:show_summary" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key="sylius_shop:product:show_summary" | |
key="sylius_shop:product:summary" |
or
key="sylius_shop:product:show_summary" | |
key="sylius_shop:product:show:summary" |
src/Sylius/Bundle/ShopBundle/Resources/config/services/twig/component.xml
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/Twig/Component/Product/AddToCart/FormComponent.php
Outdated
Show resolved
Hide resolved
...lius/Bundle/ShopBundle/templates/product/show/page/info/summary/catalog_promotions.html.twig
Outdated
Show resolved
Hide resolved
#[LiveAction] | ||
public function variantChanged(): void | ||
{ | ||
$this->emit('sylius:shop:variant_changed', ['productVariantCode' => $this->formValues['cartItem']['variant']]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should create a constant for the event name 'sylius:shop:variant_changed'
1c91a13
to
b26e212
Compare
src/Sylius/Bundle/ShopBundle/Resources/config/services/twig/component.xml
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/Twig/Component/Product/AddToCart/FormComponent.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/Twig/Component/Product/AddToCart/FormComponent.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/Twig/Component/Product/ProductShowPriceComponent.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ShopBundle/Twig/Component/Product/ProductSummaryComponent.php
Outdated
Show resolved
Hide resolved
05cdb55
to
b147e33
Compare
07ba6a4
to
395f36b
Compare