You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -41,6 +41,14 @@ Please also check [Sylius Documentation](https://docs.sylius.com/en/latest/) and
41
41
Depending on your preferences, the plugin can also fully replace [VSF API](https://github.com/DivanteLtd/vue-storefront-api/) - you will only need VSF front app if you choose so.
42
42
Sylius ShopBundle is also no longer needed as Vue Storefront will be your new ... Storefront. :)
43
43
44
+
### Supported versions
45
+
46
+
| Plugin version | Sylius version | Supported VSF version |
Go to your `src/Entity/Order/OrderItem.php` file and make it to extend the `OrderItem` entity from our plugin.
317
+
318
+
Change:
319
+
```
320
+
use Sylius\Component\Core\Model\OrderItem as BaseOrderItem;
321
+
```
322
+
to:
323
+
```
324
+
use BitBag\SyliusVueStorefrontPlugin\Sylius\Entity\Order\OrderItem as BaseOrderItem;
325
+
```
326
+
327
+
---
328
+
204
329
Copy `etc/vsf-config/local.json` file from this repository to `config/local.json` of Vue Storefront project directory.
205
330
In that file you only need to replace every occurence of `<insert-your-hostname>` with URL of your store.
206
-
You don't have to change anything else as sensible defaults are provided by us, that are proven to work in Vue Storefront v1.11.
331
+
You don't have to change anything else as sensible defaults are provided by us, that are proven to work in Vue Storefront v1.12.
207
332
If your configuration settings differ from defaults provided with the plugin and you run into problems don't hesitate to create issue on GitHub or contact us directly at [email protected].
to populate Elasticsearch indexes and let refresher contained within the plugin to automatically update the data in ES in real time.
258
383
384
+
### Known issues
385
+
386
+
#### Translatable trait error during loading fixtures
387
+
388
+
<imgsrc="doc/fixtures_error.png"></img>
389
+
390
+
In case of this error - to be able to load the fixtures, go to the `vendor/bitbag/vuestorefront-plugin/src/Resources/config/indexes/product.yaml` file and comment last line in there (the `defer:true` one).
391
+
392
+
Then clear the cache, load fixtures and uncomment this line afterwards.
393
+
394
+
#### Getting 500 error related to taxa (`taxons`)
395
+
If you see something like this for example in your admin panel:
396
+
```
397
+
{
398
+
"result": "Variable \"taxons\" does not exist.",
399
+
"code": 500
400
+
}
401
+
```
402
+
it means you are using invalid version of `doctrine/inflector` package.
403
+
404
+
To fix it add a following block into your `composer.json` file:
405
+
```
406
+
"conflict": {
407
+
"doctrine/inflector": "^1.4"
408
+
},
409
+
```
410
+
Make sure that
411
+
```
412
+
"bitbag/vuestorefront-plugin": "v1.0.0-beta.1"
413
+
```
414
+
is present in `require` section in your `composer.json` file and then run:
0 commit comments