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