1

I am using sylius e commerce and I have a problem about products. Acctualy I created one products, and after that I tried to see my product on my shop so i cliked "Show in store" But after that I got an error, and I don't know how to solve it :(

I've been searching on google for solution and I've found it's possible to change sylius.locale: en_US to en or smth like that but after I do that I still got error:

Catchable Fatal Error: Method Sylius\Component\Core\Model\Product::__toString() must return a string value

So I changed my locale back to en_US and after that I'm seeing this problem

enter image description here

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62

1 Answers1

0

Did you assign it to the default channel? Go to administration/products/new, select Channel tab, check it, and save.

gvf
  • 1,039
  • 7
  • 6
  • It works, but could you please explain to me, why does it work only in case I select Channel tab? –  Apr 11 '16 at 07:25
  • Sylius has the concept of channels: http://docs.sylius.org/en/latest/book/channels.html So unless you assign the product to the channel (in your case you only have one channel, which is the default one) it won't show up. – gvf Apr 11 '16 at 08:00
  • Thanks a lot mate! :) –  Apr 11 '16 at 08:27