showPopupOfProducts(){

        return (
            <ResourcePicker
                products
                allowMultiple
                open={this.state.openpopup}
                onSelection={(resources) => {
                    console.log('Selected products: ', resources.products);
                    if(resources && resources.products){
                        this.setState({listofproducts:resources.products});
                        this.props.productManageSave(resources.products);
                    }
                    this.setState({openpopup: false});
                }}
                onCancel={() => this.setState({openpopup: false})}
                />
        );
      }
/**
       * To add product from Shopify Catalog.
       * @deprecated
       */
To add product from Shopify Catalog.
@deprecated
To add product from Shopify Catalog . @deprecated
showPopupOfProducts(){
        return (
            <ResourcePicker
                products
                allowMultiple
                open={this.state.openpopup}
                onSelection={(resources) => {
                    console.log('Selected products: ', resources.products);
                    if(resources && resources.products){
                        this.setState({listofproducts:resources.products});
                        this.props.productManageSave(resources.products);
                    }
                    this.setState({openpopup: false});
                }}
                onCancel={() => this.setState({openpopup: false})}
                />
        );
      }
showPopupOfProducts ( ) { return ( < ResourcePicker products allowMultiple open = { this . state . openpopup } onSelection = { ( resources ) => { console . log ( 'Selected products: ' , resources . products ) ; if ( resources && resources . products ) { this . setState ( { listofproducts : resources . products } ) ; this . props . productManageSave ( resources . products ) ; } this . setState ( { openpopup : false } ) ; } } onCancel = { ( ) => this . setState ( { openpopup : false } ) } / > ) ; }
To add product from Shopify Catalog.
To add product from Shopify Catalog .