Questions tagged [saleor]
Saleor is a high-performance e-commerce platform built with Django, ReactJS, and GraphQL. Saleor is an open source project licensed under the BSD-3-Clause, maintained by the Mirumee Software company.
116
questions
-1
votes
0
answers
14
views
Can i upgrade site's saleor version from 2.x to 3.x?
(sorry for poor english. i'm not english user so it is written by translator.)
I'm student and i'm making a fake online shopping site for practice.
I wanted to make a function that changes the ...
-1
votes
1
answer
15
views
Does Saleor support decimal order line quantity?
I want to use decimal quantity when create order, eg: 1.5, 2.7
Does Saleor support decimal or just integer quantity?
0
votes
1
answer
11
views
Saleor dashboard logging me out so quickly after very few mins
I am using the latest version of saleor dashboard and back-end (3.4.3 - 3.4.0) and the dash board is logging me out so quickly, is there anyway to prevent token expiration and save my login ?
0
votes
0
answers
33
views
'NoneType' object has no attribute 'app' in saleor
I am using saleor backend for my current project. There I have to execute saleor graphql queries and mutations inside the code. So instead of hitting graphql api using url I am using schema.execute() ...
1
vote
1
answer
228
views
How to solve docker-compose buld error while installing saleor?
Runnung docker-compose build, I get this error.
I have installed pnpm using npm install -g pnpm but still the same error occurs.
=> ERROR [saleor-platform_react-storefront 8/9] RUN pnpm install ...
0
votes
0
answers
28
views
How do I save the values in react-quill to the database?
data from graphql
Should I give it this value?
value is not available
[value is not changed4
graphql
0
votes
0
answers
34
views
Migration command fails after saleor 3.0 update
showing error
First of all, I did step by step to install saleor-platform
git clone https://github.com/saleor/saleor-platform.git --recursive --jobs 3 cd saleor-platform docker-compose build
I am ...
0
votes
1
answer
305
views
Rewrite docker-compose.yml to mutagen-compose usage
I'm really newbie in Docker and Mutagen and it doesn't clear for me how to describe storages properly. So I ask you to give me some help with it. I'm trying to rewrite docker-compose.yml to work with ...
0
votes
3
answers
89
views
Using graphql playground to test Saleor productCreate, what's the correct syntax for adding a product description?
In the code example below, if I exclude the description field the product is created successfully. With the description field in place I get a GraphQL error.
The code:
productCreate(
input: {
...
0
votes
1
answer
270
views
Error installing Python Plugin: ModuleNotFoundError: No module named <module>
I'm trying to build a Python Plugin for Saleor using Poetry and I'm having issues installing the plugin on Saleor. I run poetry add ../social_auth to install the plugin on saleor and it succeeds but ...
0
votes
2
answers
99
views
`npm start` got a massive number of error messages
I am setting up the Saleor storefront following this document. However, after calling the command npm start on Windows CMD, there were a massive number of error messages popped up.
I am new to npm and ...
0
votes
0
answers
75
views
Requesting guidance on how to create a Django Admin with multi-tenancy support
I am requesting help to create a custom Django admin site for a multi-tenant B2B ecommerce platform. I am still new to Django and building SaaS like applications. Any help to understanding this will ...
0
votes
0
answers
69
views
Apollo client named export sends request to client instead of server
I'm building an ecommerce using saleor, nextjs and apollo and the queries started to fail when refactoring. I realized it failed if I named export apolloCLient instead of default exporting it. When ...
0
votes
0
answers
68
views
Jaeger metrics not get published for Saleor v3.0 production setup
I'm using Azure for hosting Saleor v3.0. I've used following setup in production -
Machine 1
Hosted Component: Postgres
Domain: postgres.example.com
Machine 2
Hosted Component: Redis
Domain: redis....
0
votes
1
answer
93
views
Saleor-Storefront does not show up on localhost:3000. Looks like storefront port is not bound to port 3000
In MacOS, I am unable to access saleor storefront on localhost:3000. I do not see any errors when after following the installation steps but the storefront container is NOT binding to port 3000.
These ...
0
votes
0
answers
82
views
Docker Compose Build Error Occur (Saleor)
I'm having some troubles when running the command docker-compose build.
So below is the picture of it.
Do anyone know how to solve it?
0
votes
0
answers
195
views
How to add Social login to Saleor.io? Django and graphQL
I'm trying to add social login to Saleor but importantly I can't get the result I want.
Social authentication to user account, using graphql API, I have already used https://github.com/saleor/saleor/...
0
votes
0
answers
208
views
Saleor storefront and dashboard "Invalid Host header" when common.env has *
i am new with Saleor and i trying to install and configure it.
What i did:
i followed the https://docs.saleor.io/docs/3.0/developer/installation
so i installed it well.
Then i configured my nginx-...
0
votes
0
answers
63
views
Extend saleor product page to check status of stock in other application
I would like to extend the product page, when someone lands there would like to fetch realtime stock from another system, can this be done through plugins, as i could see plugins can be used through ...
1
vote
1
answer
337
views
How to store a JWT refreshToken cookie response
I'm trying to authenticate a user with JWT using GraphQL. Once I login the user I receive the token as a JSON response and a httponly cookie storing the refresh token. (Server-side is using Saleor-...
0
votes
2
answers
92
views
How can we translate product attribute in Saleor dashboard?
I checked the translation page on saleor dashboard, but there I can only edit the product attribute name only.
I want to translate the product attributes value.
For example, products has an attribute ...
1
vote
0
answers
83
views
Saleor 3 's rendering is much slower than 2.11
I clone saleor 2.11 and it renders very fast.
But when I switch to version 3, it becomes much slower.
It needs more than 1s to serve a request (1.3 or 1.6s), v2.11 only needs less than 0.5s.
All tests ...
0
votes
0
answers
614
views
Error during execution: docker-compose run --rm api python3 manage.py migrate
I am trying to install saleor on Linux Mint according to the instructions
https://docs.saleor.io/docs/3.0/developer/installation
When executing the command
docker-compose run --rm api python3 manage....
0
votes
0
answers
71
views
How to add custom order object to saleor dashboard orders flow?
I want to add my other website orders to saleor dashboard orders flow.
I am using saleor dashboard as my e-commerce dashboard I am trying to make a CSV file then want to add that CSV file orders to ...
1
vote
0
answers
151
views
AttributeError: 'Product' object has no attribute 'node'
I want to add new functionality product QA in Saleor. I start a new app "QA" and create a model to store this info such as product info, staff user, QA status, and QA date.
I create ...
0
votes
0
answers
38
views
How does Saleor register schemas?
Just picking up this framework so I haven't extensively looked over source code, but one of the basic things i'm confused about is how Saleor is registering schemas in python.
If i look at Graphene's ...
0
votes
0
answers
130
views
Saleor deployment failure while Heroku one click deployment
I just wanted to try out Saleor a bit and
I just used Heroku button's one click option for deploying all three of them at once.
Except for the storefont though. The other two were quite successful and ...
0
votes
0
answers
14
views
Deploying through Heroku button failed
I tried to deploy all three of them on Heroku but failed at doing it with storefront. Deploying other two was successful but when installing nodejs packages it failed. At the end of the build log it ...
0
votes
0
answers
98
views
Figuring out Saleor
I'm trying to figure out more about Saleor and I hope anyone can give me advice about it. I'm reading the docs (barley starting) and I was wondering if everything is already done. I'm using saleor-...
0
votes
2
answers
120
views
Change the title of storefront
I've checked out the latest stable release at tag 2.11.1. As mentioned on 2.11.1 read-me file:
saleor-storefront/src/index.html - Main template file that contains the <div id="root">&...
0
votes
0
answers
42
views
Trying to setup saleor in my windows machine and got this error while migrating
django.db.utils.OperationalError: FATAL: password authentication failed for user "qzwonwokfexnwy"
FATAL: no pg_hba.conf entry for host "27.34.68.106", user "qzwonwokfexnwy&...
0
votes
0
answers
129
views
Saleor git clone issue [duplicate]
Would appreciate some help with this issue: I tried to git clone https://github.com/mirumee/saleor.git. and failed to clone the repository
$ git clone https://github.com/mirumee/saleor.git
Cloning ...
0
votes
1
answer
482
views
AttributeError: 'WSGIRequest' object has no attribute 'app'
As suggested here, I'm building Saleor dashboard with these commands on a local machine and then copy it to the remote server:
cd ~/repos/fork/saleor-dashboard
git checkout 2.11.1
npm14 --verbose ...
1
vote
1
answer
158
views
React Router Dom is not working only the route path is changing on the url but the components are not rendering and also i am using saleor framework
here is the route page named as Approutes.tsx
import { BrowserRouter as Router,Route, Switch } from "react-router-dom";
import Test1 from "../../components/Test/Test1";
import ...
1
vote
0
answers
69
views
Graphene JWT authentication
I'm using graphene-jwt to authenticate user but my user has to multiple object return
here
def mutate(cls, root, info, **kwargs):
result = super().mutate(root, info, **kwargs)
...
How can I add ...
2
votes
1
answer
681
views
Saleor Platform running, storefront wont start the server
I've used the saleor platform method, with docker and dashboard and everything else works properly, but not the frontend, any idea how to debug this, this is the output of the last command
...
0
votes
1
answer
990
views
How can I create a Saleor plugin that is a Django app?
I'm trying to add a Saleor plugin that is also a Django app. The reason is that I want to be able to use Django migrations for it. I've created regular Saleor plugins before, which work fine. I'm not ...
0
votes
1
answer
604
views
Saleor + Vue.js
By the default saleor uses React, but I want to make my E-commerce site with Vue (DRF + Vue). What should I do?
By the way I wanted to use the SSR for the SEO improving. Need I do it with Saleor and ...
0
votes
1
answer
179
views
I'm trying to get Saleor Django installation running
I have followed all the instructions from the saleor.io docs however, I got stuck at migrating the db. The problem is that every time I run python manage.py migrate I get this error message.
I have ...
1
vote
1
answer
406
views
Saleor dashboard CORS error during login (CORS blocked)
I am new to saleor.io which is an open-source platform for an e-commerce app. This saleor has three modules:
Saleor core (Django project, communicate with saleor store and saleor dashboard via ...
0
votes
0
answers
170
views
Saleor Migrations Failed(django.db.utils.DataError)
I am using a Saleor app that is running. I'm only using the API, but when I set the Saleor dashboard and try to run it again, I get this error:
sudo docker-compose run --rm api python3 manage.py ...
1
vote
1
answer
175
views
Git/Github: Manage a forked repository with public and private submodules
I have a forked repository that has three submodules, all of them are public but I want to change one of them for my own private repository. I clone the repository and after that I execute git ...
1
vote
1
answer
96
views
Git/Github: Replace a submodule of a forked repository
What I want
I have an open source parent repository which I want to make a fork to work with it, this repository is composed of 3 submodules and some configuration files. What I want is to replace one ...
0
votes
1
answer
517
views
saleor backend not available under droplet ip from digital ocean
I'd like to deploy my saleor-shop application completely via docker.
So I've built the respective images for saleor backend, storefront & dashboard.
Running the app locally works fine.
Backend is ...
1
vote
1
answer
128
views
React Saleor Product Categories
To whoever has used Saleor with React. There is very little resources for various implementations so I thought I'd ask here.
What is the best way to add colors to products for saleor dashboard? And if ...
0
votes
1
answer
113
views
Django - 404 static in Docker on react app
I have backend on Django and storefront/dashboard on React.
Django in docker container.
Dockerfile (Django)
### Build and install packages
FROM python:3.8 as build-python
RUN apt-get -y update \
&...
1
vote
1
answer
346
views
How to create a new object in Saleor Commerce?
Could somebody guide me how to add a new object to the projects? For example, Banner. Dashboard should be able to create, edit, delete banners. The banners will then be display on the storefront.
I'm ...
1
vote
2
answers
998
views
Getting django signals to work between applications
I have a Django app called receipt_printer which should be printing an order when it is received using a signal. There are two apps here called: Orders and receipt_printer.
However, whenever an order ...
1
vote
0
answers
191
views
Installation issues with NPM (Docker) OSX
I'm getting two errors/warnings while installing Saleor.
Does anyone know how to fix this issue?
I understand that it's an optional package but it doesn't continue the installation.
⚠ Command failed: /...
0
votes
1
answer
179
views
saleor payment gateway setup for stripe and razorpay where to insert our secretkey and public key
I am trying to setup payment gateway for saleor ecommerce can anyone help me I am new to python I work usually on java. which file needs to be edited to setup existing gateway with my payment keys