Skip to content

Commit

Permalink
Merge pull request #1947 from spryker/bugfix/cc-29660-approval-status…
Browse files Browse the repository at this point in the history
…es-are-not-displayed-on-shopping-cart-page

Install the Approval Process feature
  • Loading branch information
AlexSlawinski authored Jun 30, 2023
2 parents 3d11195 + 8f0811e commit 8fff6c0
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@



This document describes how to integrate the [Approval Proces feature](/docs/pbc/all/cart-and-checkout/{{page.version}}/base-shop/approval-process-feature-overview.html) into a Spryker project.
This document describes how to integrate the [Approval Process feature](/docs/pbc/all/cart-and-checkout/{{page.version}}/base-shop/approval-process-feature-overview.html) into a Spryker project.

## Install feature core

Expand Down Expand Up @@ -69,6 +69,34 @@ Make sure that the configuration returns the billing address and payment keys.

{% endinfo_block %}

If you are using [Multiple Carts feature](/docs/pbc/all/cart-and-checkout/{{page.version}}/base-shop/multiple-carts-feature-overview.html), add the following configuration to your project:

**src/Pyz/Client/MultiCart/MultiCartConfig.php**

```php
<?php

namespace Pyz\Client\MultiCart;

use Generated\Shared\Transfer\QuoteTransfer;
use Spryker\Client\MultiCart\MultiCartConfig as SprykerMultiCartConfig;

class MultiCartConfig extends SprykerMultiCartConfig
{
/**
* @return array<string|array<string>>
*/
public function getQuoteFieldsAllowedForCustomerQuoteCollectionInSession(): array
{
return array_merge(parent::getQuoteFieldsAllowedForCustomerQuoteCollectionInSession(), [
...
QuoteTransfer::QUOTE_APPROVALS,
...
]);
}
}
```

### 3) Set up database schema and transfer objects

Apply database changes and generate entity and transfer changes:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Approval Process feature overview
description: This topic provides a detailed overview of the Approval Process feature.
last_updated: Jul 20, 2021
last_updated: June 26, 2023
template: concept-topic-template
originalLink: https://documentation.spryker.com/2021080/docs/approval-process-feature-overview
originalArticleId: 6a13ff93-6cd0-4461-afe9-6c6101991d5e
Expand Down Expand Up @@ -199,7 +199,7 @@ Company users can perform the following actions using the Approval Process featu

## Related Developer documents

|INSTALLATION GUIDES | TUTORIALS AND HOWTOS |
|---------|---------|
| [Approval Process feature integration](/docs/scos/dev/feature-integration-guides/{{site.version}}/glue-api/glue-api-alternative-products-feature-integration.html) | [HowTo: Implement customer approval process based on a generic state machine](/docs/pbc/all/cart-and-checkout/{{page.version}}/base-shop/tutorials-and-howtos/howto-implement-customer-approval-process-based-on-a-generic-state-machine.html) |
| [Shipment + Approval Process feature integration](/docs/pbc/all/carrier-management/{{site.version}}/base-shop/install-and-upgrade/install-features/install-the-shipment-approval-process-feature.html) | |
| INSTALLATION GUIDES | TUTORIALS AND HOWTOS |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
| [Approval Process feature integration](/docs/pbc/all/cart-and-checkout/{{site.version}}/base-shop/install-and-upgrade/install-features/install-the-approval-process-feature.html) | [HowTo: Implement customer approval process based on a generic state machine](/docs/pbc/all/cart-and-checkout/{{page.version}}/base-shop/tutorials-and-howtos/howto-implement-customer-approval-process-based-on-a-generic-state-machine.html) |
| [Shipment + Approval Process feature integration](/docs/pbc/all/carrier-management/{{site.version}}/base-shop/install-and-upgrade/install-features/install-the-shipment-approval-process-feature.html) | |
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Install the Approval Process feature
description: This guide describes all steps needed to be performed in order to integrate the Approval Process feature into your project.
last_updated: Jun 16, 2021
last_updated: Jun 26, 2023
template: feature-integration-guide-template
originalLink: https://documentation.spryker.com/2021080/docs/approval-process-feature-integration
originalArticleId: 1ba2c034-6c2d-4036-87b8-d2c6bbf5243d
Expand Down

0 comments on commit 8fff6c0

Please sign in to comment.