M
M
magary42016-09-13 21:18:48
symfony
magary4, 2016-09-13 21:18:48

How to rewrite products in your own way in sylius?

How to implement your own class and so that it could do
$mycustom->addToBasket()
and then Sylius could process the basket, checkout, invoices, etc.
so that not only your SyliusProduct can be put in the basket
and is it possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Krasavin, 2016-09-21
@okwinza

Objects that implement the CartItemInterface contract are placed in the basket . You
can already dance from this.
Well, the class itself must also implement the ProductInterface if you do not want to rewrite the mountains of internal code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question