syntax error, unexpected '=', expecting ']' when rendering products by category
-
I don't know why am i getting this error i tried to figure out but could not find any trail of the error and also its a custom theme .
Its working fine with velocity theme but not working with my custom theme.I am just adding @include('shop::home.category', ['category' => 'fashion']) code in setting > channel home_page_content field.
Master Page
Custom theme Index Page
-
@dev-rohit
could you please confirm if the custom theme overrides with default theme or velocity theme? -
I am doing this
-
This is the only thing i could not figure out why giving me error??
-
i fixed it by override velocity theme
but with default its not working. -
Hi @dev-rohit,
The error which I am seeing is generally a syntax error. It's nothing related to the overriding. Please check the file there is some minor mistake in the file.
-
@devansh-webkul thanks for taking your time i fixed it.