Layer A integration is very simple.
By default Vue Storefront uses ES index named vue_storefront_catalog
. Please apply the changes accordingly to:
vue-storefront
config filelocal.json
to point to right index name,vue-storefront-api
config filelocal.json
to point to right index name.
Restart vue-storefront
and vue-storefront-api
.
Please note: By default vue-storefront
is using vue-storefront-api
as a proxy to ElasticSearch. You might want to use the Elastic connection directly. In that case feel free to put the http://localhost:9200
or whatever Elastic URL you have as a elasticsearch.host
to vue-storefront/config/local.json
.
Note: When connecting to Elastic directly, please make sure to change the config.elasticsearch.queryMethod
to POST
in the config file.
The integration requires You to change the config/local.json
to set the proper endpoints for Dynamic API calls.
The cart
section:
create_endpoint
- Should point to: cart/createupdateitem_endpoint
- Should point to: cart/updatedeleteitem_endpoint
- Should point to: cart/deletepull_endpoint
- Should point to: cart/pulltotals_endpoint
- Should point to: cart/totalspaymentmethods_endpoint
- Should point to: cart/payment-methodsshippingmethods_endpoint
- Should point to: cart/shipping-methodsshippinginfo_endpoint
- Should point to: cart/shipping-informationcollecttotals_endpoint
- Should point to: cart/collect-totalsdeletecoupon_endpoint
- Should point to: cart/delete-couponapplycoupon_endpoint
- Should point to: cart/apply-coupon
The users
section:
history_endpoint
- Should point to: user/order-historyresetPassword_endpoint
- Should point to: user/resetPasswordchangePassword_endpoint
- Should point to: user/changePasswordlogin_endpoint
- Should point to: user/logincreate_endpoint
- Should point to: user/createme_endpoint
- Should point to: user/merefresh_endpoint
- Should point to: user/refresh
The stock
section:
endpoint
- Should point to: stock/check
The orders
section:
endpoint
- Should point to: order/create