Skip to content

Commit 33ab00f

Browse files
authored
Update background image for homepage (#325)
* Update background image for homepage * Add missing files * Add missing files
1 parent e6665fe commit 33ab00f

File tree

5 files changed

+60
-50
lines changed

5 files changed

+60
-50
lines changed

docs/commerce-manager/promotions-builder/creating-a-promotion-in-promotions-builder.mdx

Lines changed: 58 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sidebar_position: 1
1414
1. Select the end date in the **End Date** field.
1515
1. Enter the priority number in the **Assign a priority** field. This field determines the order of the stackable promotions that can be applied simultaneously. Each promotion must have a unique priority number. If you assign a priority number that is already in use by another promotion, you will receive an error message.
1616

17-
This step is optional. If a priority is not assigned, promotions will be applied in the order of their creation dates, with the newest promotions applied first and discounted prices calculated against any previously-discounted item prices.
17+
This step is optional. If a priority is not assigned, promotions will be applied in the order of their creation dates, with the newest promotions applied first and discounted prices calculated against any previously-discounted item prices.
1818
1. Select the **Enabled** toggle to activate the promotion. It is disabled by default.
1919
1. Select the **Stackable** toggle to allow multiple promotions to be stacked. This option is disabled by default and controls whether a promotion can be stacked with others. If this toggle is not enabled, no other promotion can stack on top. The promotion with the highest priority will take precedence. See [Stacking and Prioritizing](/docs/commerce-manager/promotions-builder/#stacking-and-prioritizing-multiple-promotions)
2020
1. (Optional) Select the **Coupon-driven** checkbox to manually [create a single code](/docs/commerce-manager/promotions-builder/creating-promotion-codes#creating-a-single-code). If not selected, a promotion code is automatically generated for you.
@@ -28,26 +28,26 @@ In the **Create your rules** section, do the following:
2828
1. Select a currency for the promotion in the **Currency** field.
2929
1. Choose eligible catalogs for the promotion in the **Catalog** field.
3030
1. Under **Conditions**, select **all** to apply all conditions.
31-
- **Cart**: Configure the promotion by setting either a minimum cart subtotal or quantity of cart items. You can also add conditions to exclude certain items from the cart eligibility. See [Creating a Cart Condition](#creating-a-cart-condition).
32-
- **Cart Items**: Specify the desired product quantity or value. You can also add exclusions that will not contribute to the cart eligibility. See [Creating a Cart Items Condition](#creating-a-cart-items-condition).
33-
- **Custom Attributes**: Define conditions based on custom attributes. See [Adding Cart Custom Attributes](#adding-cart-custom-attributes).
31+
- **Cart**: Configure the promotion by setting either a minimum cart subtotal or quantity of cart items. You can also add conditions to exclude certain items from the cart eligibility. See [Creating a Cart Condition](#creating-a-cart-condition).
32+
- **Cart Items**: Specify the desired product quantity or value. You can also add exclusions that will not contribute to the cart eligibility. See [Creating a Cart Items Condition](#creating-a-cart-items-condition).
33+
- **Custom Attributes**: Define conditions based on custom attributes. See [Adding Cart Custom Attributes](#adding-cart-custom-attributes).
3434

3535
### Creating a Cart Condition
3636

3737
1. Select **Cart** in the **Conditions** section.
3838
1. Set the basic conditions:
39-
1. Choose either **Subtotal** or **Items quantity** to specify a condition for the cart.
40-
1. Select an operator from the following options:
41-
- **is equal to**
42-
- **is greater than**
43-
- **is equal or greater than**
44-
- **is less than**
45-
- **is equal or less than**
46-
47-
1. If you selected **Subtotal**, enter the desired amount. This value is used to determine the subtotal of the cart, based on the operator selected in the previous step. For example, if you selected the **is greater than** operator, the **Subtotal** must exceed the specified amount.
48-
1. If you selected **Items quantity**, enter the required quantity.
49-
50-
You can add multiple conditions according to your business requirements.
39+
1. Choose either **Subtotal** or **Items quantity** to specify a condition for the cart.
40+
1. Select an operator from the following options:
41+
- **is equal to**
42+
- **is greater than**
43+
- **is equal or greater than**
44+
- **is less than**
45+
- **is equal or less than**
46+
47+
1. If you selected **Subtotal**, enter the desired amount. This value is used to determine the subtotal of the cart, based on the operator selected in the previous step. For example, if you selected the **is greater than** operator, the **Subtotal** must exceed the specified amount.
48+
1. If you selected **Items quantity**, enter the required quantity.
49+
50+
You can add multiple conditions according to your business requirements.
5151
1. Define exclusions. To exclude items from the promotion, either select **copy exclusions from actions**, or select **Add an exclusion** and then make changes as needed. See [Adding Exclusions](#adding-exclusions).
5252
1. Click **Done** to apply the conditions.
5353

@@ -56,9 +56,9 @@ In the **Create your rules** section, do the following:
5656
1. Select **Cart Items** in the **Conditions** section.
5757
1. Choose **is** to include cart items in the promotion.
5858
1. Specify the type of cart items:
59-
- **product**: Select the **+** icon. Then, in the **Select Product** window either select a product from the list or include a custom SKU in the **Add Custom SKU** field. For instructions on searching for products in the **Select Product** window, see [Searching for Products](#searching-for-products).
60-
- **node/hierarchy (category)**: Select the **+** icon and select the hierarchy checkbox. Then, click the hierarchy if you want to add nodes to your promotion conditions.
61-
- **attribute**: Select the template from the list, select the attribute, and then set the value for the selected attribute.
59+
- **product**: Select the **+** icon. Then, in the **Select Product** window either select a product from the list or include a custom SKU in the **Add Custom SKU** field. For instructions on searching for products in the **Select Product** window, see [Searching for Products](#searching-for-products).
60+
- **node/hierarchy (category)**: Select the **+** icon and select the hierarchy checkbox. Then, click the hierarchy if you want to add nodes to your promotion conditions.
61+
- **attribute**: Select the template from the list, select the attribute, and then set the value for the selected attribute.
6262
1. Define exclusions. To exclude items from the promotion, either select **copy exclusions from actions**, or select **Add an exclusion** and then make changes as needed. See [Adding Exclusions](#adding-exclusions)..
6363

6464
1. Click **Done** to apply the conditions.
@@ -76,10 +76,10 @@ For example, you may want to add a custom attribute for a customer’s membershi
7676
1. Select **Custom Attributes** in the **conditions** section.
7777
1. Enter the name of your attribute key. For example, you can enter *membership level*.
7878
1. Choose one of the following types depending on your attribute key.
79-
- **String**
80-
- **Float**
81-
- **Integer**
82-
- **Boolean**
79+
- **String**
80+
- **Float**
81+
- **Integer**
82+
- **Boolean**
8383
1. Enter the specific value depending on your attribute. For example, *gold* or *silver*.
8484
1. Click **Done** to apply the changes.
8585

@@ -133,12 +133,12 @@ To create a BXGY promotion, do the following:
133133
1. If you selected **amount**, specify the amount for the promotion.
134134
1. Select **all**, **cheapest**, or **most expensive** items in the cart to qualify for the promotion.
135135
1. Specify the type of items to include in the promotion from the following options:
136-
- **product**: Select the **+** icon. Then, in the **Select Product** window either select a product from the list or include a custom SKU in the **Add Custom SKU** field. For instructions on searching for products in the **Select Product** window, see [Searching for Products](#searching-for-products).
137-
- **node/hierarchy (category)**: Select the **+** icon and select the hierarchy checkbox. Then, click the hierarchy if you want to add nodes to your promotion.
138-
- **Attribute**: To add the attribute, do the following:
139-
1. Select the template from the list.
140-
1. Select the attribute from the list.
141-
1. Select the value from the list corresponding to the chosen attributes.
136+
- **product**: Select the **+** icon. Then, in the **Select Product** window either select a product from the list or include a custom SKU in the **Add Custom SKU** field. For instructions on searching for products in the **Select Product** window, see [Searching for Products](#searching-for-products).
137+
- **node/hierarchy (category)**: Select the **+** icon and select the hierarchy checkbox. Then, click the hierarchy if you want to add nodes to your promotion.
138+
- **Attribute**: To add the attribute, do the following:
139+
1. Select the template from the list.
140+
1. Select the attribute from the list.
141+
1. Select the value from the list corresponding to the chosen attributes.
142142
1. Define exclusions. To exclude items from the promotion, either select **copy exclusions from conditions**, or select **Add an exclusion** and then make changes as needed. See [Adding Exclusions](#adding-exclusions).
143143
1. Click **+ more options**.
144144
1. Enter the value to assign a maximum allowed discount for the promotion. This field is shown only if you choose **percentage** as your discount type.
@@ -158,7 +158,7 @@ To create a shipping discount promotion, do the following:
158158
1. (Optional) If there is targeted shipping type for discount, then select **+ more options**.
159159
1. Check the checkbox **Apply discount to**.
160160
1. Enter the shipping type value that matches targeted cart shipping group `shipping_type` value and hit Enter. For example, "fedex", "UPS".
161-
- You can add more than one.
161+
- You can add more than one.
162162
1. Click **Done** to apply the changes.
163163

164164
## Adding Exclusions
@@ -167,27 +167,27 @@ Exclusions allow you to exclude specific items from the promotion, ensuring they
167167

168168
1. Select **Add an exclusion**.
169169
1. Choose one of the following exclusion types:
170-
- **product**: Enter the values directly or select **view list**. In the **Select Product** window, either choose a product from the list or enter a custom SKU. in the **Add Custom SKU** field. For instructions on searching for products in the **Select Product** window, see [Searching for Products](#searching-for-products).
171-
- **node/hierarchy (category)**: Either enter the unique identifiers directly or select **view list**, then select the checkboxes for the desired nodes/hierarchies(categories).
172-
- **attribute**: Select the template from the list, choose the attribute, and then set the value for the selected attribute.
170+
- **product**: Enter the values directly or select **view list**. In the **Select Product** window, either choose a product from the list or enter a custom SKU. in the **Add Custom SKU** field. For instructions on searching for products in the **Select Product** window, see [Searching for Products](#searching-for-products).
171+
- **node/hierarchy (category)**: Either enter the unique identifiers directly or select **view list**, then select the checkboxes for the desired nodes/hierarchies(categories).
172+
- **attribute**: Select the template from the list, choose the attribute, and then set the value for the selected attribute.
173173
1. Click **Done** apply the exclusions.
174174

175175
## Searching for Products
176176

177177
To find specific products to include in your promotion, follow these steps in the **Search Product** Window:
178178

179179
1. In the first column, select the drop-down arrow and choose any one of the following options to search for the product based on:
180-
- **SKU**
181-
- **Name**
182-
- **Slug**
183-
- **UPC/EAN**
184-
- **MPN**
185-
- **Description**
180+
- **SKU**
181+
- **Name**
182+
- **Slug**
183+
- **UPC/EAN**
184+
- **MPN**
185+
- **Description**
186186
1. In the next column, select the drop-down arrow and choose any one of the following options:
187-
- **is**
188-
- **is like**
189-
- **ends with**
190-
- **starts with**
187+
- **is**
188+
- **is like**
189+
- **ends with**
190+
- **starts with**
191191

192192
1. In the **Find product** field, enter the desired value based on your selection in the previous steps.
193193
1. Select **Search**.
@@ -198,10 +198,20 @@ You can duplicate an existing promotion and reuse its details as required in a n
198198

199199
1. Go to **STORE > Promotions Builder**.
200200
1. To duplicate a promotion, follow one of these steps on the **All Promotions** page:
201-
- In the **Actions** column, click the ellipsis next to the promotion's name, then select **Duplicate**.
202-
- Open the promotion you want to duplicate, and click **Duplicate** at the bottom of the page.
201+
- In the **Actions** column, click the ellipsis next to the promotion's name, then select **Duplicate**.
202+
- Open the promotion you want to duplicate, and click **Duplicate** at the bottom of the page.
203+
204+
The duplicated promotion opens. Make the necessary updates, then click **Create Promotion** to save the new promotion.
205+
206+
## Editing Custom Fields in a Promotion
207+
In order to use custom fields in Promotions Builder, you need to create flows in the store. See [Creating FLows](/docs/commerce-manager/flows) for how to create flows. The **slug** value for promotions builder is **rule-promotions**.
208+
Once you have created the flows and field, then you can edit the custom fields in promotions builder.
209+
210+
1. In the promotions builder editing page, locate the **Custom Fields** at the bottom of page.
211+
1. Expand the section.
212+
1. Edit the fields.
213+
1. Click **Save** to save the changes.
203214

204-
The duplicated promotion opens. Make the necessary updates, then click **Create Promotion** to save the new promotion.
205215

206216
## Editing Custom Fields in a Promotion
207217
In order to use custom fields in Promotions Builder, you need to create flows in the store. See [Creating FLows](/docs/commerce-manager/flows) for how to create flows. The **slug** value for promotions builder is **rule-promotions**.
@@ -215,4 +225,5 @@ Once you have created the flows and field, then you can edit the custom fields i
215225

216226
## Related Resources
217227

218-
- [Rule Promotions API](/docs/promotions-builder/promotions-builder-api/promotions-builder-api-overview)
228+
- [Rule Promotions API](/docs/promotions-builder/promotions-builder-api/promotions-builder-api-overview)
229+

src/components/homepage/ui/AbstractBG.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from "react";
33
export default function () {
44
return (
55
<div className="z-0 absolute w-[100vw] h-full">
6-
<div className="w-full h-full dark:bg-[url('/assets/homepage/blenddark2.webp')] bg-center bg-no-repeat bg-cover"></div>
6+
<div className="w-full dark:bg-[url('/assets/homepage/blenddark2.webp')] bg-center bg-no-repeat bg-cover"></div>
77
</div>
88
);
99
}

src/css/custom.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,6 @@ html[data-theme="dark"] .header-github-link:before {
13841384

13851385
@layer utilities {
13861386
.bg-homepage-gradient {
1387-
@apply dark:bg-[url('/assets/homepage/blenddark2.webp')] bg-top
13881387
}
13891388

13901389
.fill-box {

src/pages/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function Homepage() {
1717
useLinkedinInsight();
1818

1919
return (
20-
<div className="dev-homepage h-full dark:bg-[url('/assets/homepage/blenddark2.webp')] bg-center bg-no-repeat bg-cover bg-white scroll-smooth">
20+
<div className="dev-homepage dark:bg-[url('/assets/homepage/dev-site-blend.webp')] bg-cover bg-white scroll-smooth">
2121
<Layout
2222
description="Build scalable, API-driven commerce experiences with Elastic Path's headless commerce platform. Unlock seamless integrations and automate operations through our open API, empowering developers to craft innovative shopping experiences."
2323
wrapperClassName="relative homepage flex flex-col relative"
390 KB
Loading

0 commit comments

Comments
 (0)