by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
marcoste
@marcostesvk
image.png
1 reply
I can't add products to the basket even though I have enough quantity available in warehouse
Can you help me?
adrienshen
@adrienshen
Hi, we're a team using the Saleor storefront and we're not sure whether to make changes to the hooks SDK or the directory queries to get certain fields we need. It seems the GraphQL SDK fields are hard set. My question is what is the point of having a GraphQL SDK when the benefit of GraphQL to be flexible and client dependent? Should we be using the SDK and making changes to it or writing queries in the directory level?
1 reply
Correct me if I'm wrong, but I thought the whole point of GraphQL was to be flexible, and isn't an SDK hard setting the fields for all clients uses?
Karol
@karolkielecki

@all Hey Community! We've released Saleor Storefront 2.10.2. The issue with querying the quantityAvailable field has been fixed.

https://github.com/mirumee/saleor-storefront/releases/tag/2.10.2

sycts88
@sycts88
Hi, i have deployed the saleor 2.10 to heroku using heroku button. Still not able to see images in saleor dashboard and storefront. I am using S3 AWS to store images
6 replies
sycts88
@sycts88
may i ask where is the product images store in saleor?
sycts88
@sycts88
because i would like to copy the product images to S3 AWS
then start the modifications once i can see the images
ehutzle
@ehutzle
Hey guys, simple question (I think). Just looking to change the headers on the landing page to not be the "70% Off Sale", but I don't see any html files in the static or template folders that reference the storefront. I am running Core/Storefront/DB and not Platform, could someone point me in the direction it's located?
1 reply
ehutzle
@ehutzle
Does anyone have a script they run to import products? Looking to do this instead of spending a day adding products and images manually. Any resources available? I find https://github.com/mirumee/saleor/blob/master/saleor/graphql/product/mutations/products.py is kind of hard to navigate.
Lord have mercy, sorry guys I'm finding stuff I've been looking for for days really quickly currently. Here's a plugin that does what I need it to, in case anyone else has the same question: https://github.com/grll/saleor-gql-loader
Karol
@karolkielecki
@all If you are looking for information on how to display the best selling products, find the solution in the conversation here: https://spectrum.chat/saleor/general/best-sellers~85df0594-455c-4d67-ab09-54f7f0770938?m=MTU5MDY2NDQ4NzQ3MQ==
nguyen tuan anh
@bboyadao_twitter
Hi all, is there any channel to talk about saleor-storefront
1 reply
Piotr Antosz
@Boquete

Hey, we are having some strange issue on our production enviroment since 2.10. In multiple products queries we are having problems with our database.

 'SELECT DISTINCT "product_product"."id", "product_product"."publication_date", "product_product"."is_published", "product_product"."private_metadata", "product_product"."metadata", "product_product"."seo_title", "product_product"."seo_description", "product_product"."product_type_id", "product_product"."name", "product_product"."slug", "product_product"."description", "product_product"."description_json", "product_product"."category_id", "product_product"."currency", "product_product"."price_amount", "pr...

OperationalError: SSL error: wrong version number
or
OperationalError: SSL SYSCALL error: EOF detected
or
OperationalError: SSL error: decryption failed or bad record mac

We are hosting it still on EC2 with Postgresql RDS, basically our configuration didn't changed.
Mostly this error occures when we are building SSR for frontend, so maybe there's higher usage of database, but still it's really strange behaviour, especially that we are running at least m5.large with 2% of CPU usage and in performance there is also nothing strange, everything looks normal.

Screenshot 2020-05-29 at 15.50.27.png
14d sentry logs
Piotr Antosz
@Boquete
Screenshot 2020-05-29 at 15.56.19.png
strange CPU db behaviour
although it alsso occured in last 6 hours (EOF error) but graphql looks.. not so strange for CPU / DB connections
peeks between 3-6% cpu and number of connections also between 10-20
sycts88
@sycts88
Hi @karolkielecki may be i changed the question a bit, how do i store images in product in dashboard, when i clicked on upload the image. The image does not appear. Thank you.
Cyberdemic
@cyberdemic

@sycts88 By default images are stored in "/media/" folder. To backup the product images (using Docker in my case) here is what i do:

docker cp $(docker ps --filter "name=api" -q):/app/media/ ./media
tar -czvf media-backup.tar media/ && rm -rf ./media

I copy the media folder from the container "api" (saleor core) to the current folder, compress the folder, then delete uncompressed version. I'm able to restore quite easily using this folder as well.

As far as uploading the images to S3, you will have to configure some enviornment variables. Here is a link to a blog post I found that may help getting files uploaded to S3.

Ghost
@ghost~5ed17edbd73408ce4fe55670
Hi all, I have a few custom product fields that were added while using an older version of Saleor (before the dashboard and storefront were split out). It's starting to look like quite a project to move those fields into the new platform. It looks like the metadata fields were added for this purpose, but is there a way in the dashboard to use these fields? Or will I need to modify the dashboard? Any guidance/documentation is appreciated. Thanks!
David Arce
@allidoisace
Since 2.10 there isn't a guide in the docs for using pipenv, is the plan to move to docker only from here on out?
Aisha-Barahim
@Aisha-Barahim
Hi, while the new storefront is not ready for deployment can I use 2.9.0 with the latest Core and Dashboard?
1 reply
ehutzle
@ehutzle
Hey guys, anyone familiar with GQL Multipart Requests? I am having issues passing my body to the endpoint, getting a "'ValueError: Must provide a query string.", even though my body has a query in it.
2 replies
G. Sal
@gotsales_gitlab
Hi all, I'm following the instructions https://docs.saleor.io/docs/getting-started/installation-linux/ and everything is fine, however, I've gotten to the part "npm run build-assets" and it says "npm ERR! missing script: build-assets". Did you mean one of these? build-schema / build-emails
2 replies
Cyberdemic
@cyberdemic
@gotsales_gitlab They recently updated to Saleor 2.10 and the documentation you are referring to is for 2.9. Here are installation instructions for 2.10, hope it helps!
Thomas De Bonnet
@ThomasDeBonnet
Hi there, I'm trying to setup the saleor-dashboard on heroku. When i install the dashboard via the Heroku button everything works fine. But when i clone the repo (version 2.10.0), and i push, the build failes with this error: "ERROR in /tmp/build_196a83ee209d60aa1fd01815500c197d/src/theme.ts
ERROR in /tmp/build_196a83ee209d60aa1fd01815500c197d/src/theme.ts(550,11):
TS2339: Property 'defaultProps' does not exist on type '(props: TextFieldProps) => Element'. "
I have set the API_URI and APP_MOUNT_URI environment variables. And i have installed the correct buildpacks (Nodejs, and static).
What could be this issue? I'm new to Nodejs
G. Sal
@gotsales_gitlab
Hi Cyberdemic, thanks. I'll downgrade.
The instructions for 2.10 are incomplete compared to 2.9
6 replies
G. Sal
@gotsales_gitlab
If I downgrade to 2.9 - I get all the bugfix patches, right? you do back-push fixes, yes?
1 reply
sycts88
@sycts88
@cyberdemic thank you for your link, previously in saleor 2.9 i used the same link for S3 to do the setup. It is the same issue now version 2.10. x (latest)- not able to view the product images as well. Btw. where is the product images. Previously it was in media folder, now i cannot seem to find that folder. Thank you
4 replies
sycts88
@sycts88
image.png
baitsanape
@baitsanape
Hello. I am trying to deploy saleor to aws elastic beanstalk. using the Dockerrun.aws.json file. The installation proceeds successfully, I have my DB prepared on RDS but when I try to access the website, it is timing out. Did I miss any step?
Piotr Antosz
@Boquete

Hey, I'm having problem with sorting product variants of specific product.
The case is, we would like to use Attribute, AttributeValue sort order - and sort product variants based on this order.
It's extremelly useful, for example if one of your attributes is size: XS, S, M. It's not alphabetically correct, but in Attribute we can select the order of those attributes - and would be great to use that order to sort product variants

We tried multiple techniques, with sort_by Attribute sort order, AttributeValues, distincts, but even with multiple tries results were misreable. Too many joins, distincts not working, and everything was basically not fine

Maybe some of you have idea how to sort product variants with multiple attributes to sort by 1) sort order of ProductType variant attributes (so if product type have Size, Color, X in order a->b->c) 2) after that sort that results by AttributeValues order (XS, S, M, ..etc)

Screenshot 2020-06-03 at 20.17.34.png
Screenshot 2020-06-03 at 20.17.34.png
ad. 2
Screenshot 2020-06-03 at 20.18.05.png
ad. 1

Hey, we are having some strange issue on our production enviroment since 2.10. In multiple products queries we are having problems with our database.

 'SELECT DISTINCT "product_product"."id", "product_product"."publication_date", "product_product"."is_published", "product_product"."private_metadata", "product_product"."metadata", "product_product"."seo_title", "product_product"."seo_description", "product_product"."product_type_id", "product_product"."name", "product_product"."slug", "product_product"."description", "product_product"."description_json", "product_product"."category_id", "product_product"."currency", "product_product"."price_amount", "pr...

OperationalError: SSL error: wrong version number
or
OperationalError: SSL SYSCALL error: EOF detected
or
OperationalError: SSL error: decryption failed or bad record mac

We are hosting it still on EC2 with Postgresql RDS, basically our configuration didn't changed.
Mostly this error occures when we are building SSR for frontend, so maybe there's higher usage of database, but still it's really strange behaviour, especially that we are running at least m5.large with 2% of CPU usage and in performance there is also nothing strange, everything looks normal.

Also going back for that - we changed conn_max_age=0 in db_settings and it looks like worked for now.

wfelius
@wfelius
Hi, fetching multiple products by filtering on multiple attributes does not seem to work
{
  products(
    first: 10
    filter: {
      attributes: [
        # {slug: "taste", values: ["zoet", "zuur"]},
        {slug: "restrictions", values: ["vegan", "gluten-free"]}
          ]
    }
  ) {
    edges {
      node {
        id
        name
      }
    }
  }
}
1 reply
Above will work since I commented out the fist attribute filter option
I'm I doing something wrong? Ir is this a known bug?
wfelius
@wfelius
I want (taste=zoet OR taste=zuur) AND (restrictions=vegan OR restrictions=gluten-free)
Albert Fougy
@albertfougy
How do I test the circleci build locally? I git cloned the entire application through saleor platform, but I can't resolve the path of the .git directory. saleor - dashboard does not have a .git directory only a .git file pointing to modules. I would assume that saleor-storefront will produce the same error.
➜  saleor-dashboard git:(master) ✗ circleci local execute --job build-lint-benchmark
Docker image digest: sha256:e719901b26a21ddbfc2a0b23e28e083bf21d746f5b3ed0246d8b56adbbed294e
====>> Spin Up Environment
Build-agent version  ()
Docker Engine Version: 19.03.8
Kernel Version: Linux f86aabfdd238 4.19.76-linuxkit #1 SMP Tue May 26 11:42:35 UTC 2020 x86_64 Linux
Starting container circleci/node:10.7.0-browsers
  image is cached as circleci/node:10.7.0-browsers, but refreshing...
10.7.0-browsers: Pulling from circleci/node
Digest: sha256:7aa2d9b507158182ca8594d27b72c88a6567eaa74314f99e401e5291b688e772
Status: Image is up to date for circleci/node:10.7.0-browsers
  using image circleci/node@sha256:7aa2d9b507158182ca8594d27b72c88a6567eaa74314f99e401e5291b688e772
====>> Preparing Environment Variables
Using build environment variables:
  BASH_ENV=/tmp/.bash_env-localbuild-1591226975
  CI=true
  CIRCLECI=true
  CIRCLE_BRANCH=
  CIRCLE_BUILD_NUM=
  CIRCLE_JOB=build-lint-benchmark
  CIRCLE_NODE_INDEX=0
  CIRCLE_NODE_TOTAL=1
  CIRCLE_REPOSITORY_URL=
  CIRCLE_SHA1=
  CIRCLE_SHELL_ENV=/tmp/.bash_env-localbuild-1591226975
  CIRCLE_WORKING_DIRECTORY=~/project


The redacted variables listed above will be masked in run step output.====>> Checkout code
  #!/bin/bash -eo pipefail
mkdir -p /home/circleci/project && cd /tmp/_circleci_local_build_repo && git ls-files | tar -T - -c | tar -x -C /home/circleci/project && cp -a /tmp/_circleci_local_build_repo/.git /home/circleci/project
fatal: Not a git repository: ../.git/modules/saleor-dashboard
Error: 
Exited with code exit status 128

Step failed
Error: runner failed (exited with 101)
Task failed
Error: task failed
2 replies
jinho jang
@yeswecann_gitlab
I experienced a slow CSS loading issue like this : https://spectrum.chat/saleor/general/nav-bar-css-loading-is-slow-when-refreshing~c4a869f0-351d-4f29-8b8a-aa1d4a5a1d6d . Anyone else experienced the same thing?