February Release of Saleor: Three New Dashboard 2.0 Sections

Marcin Gębala
Mar 8, 2019 · 5 min read

A model translations API, three new Dashboard 2.0 sections and great tweaks — welcome to the February 2019 release of Saleor! All the highlights and more on our future plans.

Image for post
Image for post

Discounts section

Discount management has landed! It can be accessed from the top-level navigation menu in Dashboard 2.0 and is split into two parts: sales and vouchers. Sales allow you to define a percentage or fixed discounts on single products, or on entire collections or categories, and they are seen by all customers in your store. You can also specify the dates when discounted prices are active.

Image for post
Image for post
Sale details view in Dashboard 2.0

Vouchers are discount codes that you can give to your customers to offer lower product or shipping prices. They can be configured in a similar manner to sales, but they also allow you to specify usage limits.

Image for post
Image for post
Creating a voucher for free shipping in Dashboard 2.0

Shipping section

Shipping Methods management is also new and can be accessed via in Dashboard 2.0. You can configure the countries you deliver to by creating shipping zones. For each shipping zone, you can define particular price- and weight-based shipping methods.

Image for post
Image for post
Details of a shipping zone in Dashboard 2.0

Pages section

Saleor allows you to create simple static pages for your online store, which can be used for messaging like terms and conditions. This functionality has now been migrated to Dashboard 2.0. To use it, go to .

Image for post
Image for post
Editing a page in Dashboard 2.0

Draftail editor

While working on the “Pages” section, we added rich-text editing capabilities in Dashboard 2.0 by integrating Draftail editor. We chose Draftail because it works well with React and is built and maintained by the team behind Wagtail — one of the most popular CMS platforms written in Python/Django. As opposed to MediumEditor in Dashboard 1.0, Draftail outputs content in JSON instead of HTML. For that reason, we had to extend some of the models with additional JSON fields. Draftail is now available to use as an editor for the descriptions of products, collections and categories, as well as content on static pages.

Image for post
Image for post
Draftail editor in Saleor

Note: Rendering JSON content isn’t supported in both storefronts yet and will be added in future releases. We recommend sticking to Dashboard 1.0 and the previous MediumEditor for rich-text editing for now.

Translations API

One of the most significant changes in the GraphQL API is support for model translations. Within each model that supports translations, we’ve added a field which returns translated content for a given language code. There is also a single top-level query that returns all translatable items of a given type. Lastly, for each model, there are mutations to provide new translations. The example below shows how to add a translation for a product and then query it:

Image for post
Image for post
Example mutation to add translation and a query to fetch it

These were the highlights of this release. As always, for the full changelog go to the release page on Github.

PWA Storefront

With the release of Saleor 2.4.0, we’re also bringing an update to our PWA Storefront. In the last month, we were mainly focused on improvements in the checkout flow. We’ve added the ability to dynamically switch between multiple payment methods, an order confirmation page, and an order details page that customers see after successfully completing checkout.

Image for post
Image for post
New order confirmation page in PWA Storefront

Make sure to check out the full release on Github!

Future releases

We’re not slowing down. In the next release we’re planning to deliver a completely new feature: UI for model translations! This new section in Dashboard 2.0 will allow you to translate your models to different languages. This will be available for core Saleor models such as products, categories, collections, attributes, pages and a few more. Here is the preview, which we are pretty excited about:

Image for post
Image for post
Incoming model translations UI (old theme)

Another important change that we’re planning to introduce soon is a migration to Black as the default Python code formatter. Black has recently gained a lot of popularity and we hope its zero-configuration approach will help improve the readability of Saleor’s code and maintain formatting in pull requests from the community.

Thank you

We’re really excited about hitting 4k stars on Github! 🤩 Also, the number of contributors jumped to 100. A big thank you 🙏 to all contributors, stargazers, and other supporters of Saleor!

Contributing

For those of you who are interested in contributing to the project, we prepared a bunch of issues labeled as . Don’t worry if you don’t fully understand the problem — our team will try to guide you and answer all your questions. Remember to check our channels on Gitter and Spectrum; they serve best if you have quick questions that don’t require opening an issue on GitHub.

Saleor

A GraphQL-first, headless e-commerce platform for…

Thanks to Milosz Jarosiewicz and Tim Clayton

Marcin Gębala

Written by

Full stack engineer at @mirumeelabs. Development lead of @getsaleor.

Saleor

Saleor

A GraphQL-first, headless e-commerce platform for perfectionists. Written in Python. Best served as a bespoke, high-performance e-commerce solution. Built with ❤️ by Mirumee Software.

Marcin Gębala

Written by

Full stack engineer at @mirumeelabs. Development lead of @getsaleor.

Saleor

Saleor

A GraphQL-first, headless e-commerce platform for perfectionists. Written in Python. Best served as a bespoke, high-performance e-commerce solution. Built with ❤️ by Mirumee Software.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store