-
Notifications
You must be signed in to change notification settings - Fork 81
Doc for Quable #3085
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
base: 5.0
Are you sure you want to change the base?
Doc for Quable #3085
Changes from all commits
b943def
8ad264f
2f0ee41
9263e01
aebdc8b
78fc195
934d977
0284c83
63d6a50
3f6e3ec
cb63487
157754b
732b814
f786268
dbf388b
95954fe
8ae74ff
dd160ce
bf0443e
38aaf30
b590eaf
4e13ffe
a061289
ef59a79
811d582
20c96ae
6cac882
4cb2c98
77c29dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <?php declare(strict_types=1); | ||
|
|
||
| use Ibexa\Contracts\ProductCatalog\Values\Product\ProductQuery; | ||
| use Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\ProductCategorySubtree; | ||
|
|
||
| $taxonomyEntryId = 42; | ||
| $criteria = new ProductCategorySubtree($taxonomyEntryId); | ||
|
|
||
| /** @var \Ibexa\Contracts\ProductCatalog\ProductServiceInterface $productService */ | ||
| $productQuery = new ProductQuery(); | ||
| $productQuery->setQuery($criteria); | ||
| $results = $productService->findProducts($productQuery); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <?php declare(strict_types=1); | ||
|
|
||
| use DateTimeImmutable; | ||
| use Ibexa\Contracts\ProductCatalog\Values\Product\ProductQuery; | ||
| use Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\Operator; | ||
| use Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\UpdatedAt; | ||
|
|
||
| $criteria = new UpdatedAt( | ||
| new DateTimeImmutable('2023-03-01'), | ||
| Operator::GTE, | ||
| ); | ||
|
|
||
| /** @var \Ibexa\Contracts\ProductCatalog\ProductServiceInterface $productService */ | ||
| $productQuery = new ProductQuery(); | ||
| $productQuery->setQuery($criteria); | ||
| $results = $productService->findProducts($productQuery); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?php declare(strict_types=1); | ||
|
|
||
| use DateTimeImmutable; | ||
| use Ibexa\Contracts\ProductCatalog\Values\Product\ProductQuery; | ||
| use Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\UpdatedAtRange; | ||
|
|
||
| $criteria = new UpdatedAtRange( | ||
| new DateTimeImmutable('2020-07-10T00:00:00+00:00'), | ||
| new DateTimeImmutable('2023-07-12T00:00:00+00:00'), | ||
| ); | ||
|
|
||
| /** @var \Ibexa\Contracts\ProductCatalog\ProductServiceInterface $productService */ | ||
| $productQuery = new ProductQuery(); | ||
| $productQuery->setQuery($criteria); | ||
| $results = $productService->findProducts($productQuery); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?php declare(strict_types=1); | ||
|
|
||
| namespace App\EventSubscriber; | ||
|
|
||
| use Ibexa\Contracts\ProductCatalog\Events\ProductAttributeRenderEvent; | ||
| use Symfony\Component\EventDispatcher\Attribute\AsEventListener; | ||
|
|
||
| final readonly class MyAttributeRenderSubscriber | ||
| { | ||
| #[AsEventListener] | ||
| public function onAttributeRender(ProductAttributeRenderEvent $event): void | ||
| { | ||
| $event->addTemplateBefore( | ||
| 'templates/product/attributes/integer_attribute.html.twig', | ||
| '@ibexadesign/product_catalog/product/attributes/attribute_blocks.html.twig', | ||
| ); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -122,8 +122,8 @@ | |||||
| </div> | ||||||
| <div class="col-12 col-lg-6 col-fhd-3"> | ||||||
| <ul> | ||||||
| <li><a href="release_notes/ibexa_dxp_v5.0/#date-and-time-attribute">Date and time attibute for PIM</a></li> | ||||||
| <li><a href="release_notes/ibexa_dxp_v5.0/#symbol-attribute">Symbol attribute for PIM</a></li> | ||||||
| <li><a href="release_notes/ibexa_dxp_v5.0/#date-and-time-attribute">Date and time attribute for product catalog</a></li> | ||||||
| <li><a href="release_notes/ibexa_dxp_v5.0/#symbol-attribute">Symbol attribute for product catalog</a></li> | ||||||
| <li><a href="release_notes/ibexa_dxp_v5.0/#developer-experience">Developer experience improvements</a></li> | ||||||
| </ul> | ||||||
| </div> | ||||||
|
|
@@ -185,15 +185,16 @@ | |||||
| <div class="info-tile info-tile--link-card"> | ||||||
| <div class="info-tile__content"> | ||||||
| <h3> | ||||||
| <a href="pim/pim/"> | ||||||
| <a href="product_catalog/product_catalog/"> | ||||||
| <svg><use xlink:href="images/icons.svg#product" /></svg> | ||||||
| Product | ||||||
| Product catalog | ||||||
| </a> | ||||||
| </h3> | ||||||
| <ul> | ||||||
| <li><a href="pim/pim_configuration/">PIM configuration</a></li> | ||||||
| <li><a href="pim/catalogs/">Catalogs</a></li> | ||||||
| <li><a href="pim/prices/">Prices</a></li> | ||||||
| <li><a href="product_catalog/product_catalog_configuration/">Product catalog configuration</a></li> | ||||||
| <li><a href="product_catalog/quable_integration/">Quable PIM Integration</a></li> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice addition!
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Will we add Raptor to the index page as well? |
||||||
| <li><a href="product_catalog/catalogs/">Catalogs</a></li> | ||||||
| <li><a href="product_catalog/prices/">Prices</a></li> | ||||||
| </ul> | ||||||
| </div> | ||||||
| </div> | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -290,6 +290,10 @@ The Personalization limitation specifies the SiteAccesses for which the user can | |||||
|
|
||||||
| The Product Type (`ProductType`) limitation specifies whether the user has access to products belonging to a specific product type. | ||||||
|
|
||||||
| !!! warning | ||||||
|
|
||||||
| The `ProductType` limitation can't be used when using [[[= pim_product_name =]]](/product_catalog/quable/quable.md). | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Wouldn't the filename itself work instead of giving the entire path? |
||||||
|
|
||||||
| ### Possible values | ||||||
|
|
||||||
| |Value|UI value|Description| | ||||||
|
|
||||||
This file was deleted.
This file was deleted.
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.