import { DaffMagentoUpsellProductsTransformers } from '@daffodil/upsell-products/driver/magento'
Adds upsell product info to the product driver response.
@Injectable()
class DaffMagentoUpsellProductsTransformers {
transformMagentoUpsellProducts(
daffProductResponse: DaffProductDriverResponse<DaffProduct>
magentoProduct: MagentoProductWithUpsell
mediaUrl: string
): DaffProductDriverResponse
}
DaffProductDriverResponse
Transforms magento upsell products with the product preview transform and stores those upsell products in the products array and nested in the main product.
Parameter | daffProductResponse: DaffProductDriverResponse<DaffProduct> |
---|---|
Description |
Parameter | magentoProduct: MagentoProductWithUpsell |
---|---|
Description |
Parameter | mediaUrl: string |
---|---|
Description |