1. Go to this page and download the library: Download spryker-eco/vertex library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
namespace Pyz\Zed\Vertex;
use SprykerEco\Zed\Vertex\VertexConfig as SprykerEcoVertexConfig;
class VertexConfig extends SprykerEcoVertexConfig
{
public function isTaxIdValidatorEnabled(): bool
{
return true;
}
public function isTaxAssistEnabled(): bool
{
return true;
}
public function isInvoicingEnabled(): bool
{
return true;
}
}
use SprykerEco\Zed\Vertex\Communication\Plugin\Calculation\VertexCalculationPlugin;
protected function getQuoteCalculatorPluginStack(Container $container): array
{
return [
// ... other plugins
new VertexCalculationPlugin(),
// ... total calculation plugins
];
}
protected function getOrderCalculatorPluginStack(Container $container): array
{
return [
// ... other plugins
new VertexCalculationPlugin(),
// ... total calculation plugins
];
}
use SprykerEco\Zed\Vertex\Communication\Plugin\Order\OrderCustomerWithVertexCodeExpanderPlugin;
use SprykerEco\Zed\Vertex\Communication\Plugin\Order\OrderExpensesWithVertexCodeExpanderPlugin;
use SprykerEco\Zed\Vertex\Communication\Plugin\Order\OrderItemProductOptionWithVertexCodeExpanderPlugin;
use SprykerEco\Zed\Vertex\Communication\Plugin\Order\OrderItemWithVertexSpecificFieldsExpanderPlugin;
use SprykerEco\Zed\Vertex\Communication\Plugin\Quote\CalculableObjectCustomerWithVertexCodeExpanderPlugin;
use SprykerEco\Zed\Vertex\Communication\Plugin\Quote\CalculableObjectExpensesWithVertexCodeExpanderPlugin;
use SprykerEco\Zed\Vertex\Communication\Plugin\Quote\CalculableObjectItemProductOptionWithVertexCodeExpanderPlugin;
use SprykerEco\Zed\Vertex\Communication\Plugin\Quote\CalculableObjectItemWithVertexSpecificFieldsExpanderPlugin;
protected function getCalculableObjectVertexExpanderPlugins(): array
{
return [
// ... other plugins
new CalculableObjectCustomerWithVertexCodeExpanderPlugin(),
new CalculableObjectExpensesWithVertexCodeExpanderPlugin(),
new CalculableObjectItemProductOptionWithVertexCodeExpanderPlugin(),
new CalculableObjectItemWithVertexSpecificFieldsExpanderPlugin(),
];
}
protected function getOrderVertexExpanderPlugins(): array
{
return [
// ... other plugins
new OrderCustomerWithVertexCodeExpanderPlugin(),
new OrderExpensesWithVertexCodeExpanderPlugin(),
new OrderItemProductOptionWithVertexCodeExpanderPlugin(),
new OrderItemWithVertexSpecificFieldsExpanderPlugin(),
];
}
use SprykerEco\Zed\Vertex\Communication\Plugin\Oms\Command\VertexSubmitPaymentTaxInvoicePlugin;
use SprykerEco\Zed\Vertex\Communication\Plugin\Oms\VertexOrderRefundedEventListenerPlugin;
protected function extendCommandPlugins(Container $container): Container
{
$container->extend(self::COMMAND_PLUGINS, function (CommandCollectionInterface $commandCollection) {
// ... other command plugins
$commandCollection->add(new VertexSubmitPaymentTaxInvoicePlugin(), 'Vertex/SubmitPaymentTaxInvoice');
return $commandCollection;
});
return $container;
}
protected function getOmsEventTriggeredListenerPlugins(Container $container): array
{
return [
// ... other plugins
new VertexOrderRefundedEventListenerPlugin(),
];
}
use SprykerEco\Glue\Vertex\Plugin\VertexTaxValidateIdResourceRoutePlugin;
protected function getResourceRoutePlugins(): array
{
return [
// ... other plugins
new VertexTaxValidateIdResourceRoutePlugin(),
];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.