mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Merge pull request #5753 from TheMadeleine/docs/taxons-2
[Documentation] Concepts: taxons - mainTaxon
This commit is contained in:
commit
e07578df45
1 changed files with 8 additions and 0 deletions
|
|
@ -98,6 +98,14 @@ In order to categorize products you will need to assign your taxons to them - vi
|
|||
$productManager->persist($product);
|
||||
$productManager->flush();
|
||||
|
||||
What is the mainTaxon of a Product?
|
||||
-----------------------------------
|
||||
|
||||
The product entity in Sylius core has a field ``mainTaxon``. On its basis for instance the breadcrumbs are generated.
|
||||
But also you can use it for your own logic, like for instance links generation.
|
||||
|
||||
To have it on your product you need to use the ``setMainTaxon()`` method.
|
||||
|
||||
Learn more
|
||||
----------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue