Skip to content

Commit

Permalink
PWA Product Recommendation venia
Browse files Browse the repository at this point in the history
  • Loading branch information
glo82145 committed Jun 24, 2024
1 parent cd0adbc commit 69e2663
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ import SortedByContainer, {
} from '../../components/SortedByContainer';
import defaultClasses from './category.module.css';
import NoProductsFound from './NoProductsFound';
import {
VeniaProductRecommendations,
PageTypes,
} from "@magento/venia-product-recommendations";

const FilterModal = React.lazy(() => import('../../components/FilterModal'));
const FilterSidebar = React.lazy(() =>
Expand Down Expand Up @@ -190,6 +194,7 @@ const CategoryContent = props => {
</div>
</div>
</article>
<VeniaProductRecommendations pageType={PageTypes.CMS} />;
</Fragment>
);
};
Expand Down
7 changes: 6 additions & 1 deletion packages/venia-ui/lib/components/CartPage/cartPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import PriceAdjustments from './PriceAdjustments';
import PriceSummary from './PriceSummary';
import ProductListing from './ProductListing';
import defaultClasses from './cartPage.module.css';

import {
VeniaProductRecommendations,
PageTypes,
} from "@magento/venia-product-recommendations";
const CheckIcon = <Icon size={20} src={Check} />;

/**
Expand Down Expand Up @@ -118,7 +121,9 @@ const CartPage = props => {
</div>
</div>
</div>
<VeniaProductRecommendations pageType={PageTypes.CMS} />;
</div>

);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import { FormattedMessage, useIntl } from 'react-intl';
import { arrayOf, bool, number, shape, string } from 'prop-types';
import { Form } from 'informed';
import { Info } from 'react-feather';
import {
VeniaProductRecommendations,
PageTypes,
} from "@magento/venia-product-recommendations";


import Price from '@magento/venia-ui/lib/components/Price';
import { useProductFullDetail } from '@magento/peregrine/lib/talons/ProductFullDetail/useProductFullDetail';
Expand Down Expand Up @@ -241,6 +246,7 @@ const ProductFullDetail = props => {
data-cy="ProductFullDetail-root"
onSubmit={handleAddToCart}
>

<section className={classes.imageCarousel}>
<Carousel images={mediaGalleryEntries} />
</section>
Expand Down Expand Up @@ -319,7 +325,9 @@ const ProductFullDetail = props => {
/>
</section>
{pageBuilderAttributes}

</Form>
<VeniaProductRecommendations pageType={PageTypes.CMS} />;
</Fragment>
);
};
Expand Down

0 comments on commit 69e2663

Please sign in to comment.