vuestorefront / vue-storefront

Alokai is a Frontend as a Service solution that simplifies composable commerce. It connects all the technologies needed to build and deploy fast & scalable ecommerce frontends. It guides merchants to deliver exceptional customer experiences quickly and easily.
https://www.alokai.com
MIT License
10.61k stars 2.08k forks source link

How to seperate products per store view? #2479

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi!

Currently I have setup 3 storeview on 1 magento instance. These stores are different niches (like drones, elscooters, fashion etc).

Currently, each store is importing each respective categories and products for those categories.

However, when you search for a specific product belonging to Store A, you will find those products in store B when you search for it.

I have different catalog indexes for it, it does work but the only thing is, when you are on the store where clothes are sold, you can search for elscooters and these products will show up.

I want to make sure that not a trace of any products belonging to other storeviews shows up in search at all, for those stores that doesn't sell the specific products.

The strange thing is, I have setup the products to each respective storeview and each respective storeview category on magento, when on the other hand I have installed the Snowdog API module for CMS pages, and when I import these CMS pages from magento, each storefront are indexing each page by its identifier fine, so with the CMS pages I am not getting pages from Store A in Store B!

So my only problem is, I don't want products from other storeviews to show up in each others searches. Store A must have Store A's products and categories from Magento, not to show up in Store B's search.

How can I solve this?

I appreciate any help here :)

pkarw commented 5 years ago

Hi there! Please let us know how are You importing the products - I mean the config? Mage2vuestorefront should set proper storeView and get only the products from that one.

You might also want to test our new indexer: https://github.com/DivanteLtd/magento2-vsbridge-indexer

ghost commented 5 years ago

Thanks!

I have been experimenting a bit with it but haven't solved it.

I did install the magento2-vsbridge-indexer for my magento 2.3 but there are some issues that I wasn't aware of, therefore I posted in your repo about how to purge it completely from my magento (which I haven't checked if there's an answer yet due to other work).

Since default store on Magento has ID 1, I set the ID config in mage2vs/src/config.js to 2 for logima, which is the first store I created. I guessed and saw that it was the #2 store.

Dying to just filter the searcht thingy. After that is solved, everything is perfect!

The config is for one storefront that is still under development. But should be relevant to the question in hand.

My Mage2vs config

    module.exports = {

    magento: {
    url: process.env.MAGENTO_URL || 'https://cms.logima.io/rest/',
    consumerKey: process.env.MAGENTO_CONSUMER_KEY || 'superprivatekey',
    consumerSecret: process.env.MAGENTO_CONSUMER_SECRET || 'superprivatekey',
    accessToken: process.env.MAGENTO_ACCESS_TOKEN || 'superprivatekey',
    accessTokenSecret: process.env.MAGENTO_ACCESS_TOKEN_SECRET || 'superprivatekey',
    storeId: process.env.MAGENTO_STORE_ID || 2,
    currencyCode: process.env.MAGENTO_CURRENCY_CODE || 'USD'
    },

    vuestorefront: {
    invalidateCache: JSON.parse(typeof process.env.VS_INVALIDATE_CACHE === 'undefined' ? false : process.env.VS_INVALIDATE_CACHE),
    invalidateCacheUrl: process.env.VS_INVALIDATE_CACHE_URL || 'https://localhost:3000/invalidate?key=aeSu7aip&tag='
    },

    product: {
    expandConfigurableFilters: ['manufacturer'],
    synchronizeCatalogSpecialPrices: process.env.PRODUCTS_SPECIAL_PRICES || false,
    renderCatalogRegularPrices: process.env.PRODUCTS_RENDER_PRICES || false,
    excludeDisabledProducts: process.env.PRODUCTS_EXCLUDE_DISABLED || false
    },

    kue: {}, // default KUE config works on local redis instance. See KUE docs for non standard redis connections

    db: {
    driver: 'elasticsearch',
    url: process.env.DATABASE_URL || 'http://localhost:9200',
    indexName: process.env.INDEX_NAME || 'logima_catalog'
    },

    elasticsearch: {
    apiVersion: process.env.ELASTICSEARCH_API_VERSION || '5.6'
    },

    redis: {
    host: process.env.REDIS_HOST || '127.0.0.1',
    port: process.env.REDIS_PORT || 6379
    },

    passport: {
    jwtSecret: "MyS3cr3tK3Y",
    jwtSession: {
    session: false
    }
    }

    }

My API config

      {
      "server": {
            "host": "localhost",
            "port": 8080,
            "searchEngine": "elasticsearch"
      },
      "orders": {
            "useServerQueue": false
      },
      "catalog": {
            "excludeDisabledProducts": false
      },
      "elasticsearch": {
            "host": "localhost",
            "port": 9200,
            "protocol": "http",
            "user": "elastic",
            "password": "changeme",
            "min_score": 0.01,
            "indices": [
                  "logima_catalog",
                  "logima_catalog_de",
                  "logima_catalog_it"
            ],
            "indexTypes": [
                  "product",
                  "category",
                  "cms",
                  "attribute",
                  "taxrule",
                  "review"
            ],
            "apiVersion": "5.6"
      },
      "redis": {
            "host": "localhost",
            "port": 6379,
            "db": 0
      },
      "kue": {},
      "availableStores": [
            "de",
            "it"
      ],
      "storeViews": {
            "multistore": true,
            "mapStoreUrlsFor": [
                  "de",
                  "it"
            ],
            "de": {
                  "storeCode": "de",
                  "disabled": true,
                  "storeId": 3,
                  "name": "German Store",
                  "url": "/de",
                  "elasticsearch": {
                        "host": "localhost:8080/api/catalog",
                        "index": "logima_catalog_de"
                  },
                  "tax": {
                        "defaultCountry": "DE",
                        "defaultRegion": "",
                        "calculateServerSide": true,
        "sourcePriceIncludesTax": false
                  },
                  "i18n": {
                        "fullCountryName": "Germany",
                        "fullLanguageName": "German",
                        "defaultLanguage": "DE",
                        "defaultCountry": "DE",
                        "defaultLocale": "de-DE",
                        "currencyCode": "EUR",
                        "currencySign": "EUR",
                        "dateFormat": "HH:mm D-M-YYYY"
                  }
            },
            "it": {
                  "storeCode": "it",
                  "disabled": true,
                  "storeId": 4,
                  "name": "Italian Store",
                  "url": "/it",
                  "elasticsearch": {
                        "host": "localhost:8080/api/catalog",
                        "index": "logima_catalog_it"
                  },
                  "tax": {
                        "defaultCountry": "IT",
                        "defaultRegion": "",
                        "calculateServerSide": true,
        "sourcePriceIncludesTax": false
                  },
                  "i18n": {
                        "fullCountryName": "Italy",
                        "fullLanguageName": "Italian",
                        "defaultCountry": "IT",
                        "defaultLanguage": "IT",
                        "defaultLocale": "it-IT",
                        "currencyCode": "EUR",
                        "currencySign": "EUR",
                        "dateFormat": "HH:mm D-M-YYYY"
                  }
            }
      },
      "authHashSecret": "__SECRET_CHANGE_ME__",
      "objHashSecret": "__SECRET_CHANGE_ME__",
      "cart": {
            "setConfigurableProductOptions": false
      },
      "tax": {
            "defaultCountry": "PL",
            "defaultRegion": "",
            "calculateServerSide": true,
            "alwaysSyncPlatformPricesOver": false,
            "usePlatformTotals": true,
            "setConfigurableProductOptions": true,
    "sourcePriceIncludesTax": false
      },
      "bodyLimit": "100kb",
      "corsHeaders": [
            "Link"
      ],
      "platform": "magento2",
      "registeredExtensions": [
            "mailchimp-subscribe",
            "example-magento-api",
            "cms-data",
            "mail-service"
      ],
      "extensions": {
            "mailchimp": {
                  "listId": "e06875a7e1",
                  "apiKey": "if-you-spot-this-then-its-secret-us3",
                  "apiUrl": "https://us3.api.mailchimp.com/3.0"
            },
            "mailService": {
                  "transport": {
                        "host": "smtp.gmail.com",
                        "port": 465,
                        "secure": true,
                        "user": "vuestorefront",
                        "pass": "vuestorefront.io"
                  },
                  "targetAddressWhitelist": ["contributors@vuestorefront.io"],
                  "secretString": "__THIS_IS_SO_SECRET__"
            }
      },
      "magento2": {
            "url": "https://cms.logima.io/",
            "imgUrl": "https://cms.logima.io/media/catalog/product",
            "assetPath": "/../var/magento2-sample-data/pub/media",
            "magentoUserName": "",
            "magentoUserPassword": "",
            "httpUserName": "",
            "httpUserPassword": "",
            "api": {
                  "url": "https://cms.logima.io/rest",
                  "consumerKey": "if-you-spot-this-then-its-secret",
                  "consumerSecret": "if-you-spot-this-then-its-secret",
                  "accessToken": "if-you-spot-this-then-its-secret",
                  "accessTokenSecret": "if-you-spot-this-then-its-secret"
            }
      },
      "imageable": {
            "namespace": "",
            "maxListeners": 512,
            "imageSizeLimit": 1024,
            "whitelist": {
                  "allowedHosts": [
                        ".*logima.io",
                        ".*cms.logima.io"
                  ]
            },
            "cache": {
                  "memory": 50,
                  "files": 20,
                  "items": 100
            },
            "concurrency": 0,
            "counters": {
                  "queue": 2,
                  "process": 4
            },
            "simd": true,
            "keepDownloads": true
      },
      "entities": {
                  "category": {
                        "includeFields": [ "children_data", "id", "children_count", "sku", "name", "is_active", "parent_id", "level", "url_key" ]
                  },
                  "attribute": {
                        "includeFields": [ "attribute_code", "id", "entity_type_id", "options", "default_value", "is_user_defined", "frontend_label", "attribute_id", "default_frontend_label", "is_visible_on_front", "is_visible", "is_comparable" ]
                  },
                  "productList": {
                        "sort": "",
                        "includeFields": [ "type_id", "sku", "product_links", "tax_class_id", "special_price", "special_to_date", "special_from_date", "name", "price", "priceInclTax", "originalPriceInclTax", "originalPrice", "specialPriceInclTax", "id", "image", "sale", "new", "url_key" ],
                        "excludeFields": [ "configurable_children", "description", "configurable_options", "sgn" ]
                  },
                  "productListWithChildren": {
                        "includeFields": [ "type_id", "sku", "name", "tax_class_id", "special_price", "special_to_date", "special_from_date", "price", "priceInclTax", "originalPriceInclTax", "originalPrice", "specialPriceInclTax", "id", "image", "sale", "new", "configurable_children.image", "configurable_children.sku", "configurable_children.price", "configurable_children.special_price", "configurable_children.priceInclTax", "configurable_children.specialPriceInclTax", "configurable_children.originalPrice", "configurable_children.originalPriceInclTax", "configurable_children.color", "configurable_children.size", "product_links", "url_key"],
                        "excludeFields": [ "description", "sgn"]
                  },
                  "product": {
                        "excludeFields": [ "updated_at", "created_at", "attribute_set_id", "status", "visibility", "tier_prices", "options_container", "msrp_display_actual_price_type", "has_options", "stock.manage_stock", "stock.use_config_min_qty", "stock.use_config_notify_stock_qty", "stock.stock_id",      "stock.use_config_backorders", "stock.use_config_enable_qty_inc", "stock.enable_qty_increments", "stock.use_config_manage_stock", "stock.use_config_min_sale_qty", "stock.notify_stock_qty", "stock.use_config_max_sale_qty", "stock.use_config_max_sale_qty", "stock.qty_increments", "small_image"],
                        "includeFields": null,
                        "filterFieldMapping": {
                              "category.name": "category.name.keyword"
                        }
                  }
            },
      "usePriceTiers": false,
      "boost": {
            "name": 3,
            "category.name": 1,
            "short_description": 1,
            "description": 1,
            "sku": 1,
            "configurable_children.sku": 1
      }
      }

Finally my storefront config

      {
            "externalCheckout": {
                  "cmsUrl" : "https://logima.io/payment"
            },
            "server": {
                  "host": "localhost",
                  "port": 3000,
                  "protocol": "https",
                  "api": "api",
                  "devServiceWorker": false,
                  "useOutputCacheTagging": false,
                  "useOutputCache": false,
                  "outputCacheDefaultTtl": 86400,
                  "availableCacheTags": ["product", "category", "home", "checkout", "page-not-found", "compare", "my-account", "P", "C", "error"],
                  "invalidateCacheKey": "aeSu7aip",
                  "dynamicConfigReload": false,
                  "dynamicConfigContinueOnError": false,
                  "dynamicConfigExclude": ["ssr", "storeViews", "entities", "localForage", "shipping", "boost", "query"],
                  "dynamicConfigInclude": [],
                  "elasticCacheQuota": 4096
            },
            "seo": {
                  "useUrlDispatcher": false
            },            
            "console": {
                  "showErrorOnProduction" : true,
                  "verbosityLevel": "display-everything"
            },
            "redis": {
                  "host": "localhost",
                  "port": 6379,
                  "db": 0
            },
            "graphql":{
                  "host": "localhost",
                  "port": 8080
            },
            "elasticsearch": {
                  "httpAuth": "",
                  "host": "https://logima.io/api/catalog",
                  "index": "logima_catalog",
                  "min_score": 0.02,
                  "csrTimeout": 5000,
                  "ssrTimeout": 1000,
                  "queryMethod": "GET",
                  "disableLocalStorageQueriesCache": true,
                  "searchScoring": {
                        "attributes": {
                              "attribute_code": {
                                    "scoreValues": { "attribute_value": { "weight": 1 } }
                              }
                        },
                        "fuzziness": 2,
                        "cutoff_frequency":      0.01,
                        "max_expansions": 3,
                        "minimum_should_match": "75%",
                        "prefix_length": 2, 
                        "boost_mode": "multiply",
                        "score_mode": "multiply", 
                        "max_boost": 100,
                        "function_min_score": 1
                  },
                  "searchableAttributes": {
                        "name": {
                              "boost": 4
                        },
                        "sku": {
                              "boost": 2
                        },
                        "category.name": {
                              "boost": 1
                        }
                  }
            },
            "ssr": {
                  "templates": {
                        "default": "dist/index.html",
                        "minimal": "dist/index.minimal.html",
                        "basic": "dist/index.basic.html",
                        "amp": "dist/index.amp.html"
                  },
                  "executeMixedinAsyncData": true,
                  "initialStateFilter": ["__DEMO_MODE__", "version", "storeView"],
                  "useInitialStateFilter": true
            },
            "defaultStoreCode": "",
            "storeViews": {
                  "multistore": false,
                  "mapStoreUrlsFor": ["de", "it"],
                  "de": {
                        "storeCode": "de",
                        "disabled": true,
                        "storeId": 3,
                        "name": "German Store",
                        "url": "/de",
                        "elasticsearch": {
                              "host": "logima.io/api/catalog",
                              "index": "vue_storefront_catalog_de"
                        },
                        "tax": {
                              "sourcePriceIncludesTax": false,
                              "defaultCountry": "DE",
                              "defaultRegion": "",
                              "calculateServerSide": true
                        },
                        "i18n": {
                              "fullCountryName": "Germany",
                              "fullLanguageName": "German",
                              "defaultLanguage": "DE",
                              "defaultCountry": "DE",
                              "defaultLocale": "de-DE",
                              "currencyCode": "EUR",
                              "currencySign": "EUR",
                              "dateFormat": "HH:mm D-M-YYYY"
                        }
                  },
                  "it": {
                        "storeCode": "it",
                        "disabled": true,
                        "storeId": 4,
                        "name": "Italian Store",
                        "url": "/it",
                        "elasticsearch": {
                              "host": "logima.io/api/catalog",
                              "index": "vue_storefront_catalog_it"
                        },
                        "tax": {
                              "sourcePriceIncludesTax": false,
                              "defaultCountry": "IT",
                              "defaultRegion": "",
                              "calculateServerSide": true
                        },
                        "i18n": {
                              "fullCountryName": "Italy",
                              "fullLanguageName": "Italian",
                              "defaultCountry": "IT",
                              "defaultLanguage": "IT",
                              "defaultLocale": "it-IT",
                              "currencyCode": "EUR",
                              "currencySign": "EUR",
                              "dateFormat": "HH:mm D-M-YYYY"
                        }
                  }
            },
            "entities": {
                  "optimize": true,
                  "twoStageCaching": true,
                  "optimizeShoppingCart": true,
                  "category": {
                        "includeFields": [ "id", "*.children_data.id", "*.id", "children_count", "sku", "name", "is_active", "parent_id", "level", "url_key", "product_count", "path"],
                        "excludeFields": [ "sgn" ],
                        "categoriesRootCategorylId": 1,
                        "categoriesDynamicPrefetchLevel": 2,
                        "categoriesDynamicPrefetch": true
                  },
                  "attribute": {
                        "includeFields": [ "attribute_code", "id", "entity_type_id", "options", "default_value", "is_user_defined", "frontend_label", "attribute_id", "default_frontend_label", "is_visible_on_front", "is_visible", "is_comparable", "tier_prices", "frontend_input" ]
                  },
                  "productList": {
                        "sort": "",
                        "includeFields": [ "type_id", "sku", "product_links", "tax_class_id", "special_price", "special_to_date", "special_from_date", "name", "price", "priceInclTax", "originalPriceInclTax", "originalPrice", "specialPriceInclTax", "id", "image", "sale", "new", "url_key", "status", "tier_prices", "configurable_children.sku", "configurable_children.price", "configurable_children.special_price", "configurable_children.priceInclTax", "configurable_children.specialPriceInclTax", "configurable_children.originalPrice", "configurable_children.originalPriceInclTax" ],
                        "excludeFields": [ "description", "configurable_options", "sgn", "*.sgn", "msrp_display_actual_price_type", "*.msrp_display_actual_price_type", "required_options" ]
                  },
                  "productListWithChildren": {
                        "includeFields": [ "type_id", "sku", "name", "tax_class_id", "special_price", "special_to_date", "special_from_date", "price", "priceInclTax", "originalPriceInclTax", "originalPrice", "specialPriceInclTax", "id", "image", "sale", "new", "configurable_children.image", "configurable_children.sku", "configurable_children.price", "configurable_children.special_price", "configurable_children.priceInclTax", "configurable_children.specialPriceInclTax", "configurable_children.originalPrice", "configurable_children.originalPriceInclTax", "configurable_children.color", "configurable_children.size", "configurable_children.id", "configurable_children.tier_prices", "product_links", "url_key", "status", "tier_prices"],
                        "excludeFields": [ "description", "sgn", "*.sgn", "msrp_display_actual_price_type", "*.msrp_display_actual_price_type", "required_options"]
                  },
                  "review": {
                        "excludeFields": ["review_entity", "review_status"]
                  },
                  "product": {
                        "excludeFields": [ "*.msrp_display_actual_price_type", "required_options", "updated_at", "created_at", "attribute_set_id", "options_container", "msrp_display_actual_price_type", "has_options", "stock.manage_stock", "stock.use_config_min_qty", "stock.use_config_notify_stock_qty", "stock.stock_id",      "stock.use_config_backorders", "stock.use_config_enable_qty_inc", "stock.enable_qty_increments", "stock.use_config_manage_stock", "stock.use_config_min_sale_qty", "stock.notify_stock_qty", "stock.use_config_max_sale_qty", "stock.use_config_max_sale_qty", "stock.qty_increments", "small_image", "sgn", "*.sgn"],
                        "includeFields": null,
                        "useDynamicAttributeLoader": true,
                        "standardSystemFields": [
                              "description",
                              "configurable_options",
                              "tsk",
                              "custom_attributes",
                              "size_options",
                              "regular_price",
                              "final_price",
                              "price",
                              "color_options",
                              "id",
                              "links",
                              "gift_message_available",
                              "category_ids",
                              "sku",
                              "stock",
                              "image",
                              "thumbnail",
                              "visibility",
                              "type_id",
                              "tax_class_id",
                              "media_gallery",
                              "url_key",
                              "max_price",
                              "minimal_regular_price",
                              "special_price",
                              "minimal_price",
                              "name",
                              "configurable_children",
                              "max_regular_price",
                              "category",
                              "status",
                              "priceTax",
                              "priceInclTax",
                              "specialPriceTax",
                              "specialPriceInclTax",
                              "_score",
                              "slug",
                              "errors",
                              "info",
                              "erin_recommends",
                              "special_from_date",
                              "news_from_date",
                              "custom_design_from",
                              "originalPrice",
                              "originalPriceInclTax",
                              "parentSku",
                              "options",
                              "product_option",
                              "qty",
                              "is_configured"
                        ]
                  }
            },
            "cart": {
                  "bypassCartLoaderForAuthorizedUsers": true,
                  "multisiteCommonCart": true,
                  "serverMergeByDefault": true,
                  "serverSyncCanRemoveLocalItems": false,
                  "serverSyncCanModifyLocalItems": false,
                  "synchronize": true,
                  "synchronize_totals": true,
                  "setCustomProductOptions": true,
                  "setConfigurableProductOptions": true,
                  "askBeforeRemoveProduct": true,
                  "displayItemDiscounts": true,
                  "create_endpoint": "https://logima.io/api/cart/create?token={{token}}",
                  "updateitem_endpoint": "https://logima.io/api/cart/update?token={{token}}&cartId={{cartId}}",
                  "deleteitem_endpoint": "https://logima.io/api/cart/delete?token={{token}}&cartId={{cartId}}",
                  "pull_endpoint": "https://logima.io/api/cart/pull?token={{token}}&cartId={{cartId}}",
                  "totals_endpoint": "https://logima.io/api/cart/totals?token={{token}}&cartId={{cartId}}",
                  "paymentmethods_endpoint": "https://logima.io/api/cart/payment-methods?token={{token}}&cartId={{cartId}}",
                  "shippingmethods_endpoint": "https://logima.io/api/cart/shipping-methods?token={{token}}&cartId={{cartId}}",
                  "shippinginfo_endpoint": "https://logima.io/api/cart/shipping-information?token={{token}}&cartId={{cartId}}",
                  "collecttotals_endpoint": "https://logima.io/api/cart/collect-totals?token={{token}}&cartId={{cartId}}",
                  "deletecoupon_endpoint": "https://logima.io/api/cart/delete-coupon?token={{token}}&cartId={{cartId}}",
                  "applycoupon_endpoint": "https://logima.io/api/cart/apply-coupon?token={{token}}&cartId={{cartId}}&coupon={{coupon}}"
            },
            "products": {
                  "useShortCatalogUrls": false,
                  "useMagentoUrlKeys": true,
                  "setFirstVarianAsDefaultInURL": false,
                  "configurableChildrenStockPrefetchStatic": false,
                  "configurableChildrenStockPrefetchDynamic": false,
                  "configurableChildrenStockPrefetchStaticPrefetchCount": 8,
                  "filterUnavailableVariants": false,
                  "listOutOfStockProducts": true,
                  "preventConfigurableChildrenDirectAccess": true,
                  "alwaysSyncPlatformPricesOver": false,
                  "clearPricesBeforePlatformSync": false,
                  "waitForPlatformSync": false,
                  "setupVariantByAttributeCode": true,
                  "endpoint": "https://logima.io/api/product",
                  "defaultFilters": ["color", "size", "price", "erin_recommends"],
                  "filterFieldMapping": {
                        "category.name": "category.name.keyword"
                  },
                  "colorMappings": {
                        "Melange graphite": "#eeeeee"
                  },
                  "sortByAttributes": {
                        "Latest": "updated_at",
                        "Price: Low to high":"final_price",
                        "Price: High to low":"final_price:desc"
                  },
                  "gallery": {
                        "variantsGroupAttribute": "color",
                        "mergeConfigurableChildren": true,
                        "imageAttributes": ["image","thumbnail","small_image"],
                        "width": 600,
                        "height": 744
                  },
                  "filterAggregationSize": {
                        "default": 10,
                        "size": 10,
                        "color": 10
                  }
            },
            "orders": {
                  "directBackendSync": true,
                  "endpoint": "https://logima.io/api/order",
                  "payment_methods_mapping": {
                  },
                  "offline_orders": {
                        "automatic_transmission_enabled": false,
                        "notification" : {
                              "enabled": true,
                              "title" : "Order waiting!",
                              "message": "Click here to confirm the order that you made offline.",
                              "icon": "/assets/logo.png"
                        }
                  }
            },
            "localForage": {
                  "defaultDrivers": {
                        "user": "LOCALSTORAGE",
                        "cmspage": "LOCALSTORAGE",
                        "cmsblock": "LOCALSTORAGE",
                        "carts": "LOCALSTORAGE",
                        "orders": "LOCALSTORAGE",
                        "wishlist": "LOCALSTORAGE",
                        "categories": "LOCALSTORAGE",
                        "attributes": "LOCALSTORAGE",
                        "products": "INDEXEDDB",
                        "elasticCache": "LOCALSTORAGE",
                        "claims": "LOCALSTORAGE",
                        "syncTasks": "LOCALSTORAGE",
                        "ordersHistory": "LOCALSTORAGE",
                        "checkoutFieldValues": "LOCALSTORAGE"
                  }
            },
            "reviews": {
                  "create_endpoint": "https://logima.io/api/review/create"
            },
            "users": {
                  "autoRefreshTokens": true,
                  "endpoint": "https://logima.io/api/user",
                  "history_endpoint": "https://logima.io/api/user/order-history?token={{token}}",
                  "resetPassword_endpoint": "https://logima.io/api/user/reset-password",
                  "changePassword_endpoint": "https://logima.io/api/user/change-password?token={{token}}",
                  "login_endpoint": "https://logima.io/api/user/login",
                  "create_endpoint": "https://logima.io/api/user/create",
                  "me_endpoint": "https://logima.io/api/user/me?token={{token}}",
                  "refresh_endpoint": "https://logima.io/api/user/refresh"
            },
            "stock": {
                  "synchronize": true,
                  "allowOutOfStockInCart": true,
                  "endpoint": "https://logima.io/api/stock"
            },
            "images": {
                  "useExactUrlsNoProxy": false,
                  "baseUrl": "https://logima.io/img/",
                  "productPlaceholder": "/assets/placeholder.jpg"
            },
            "install": {
                  "is_local_backend": true,
                  "backend_dir": "../vue-storefront-api"
            },
            "demomode": false,
            "tax": {
                  "defaultCountry": "NO",
                  "defaultRegion": "",
                  "sourcePriceIncludesTax": true,
                  "calculateServerSide": true
            },
            "shipping": {
                  "methods": [
                        {
                              "method_title": "DPD Courier",
                              "method_code": "flatrate",
                              "carrier_code": "flatrate",
                              "amount": 4,
                              "price_incl_tax": 5,
                              "default": true,
                              "offline": true
                        }
                  ]
            },
            "i18n": {
                  "defaultCountry": "US",
                  "defaultLanguage": "EN",
                  "availableLocale": ["en-US","de-DE","fr-FR","es-ES","nl-NL", "jp-JP", "ru-RU", "it-IT", "pt-BR", "pl-PL", "cs-CZ"],
                  "defaultLocale": "en-US",
                  "currencyCode": "USD",
                  "currencySign": "$",
                  "currencySignPlacement": "preppend",
                  "dateFormat": "HH:mm D/M/YYYY",
                  "fullCountryName": "United States",
                  "fullLanguageName": "English",
                  "bundleAllStoreviewLanguages": true
            },
            "mailchimp": {
                  "endpoint": "https://logima.io/api/ext/mailchimp-subscribe/subscribe"
            },
            "mailer": {
                  "endpoint": {
                        "send": "https://logima.io/api/ext/mail-service/send-email",
                        "token": "https://logima.io/api/ext/mail-service/get-token"
                  },
                  "contactAddress": "contributors@vuestorefront.io",
                  "sendConfirmation": true
            },
            "theme": "@vue-storefront/theme-default",
            "analytics": {
                  "id": false
            },
            "hotjar": {
                  "id": false
            },
            "cms": {
                  "endpoint": "https://logima.io/api/ext/cms-data/cms{{type}}/{{cmsId}}",
                  "endpointIdentifier": "https://logima.io/api/ext/cms-data/cms{{type}}Identifier/{{cmsIdentifier}}/storeId/{{storeId}}"
            },
            "cms_block": {
                  "max_count": 500
            },
            "cms_page": {
                  "max_count": 500
            },
            "usePriceTiers": false,
            "useZeroPriceProduct": true,
            "query": {
                  "inspirations": {
                        "filter": [
                              {
                                    "key": "category.name",
                                    "value" : { "eq": "Performance Fabrics" }
                              }
                        ]
                  },
                  "newProducts": {
                        "filter": [
                              {
                                    "key": "category.name",
                                    "value" : { "eq": "Tees" }
                              }
                        ]
                  },
                  "coolBags": {
                        "filter": [
                              {
                                    "key": "category.name",
                                    "value" : { "eq": "Women" }
                              }
                        ]
                  },
                  "bestSellers": {
                        "filter": [
                              {
                                    "key": "category.name",
                                    "value" : { "eq": "Tees" }
                              }
                        ]
                  }
            }

      }
pkarw commented 5 years ago

I believe this issue is related to https://github.com/magento/magento2/issues/8121

ghost commented 5 years ago

I believe this issue is related to magento/magento2#8121

Many thanks!