Products
How to create a Product?
/** @var ProductFactoryInterface $productFactory **/
$productFactory = $this->get('sylius.factory.product');
/** @var ProductInterface $product */
$product = $productFactory->createNew();$product->setName('T-Shirt');
$product->setCode('00001');
$product->setSlug('t-shirt');
/** @var RepositoryInterface $productRepository */
$productRepository = $this->get('sylius.repository.product');
$productRepository->add($product);Variants
Virtual Product Variants, that do not require shipping
How to create a Product with a Variant?
Options
How to create a Product with Options and Variants?
Product Units
How to Sell Products in Various Units and Bulk Quantities?
Key Sylius Concepts:

Example with options matching


Steps to Implement:
Last updated
Was this helpful?
