Register Upsells
This commit is contained in:
parent
03ebfa0dcf
commit
67f654094d
|
@ -21,6 +21,7 @@ import bestSellers from './best-sellers';
|
|||
import onSale from './on-sale';
|
||||
import featured from './featured';
|
||||
import related from './related';
|
||||
import upsells from './upsells';
|
||||
|
||||
const collections: BlockVariation[] = [
|
||||
productCollection,
|
||||
|
@ -30,6 +31,7 @@ const collections: BlockVariation[] = [
|
|||
bestSellers,
|
||||
newArrivals,
|
||||
related,
|
||||
upsells,
|
||||
];
|
||||
|
||||
export const registerCollections = () => {
|
||||
|
|
|
@ -12,7 +12,7 @@ import { INNER_BLOCKS_PRODUCT_TEMPLATE } from '../constants';
|
|||
import { CoreCollectionNames, CoreFilterNames } from '../types';
|
||||
|
||||
const collection = {
|
||||
name: CoreCollectionNames.ON_SALE,
|
||||
name: CoreCollectionNames.UPSELLS,
|
||||
title: __( 'Upsells', 'woocommerce' ),
|
||||
icon: <Icon icon={ trendingUp } />,
|
||||
description: __(
|
||||
|
@ -42,7 +42,7 @@ const heading: InnerBlockTemplate = [
|
|||
{
|
||||
textAlign: 'center',
|
||||
level: 2,
|
||||
content: __( 'On sale products', 'woocommerce' ),
|
||||
content: __( 'What about these?', 'woocommerce' ),
|
||||
style: { spacing: { margin: { bottom: '1rem' } } },
|
||||
},
|
||||
];
|
||||
|
|
|
@ -154,6 +154,7 @@ export enum CoreCollectionNames {
|
|||
ON_SALE = 'woocommerce/product-collection/on-sale',
|
||||
TOP_RATED = 'woocommerce/product-collection/top-rated',
|
||||
RELATED = 'woocommerce/product-collection/related',
|
||||
UPSELLS = 'woocommerce/product-collection/upsells',
|
||||
}
|
||||
|
||||
export enum CoreFilterNames {
|
||||
|
|
Loading…
Reference in New Issue