Creating a Project

This guide walks you through creating a new Deducto project.

A project holds one store's configuration and promotions, including its settings and attributes.

Projects are created in five steps on the Create a project page. Everything you enter can be changed later in project settings, apart from the project ID, which Deducto assigns when the project is created. The store platform is the one choice that takes more care to change once the project is live, because switching platforms clears the project's product search setup.

📘

Shopify stores

Installing the Deducto Shopify App creates and sets up the project for you, so you don't need to create one here. See our Shopify Integration guide.

Opening the Create a project page

Open Projects in the sidebar under your account and click New project. If you've just set up your account, the welcome screen's Create your first project button takes you there too.

You'll need permission to create projects, and room on your plan for another one.

The steps are shown across the top of the page:

  1. The basics
  2. Store platform
  3. Custom attributes
  4. Shipping methods
  5. Review and create

Click Next to move to the following step. If anything on the current step needs fixing, the page lists it under Before you continue: with a link to each field. You can go back to any step you've already completed by clicking its name at the top of the page.

The basics

This step sets how the project is identified in the Deducto Console and the defaults new promotions start with.

  • Project name identifies the project inside the Console and isn't shown to customers. Choose a name that makes it easy to tell this project apart from any others you add later, such as your store's name. It can be up to 50 characters.
  • Description is a short note on what the store sells or who it serves, up to 300 characters. It's required, and it's only visible inside the Console.
  • Store URL is your storefront's address, starting with http:// or https://. Deducto uses it to link to product or category pages from some search integrations. If your products and collections sit under a common base path, include it. We recommend https:// so links are always secure.
  • Timezone is the default timezone for new promotions' start and end times. It starts as your browser's timezone.
  • Currencies are the currencies new promotions start with. Type each three-letter ISO 4217 code, such as AUD or USD, and press Enter after each one.

Choosing a timezone

For businesses operating in a single timezone, we recommend setting this to your primary timezone so you don't need to change it on each new promotion. If you operate across several timezones, choose the one where you'll run most promotions.

Each promotion can still use its own timezone, and changing the project's timezone later doesn't affect existing promotions.

🚧

Warning

A promotion's timezone only affects when it starts and ends. It doesn't restrict which customers can use the promotion based on their location. To limit a promotion to a geographic area, use the Customer country order condition. It only works if your storefront sends the customer's country with each cart. For finer areas, such as a state or region, add a custom cart attribute that identifies the customer's location.

Choosing currencies

The project's currencies are only used to fill in the currency list when you create a promotion. Each promotion's own currencies decide whether it can apply to a cart, and every money amount in a promotion needs a value for each of its currencies. Deducto then uses the values that match the currency of the customer's cart.

📘

Note

Only add currencies you accept as payment. If you have customers in, or ship to, other countries but charge in a single currency, you only need that one currency.

Store platform

This step sets where Deducto searches for products, categories and other entities when you build promotions. Whichever option you choose, your storefront integrates with Deducto the same way, by calling the checkout API. See our Custom Storefront Integration guide.

Choose one of the following:

  • Custom storefront has no product search, so you'll need to enter product, category, brand and other IDs manually if your promotion conditions use them.
  • Custom storefront with Algolia lets you search your Algolia indexes to pick products, categories, brands and other entities by name. See our Algolia Integration guide.
  • Custom storefront with Typesense does the same with your Typesense indexes. See our Typesense Integration guide.

Connection details for Algolia or Typesense, and the indexes to search, are entered in project settings once the project exists.

WooCommerce support is coming soon and is not currently a wizard option.

Custom attributes

Attributes are the product and cart details that promotion conditions check, such as whether a product is in the Sale category or whether a cart is a wholesale order. Deducto's built-in attributes, such as price, quantity and currency, are always available. In this step you add any attributes that are specific to your store. You can skip it and add attributes later in project settings.

📘

Note

Deducto organises attributes into three categories:

  1. Core attributes, which come with every Deducto project
  2. Default integration attributes, which are pre-configured for your chosen store platform
  3. Custom attributes, which you define to match your own data

Deducto sets up the first two automatically. For more on how attributes work, see our Attributes concept guide.

For example, a clothing store might add product attributes like Brand, Material and Limited edition, and cart attributes like Loyalty tier or First-time customer. Promotions can then use them in conditions, such as "20% off all Acme items" or "free shipping for Gold loyalty customers".

The step has two lists:

  • Product attributes are for values that vary from product to product.
  • Cart attributes are for values that describe the cart or the customer as a whole.

Click Add attribute under the list the attribute belongs to, then fill in its row:

  • Display name is the name you'll see when choosing the attribute in a promotion condition, so make it easy to recognise at a glance.
  • Field code is the name your storefront sends this value under, such as brand. See Field codes below.
  • Type sets what kind of value the attribute holds and which comparisons promotion conditions can make with it. The Attributes concept guide describes each type and when to use it.
  • Holds a list of values makes the attribute hold several values, such as a product's tags. It only appears for types that support lists, and it's always on for Several values from a set.

The available types are:

  • Text (exact match)
  • Text (pattern match)
  • One value from a set
  • Several values from a set
  • Money amount
  • Whole number
  • Decimal number
  • Yes / no

The two "from a set" types hold IDs: One value from a set holds a single ID, such as a product's brand ID, and Several values from a set holds a list, such as a product's category IDs. On Algolia and Typesense projects, these attributes can also be linked to a search index so you can pick values by name. See our Algolia Integration or Typesense Integration guides.

Add as many attributes as you need, then click Next.

Field codes

The field code tells Deducto where to find the attribute's value in the cart data your store sends. The match is exact and case-sensitive, and any value sent under a name that no attribute uses is ignored. Several attributes can share the same field code, in which case each receives that value.

For example, if you add a Brand product attribute and your storefront sends that value under product_brand, enter product_brand as its field code. If you're not sure what to enter, check with the developer building your storefront integration.

If you're building the integration yourself, the field code is the key you send the value under in the checkout API request. Product attributes go in each cart item's productData.attributes object, and cart attributes go in the cart's attributes object. For example, a cart item might look like this:

{
  "productData": {
    "productId": "abc-123",
    "name": "Slim Fit Jeans",
    "originalPrice": "89.99",
    "attributes": {
      "product_brand": "Acme",
      "product_category": "bottoms"
    }
  },
  "qty": 1
}

In this example, the field code for Brand is product_brand, and the field code for a Category attribute is product_category.

Shipping methods

List the shipping methods your store offers, such as standard and express delivery, so promotions can target them by name. When you set up a shipping discount, these methods are offered as suggestions.

Click Add shipping method and fill in:

  • Code is the identifier your platform sends for the method at checkout, such as express. It must match exactly. Not every platform supports shipping discounts, so check your integration guide for details.
  • Display name is the name shown in the Console when setting up promotions. We recommend using the same names you use elsewhere in your systems.
📘

Dynamic shipping methods

If your store generates shipping methods dynamically and they can't be grouped into fixed options, you can skip this step. Shipping promotions can still discount all shipping methods, or target a method by typing its code. Listing your methods here makes it easier to control which shipping methods get which discount, because you can pick them by name.

Review and create

The last step summarises what you've entered for each step. To change something, click that step's name at the top of the page, or use Back.

When you're happy, click Create project.

After creating the project

A few settings aren't on the Create a project page. You'll find them on the project's Settings page:

  • Store connection holds the connection details for Algolia or Typesense projects and the Product search indexes used when picking entities in promotion conditions. If you chose Custom storefront without Algolia or Typesense, there's nothing to set up here.
  • Promotion limits sets two of the per-cart ceilings the checkout API enforces: Cart items per evaluation and Shipping methods per cart. The defaults suit most stores, so only raise them if your store genuinely needs more. Cart items per evaluation counts the lines in the cart, not item quantities. The checkout API also limits how many coupon codes one cart can include, but that limit isn't shown in project settings. If a checkout API request goes over any of these limits, the whole request fails with an InvalidCartData error, and no promotions are evaluated for that cart. See Before evaluation in Understanding the Promotion Evaluation Process.
  • Custom attributes and Shipping methods can be edited at any time. An attribute that existing promotions use can't be deleted or change type.

Before connecting your storefront, create an API key on the project's API keys page.

You're now ready to start creating promotions.


Did this page help you?