GitHub

DaffMagentoRelatedProductsTransformers

Adds related product info to the product driver response.

import { DaffMagentoRelatedProductsTransformers } from '@daffodil/related-products/driver/magento'
@Injectable()
class DaffMagentoRelatedProductsTransformers {
  transformMagentoRelatedProducts(
    daffProductResponse: DaffProductDriverResponse<DaffProduct>
    magentoProduct: MagentoProductWithRelated
    mediaUrl: string
  ): DaffProductDriverResponse
}

Properties

Name Type Description
transformMagentoRelatedProducts DaffProductDriverResponse

Transforms magento related products with the product preview transform and stores those related products in the products array and nested in the main product.