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.
118
questions
1
vote
0
answers
29
views
How do I properly re-render an updated shoppingcart/ checkout in next.js?
Im building an ecommerce, and am using Saleor as my headless backend. For my storefront, I initiated a project from a Next.js storefront starter for saleor.
Now I have run into an issue, and since Im ...
0
votes
1
answer
240
views
How do I validate a JWS with a public key
I'm using Saleor and have set up a webhook to my django server. According to their documentation there is in the header a JWS signature using RS256 with payload detached, to verify the signature you ...
0
votes
0
answers
29
views
Saleor custom url creation
I need to create a custom defined url like slug based on that some user data would be shown on the screen from the database but without authentication in saleor.
from saleor.graphql.utils import ...
1
vote
0
answers
82
views
Importing bulk products in saleor
I am new to saleor. Iam trying to find a solution for importing bulk products. I have 100+ products to insert at a time.
Is there any option to import products in a csv format.
I'd really appreciate ...
0
votes
0
answers
21
views
TypeError: can't compare datetime.datetime to datetime.date in Saleor
saleor/core/models.py", line 76, in is_visible
or self.publication_date <= datetime.date.today()
TypeError: can't compare datetime.datetime to datetime.date
to fix this problem, but may ...
0
votes
1
answer
158
views
Can Strapi handle 1.5 million products and 30k categories with a depth of 6?
Can Strapi handle 1.5 million products and 30,000 categories with a category depth of 6?
Hello guys,
I am considering using Strapi for my e-commerce project, and I would like to know if it can handle ...
0
votes
0
answers
370
views
Trying to install Saleor app but getting the error "Registration failed: could not save the auth data."
I have created a saleor app cloning the saleor-app-template
I have configured the manifest like this:
export default createManifestHandler({
async manifestFactory(context) {
const manifest: ...
2
votes
0
answers
82
views
JWT Authentication in StepZen
I have two headless backend services: Saleor and Strapi, which provide with GraphQL API for e-commerce development. The problem was to find a service, which can stitch two( or more ) GraphQL schemas ...
1
vote
0
answers
79
views
How to override django local Installed app in saleor platform
enter image description here
Hello here are some locally installed app in saleor platform.
Now I have to make chnages (override) some codes inside this apps.
what are the best practices or how can i ...
0
votes
0
answers
215
views
Saleor Integration with Stripe Webhooks
I've been combing through the Saleor docs (following these: https://docs.saleor.io/docs/3.x/developer/available-plugins/stripe and https://docs.saleor.io/docs/3.x/developer/checkout). However, I have ...
1
vote
2
answers
433
views
saleor checkout app with error: connect ECONNREFUSED 127.0.0.1:443
I've been trying to setup the checkout app for some days now, using the saleor-platform, went over the steps to run the project and I have everything running, and I've imported the app with ngrok and ...
0
votes
0
answers
194
views
Saleor Storefront can not open checkout app
I have deployed Saleor-Storefront and Saleor-App-Checkout to Vercel. Then I configured NEXT_PUBLIC_CHECKOUT_URL and CHECKOUT_APP_URL equal to the URL of Saleor-App-Checkout app.
But when I clicked the ...
0
votes
0
answers
101
views
Installing react on saleor using Launchdarkly throws error
I'm trying to install launch darkly on saleor storefront however it throws me an error
ERROR in ./node_modules/launchdarkly-js-client-sdk/dist/ldclient.es.js 1:18823
Module parse failed: Unexpected ...
0
votes
0
answers
47
views
Saleor Storefront Unhandled Runtime Error
I am trying to install Saleor storefront on EC2 and when start build command pnpm dev then this error shows in browser
Error: Invalid src prop (http://localhost:8000/media/products/saleor-apple-drink....
0
votes
0
answers
20
views
In saleor storefront , input type checkbox not showing
In saleor storefront, If I set input type checkbox,it's now showing but it wokrs for input type radio.
I tried to show input type checkbox in front end but it's showing nothing.
0
votes
0
answers
320
views
Saleor admin dashborad Having trouble due to cors error?
Graphql API is working fine with the storefront but is not able to work with the admin dashboard on how to disable the cors policy for a certain domain.
I am using the docker configuration for that.
//...
1
vote
0
answers
146
views
Saleor Shopping Cart Sometimes Wrong/Older Version - Using GraphQL and Next.js
I am using Saleor shopping cart GraphQL, and actually Stepzen to merge it with a Strapi GraphQL. So all Saleor mutations and queries go through the Stepzen GraphQL.
I have followed Saleors tutorial ...
0
votes
1
answer
588
views
Django application with ASGI Uvicorn increasing the latencies by 4x
We are using a Django application (https://github.com/saleor/saleor) to handle our e-commerce use-cases. We are using ASGI with Uvicorn in production with 4 workers. Infra setup -
4 instances of 4 ...
3
votes
3
answers
4k
views
OSError: cannot load library 'gobject-2.0-0': Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0'
While installing saleor, I have encountered with the below issue.
OSError: cannot load library 'gobject-2.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library ...
2
votes
1
answer
47
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
117
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 ?
1
vote
0
answers
115
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
1k
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 ...
1
vote
1
answer
2k
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
419
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
2k
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
178
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
1
answer
356
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 ...
1
vote
1
answer
619
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
165
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
118
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 ...
1
vote
0
answers
1k
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....
1
vote
0
answers
269
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
2
answers
314
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
1
answer
913
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
178
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
163
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
1k
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
2k
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
889
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
202
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
843
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
246
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
315
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
371
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
766
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
195
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
148
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
452
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
2k
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 ...