Skip to content

Commit

Permalink
tw-reivew
Browse files Browse the repository at this point in the history
  • Loading branch information
andriitserkovnyi committed Dec 19, 2024
1 parent 51f0d60 commit 53d8af2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ versions:
'202311.0': '202311.0'
'202404.0': '202404.0'
'202410.0': '202410.0'
'202505.0': '202505.0'

# versioned categories - these must match corresponding directories
versioned_categories:
Expand Down
4 changes: 4 additions & 0 deletions _data/sidebars/pbc_all_sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1939,6 +1939,10 @@ entries:
url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-features/install-the-marketplace-product-offer-marketplace-product-feature.html
- title: Marketplace Product Offer + Quick Add to Cart
url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-features/install-the-marketplace-product-offer-quick-add-to-cart-feature.html
- title: Marketplace Product Offer + Promotions & Discounts feature
url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-features/install-the-marketplace-product-offer-promotions-and-discounts-feature.html
include_versions:
- "202505.0"
- title: Product Offer Shipment Availability
url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-features/install-the-product-offer-shipment-availability-feature.html
- title: Product Offer Shipment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
This document describes how to install the Marketplace Product Offer + Promotions & Discounts feature.

## Install feature core

Follow the steps below to install the feature core.

### Prerequisites
## Prerequisites

Install the required features:

Expand All @@ -14,7 +10,7 @@ Install the required features:
| Marketplace Product Offer | {{page.version}} | [Install the Marketplace Product Offer feature](/docs/pbc/all/offer-management/{{page.version}}/marketplace/install-and-upgrade/install-features/install-the-marketplace-product-offer-feature.html) |
| Spryker Core | {{page.version}} | [Install the Spryker Core feature](/docs/pbc/all/miscellaneous/{{page.version}}/install-and-upgrade/install-features/install-the-spryker-core-feature.html) |

### 1) Install the required modules
## 1) Install the required modules

Install the required modules using Composer:

Expand All @@ -32,13 +28,13 @@ Make sure the following modules have been installed:

{% endinfo_block %}

### 2) Set up behavior
## 2) Set up behavior

Set up the following behaviors:

| PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE |
|------------------------------------------------------|--------------------------------------------------------------------------------------|---------------|-------------------------------------------------------------------------|
| ProductOfferReferenceDecisionRulePlugin | Checks if the item's product offer reference matches the discount's condition. | | Spryker\Zed\ProductOfferDiscountConnector\Communication\Plugin\Discount |
| ProductOfferReferenceDecisionRulePlugin | Checks if an item's product offer reference matches the discount's condition. | | Spryker\Zed\ProductOfferDiscountConnector\Communication\Plugin\Discount |
| ProductOfferReferenceDiscountableItemCollectorPlugin | Collects discountable items from the given quote by items' product offer references. | | Spryker\Zed\ProductOfferDiscountConnector\Communication\Plugin\Discount |

**src/Pyz/Zed/Discount/DiscountDependencyProvider.php**
Expand All @@ -63,7 +59,7 @@ class DiscountDependencyProvider extends SprykerDiscountDependencyProvider
new ProductOfferReferenceDecisionRulePlugin(),
]);
}

/**
* @return list<\Spryker\Zed\DiscountExtension\Dependency\Plugin\DiscountableItemCollectorPluginInterface>
*/
Expand All @@ -79,7 +75,7 @@ class DiscountDependencyProvider extends SprykerDiscountDependencyProvider
{% info_block warningBox "Verification" %}

1. [Create a discount](/docs/pbc/all/discount-management/{{site.version}}/base-shop/manage-in-the-back-office/create-discounts.html) and define its condition as a query string with a `product-offer` field.
2. Add a product offer defined in the newly created discount to the cart.
3. Verify that the discount is applied to the cart.
2. Add a product offer defined in the discount you've created to cart.
Make sure that the discount has been applied to the cart.

{% endinfo_block %}

0 comments on commit 53d8af2

Please sign in to comment.