This commit is contained in:
2026-09-15 10:26:34 +08:00
commit ecf36afa56
10493 changed files with 1404888 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
<resource id="Stemcell_Catalog::Catalog" title="Stemcell Catalog" sortOrder="10">
<resource id="Stemcell_Catalog::catalog_index" title="Stemcell Catalog Resource" sortOrder="10"/>
</resource>
</resource>
</resources>
</acl>
</config>
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="controller_action_catalog_product_save_entity_after">
<observer name="multiselect_attribute_save" instance="Stemcell\Catalog\Observer\MultiselectAttributeSave" />
</event>
</config>
@@ -0,0 +1,7 @@
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="Stemcell_Catalog::price" title="价格导入" module="Stemcell_Catalog" sortOrder="10000" resource="Stemcell_Catalog::catalog_index" parent="Magento_Catalog::catalog" action="stemcell_catalog/price/index"/>
<add id="Stemcell_Catalog::stock" title="库存导入" module="Stemcell_Catalog" sortOrder="9999" resource="Stemcell_Catalog::catalog_index" parent="Magento_Catalog::catalog" action="stemcell_catalog/stock/index"/>
</menu>
</config>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="admin">
<route id="stemcell_catalog" frontName="stemcell_catalog">
<module name="Stemcell_Catalog" before="Magento_Backend"/>
</route>
</router>
</config>
@@ -0,0 +1,53 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="catalog" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<group id="product_settings" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
<label>产品设置</label>
<field id="not_for_sell" translate="label comment" type="textarea" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>询价产品SKU</label>
<comment>请输入主产品的sku,每个sku之间用英文逗号(,)隔开</comment>
</field>
<field id="no_price_sku" translate="label comment" type="textarea" sortOrder="11" showInDefault="1" showInWebsite="1" showInStore="1">
<label>无价格产品SKU</label>
<comment>请输入主产品的sku,每个sku之间用英文逗号(,)隔开</comment>
</field>
<field id="sample_pack_category_id" translate="label comment" type="text" sortOrder="11" showInDefault="1" showInWebsite="1" showInStore="1">
<label>试用装分类id</label>
</field>
<field id="show_search_category_id" translate="label comment" type="text" sortOrder="11" showInDefault="1" showInWebsite="1" showInStore="1">
<label>在分类页面内显示搜索的id</label>
<comment>每个id之间用英文逗号(,)隔开</comment>
</field>
</group>
</section>
<section id="stemcell_web" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Web配置</label>
<tab>stemcell</tab>
<resource>Stemcell_Commerce::config</resource>
<group id="wenjuanxing" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>问卷星</label>
<field id="enquiry_url" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>询价跳转URL</label>
<comment>例如:https://www.wjx.cn/vm/Q0SVHCr.aspx,不包含URL中携带的参数</comment>
</field>
</group>
<group id="catalog" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>产品相关配置</label>
<field id="stock_check_group" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>只能查看库存的用户组</label>
<source_model>Magento\Customer\Model\Config\Source\Group</source_model>
</field>
</group>
</section>
</system>
</config>
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<catalog>
<product_settings>
<not_for_sell>100-0946_C,100-1005_C,23000_C,22000_C,100-0650_C,21000_C</not_for_sell>
</product_settings>
</catalog>
<stemcell_web>
<wenjuanxing>
<enquiry_url>https://www.wjx.cn/vm/Q0SVHCr.aspx</enquiry_url>
</wenjuanxing>
</stemcell_web>
</default>
</config>
@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
<policies>
<policy id="script-src">
<values>
<value id="static-stemcell" type="host">static.stemcell.cn</value>
</values>
</policy>
<policy id="style-src">
<values>
<value id="static-stemcell" type="host">static.stemcell.cn</value>
</values>
</policy>
<policy id="img-src">
<values>
<value id="static-stemcell" type="host">static.stemcell.cn</value>
</values>
</policy>
<policy id="font-src">
<values>
<value id="static-stemcell" type="host">static.stemcell.cn</value>
</values>
</policy>
</policies>
</csp_whitelist>
+176
View File
@@ -0,0 +1,176 @@
<?xml version="1.0" ?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="cell_sort_species" resource="default" engine="innodb" comment="细胞分选产品选择工具中的物种">
<column xsi:type="int" name="species_id" padding="10" unsigned="true" nullable="false" identity="true" comment="Entity Id"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="species_id"/>
</constraint>
<column name="species_name" nullable="true" xsi:type="varchar" comment="species_name" length="255"/>
<column name="species_sort" nullable="false" xsi:type="int" comment="species sort" identity="false" unsigned="true"/>
<index referenceId="CELLSORT_species_sort" indexType="btree">
<column name="species_sort"/>
</index>
<index referenceId="SPECIES_SPECIES_NAME" indexType="btree">
<column name="species_name"/>
</index>
</table>
<table name="cell_sort_cell_type" resource="default" engine="innodb" comment="细胞分选产品选择工具中的细胞">
<column xsi:type="int" name="cell_type_id" padding="10" unsigned="true" nullable="false" identity="true" comment="Entity Id"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="cell_type_id"/>
</constraint>
<column name="cell_type_name" nullable="true" xsi:type="varchar" comment="cell_type_name" length="255"/>
<index referenceId="CELLTYPE_CELL_TYPE_NAME" indexType="btree">
<column name="cell_type_name"/>
</index>
<column name="cell_type_sort" nullable="false" xsi:type="int" identity="false" unsigned="true"/>
<index referenceId="CELLSORT_cell_type_sort" indexType="btree">
<column name="cell_type_sort"/>
</index>
</table>
<table name="cell_sort_cell_subtype" resource="default" engine="innodb" comment="细胞分选产品选择工具中的细胞亚型">
<column xsi:type="int" name="cell_subtype_id" padding="10" unsigned="true" nullable="false" identity="true" comment="Entity Id"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="cell_subtype_id"/>
</constraint>
<column name="cell_subtype_name" nullable="false" xsi:type="varchar" comment="cell subtype name" length="255"/>
<index referenceId="CELLSUBTYPE_NAME" indexType="btree">
<column name="cell_subtype_name"/>
</index>
<column name="cell_subtype_sort" nullable="false" xsi:type="int" identity="false" unsigned="true"/>
<index referenceId="CELLSORT_cell_subtype_sort" indexType="btree">
<column name="cell_subtype_sort"/>
</index>
</table>
<table name="cell_sort_tissue" resource="default" engine="innodb" comment="细胞分选产品选择工具中的组织">
<column xsi:type="int" name="tissue_id" padding="10" unsigned="true" nullable="false" identity="true" comment="Entity Id"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="tissue_id"/>
</constraint>
<column name="tissue_name" nullable="true" xsi:type="varchar" comment="tissue_name" length="255"/>
<index referenceId="TISSUE_TISSUE_NAME" indexType="btree">
<column name="tissue_name"/>
</index>
</table>
<table name="cell_sort_product" resource="default" engine="innodb" comment="细胞分选产品选择工具中物种、细胞、细胞亚型、组织与产品的对应关系">
<column xsi:type="int" name="cell_sort_id" padding="10" unsigned="true" nullable="false" identity="true" comment="Entity Id"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="cell_sort_id"/>
</constraint>
<column name="species_id" nullable="false" xsi:type="int" comment="species_id" identity="false" unsigned="true"/>
<index referenceId="CELLSORT_species_id" indexType="btree">
<column name="species_id"/>
</index>
<column name="species_name" nullable="false" xsi:type="text" comment="species_name"/>
<column name="species_sort" nullable="false" xsi:type="int" comment="species sort" identity="false" unsigned="true"/>
<index referenceId="CELLSORT_species_sort" indexType="btree">
<column name="species_sort"/>
</index>
<column name="tissue_id" nullable="false" xsi:type="int" comment="tissue_id" identity="false" unsigned="true"/>
<index referenceId="CELLSORT_TISSUE_ID" indexType="btree">
<column name="tissue_id"/>
</index>
<column name="tissue_name" nullable="false" xsi:type="text" comment="tissue_name"/>
<column name="cell_type_id" nullable="false" xsi:type="int" comment="cell_type_id" identity="false" unsigned="true"/>
<index referenceId="CELLSORT_CELL_TYPE_ID" indexType="btree">
<column name="cell_type_id"/>
</index>
<column name="cell_type_sort" nullable="false" xsi:type="int" identity="false" unsigned="true"/>
<index referenceId="CELLSORT_cell_type_sort" indexType="btree">
<column name="cell_type_sort"/>
</index>
<column name="cell_type_name" nullable="false" xsi:type="varchar" comment="cell_type_name" length="255"/>
<column name="cell_subtype_id" nullable="false" xsi:type="int" identity="false" unsigned="true"/>
<index referenceId="CELLSORT_CELL_SUB_TYPE_ID" indexType="btree">
<column name="cell_subtype_id"/>
</index>
<column name="cell_subtype_name" nullable="false" xsi:type="varchar" length="255"/>
<column name="cell_subtype_sort" nullable="false" xsi:type="int" identity="false" unsigned="true"/>
<index referenceId="CELLSORT_cell_subtype_sort" indexType="btree">
<column name="cell_subtype_sort"/>
</index>
<column name="sku" nullable="false" xsi:type="varchar" comment="product sku" length="255"/>
<index referenceId="CELLSORT_SKU" indexType="btree">
<column name="sku"/>
</index>
<column name="flag" nullable="true" xsi:type="int" comment="flag" identity="false"/>
<constraint xsi:type="unique" referenceId="CELLSORT_species_id_cell_type_id_tissue_id_SKU">
<column name="species_id"/>
<column name="cell_type_id"/>
<column name="cell_subtype_id"/>
<column name="tissue_id"/>
<column name="sku"/>
</constraint>
</table>
<table name="cryopreserve" resource="default" engine="innodb" comment="样本冻存参考小工具">
<column xsi:type="int" name="cryopreserve_id" padding="10" unsigned="true" nullable="false" identity="true" comment="Entity Id"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="cryopreserve_id"/>
</constraint>
<column name="sample" nullable="false" xsi:type="varchar" comment="样本选择" length="255"/>
<index referenceId="CRYOPRESERVE_SAMPLE" indexType="btree">
<column name="sample"/>
</index>
<column name="type" nullable="false" xsi:type="varchar" comment="类别" length="255"/>
<index referenceId="CRYOPRESERVE_TYPE" indexType="btree">
<column name="type"/>
</index>
<column name="cell_type" nullable="false" xsi:type="varchar" comment="细分类别" length="255"/>
<index referenceId="CRYOPRESERVE_CELL_TYPE" indexType="btree">
<column name="cell_type"/>
</index>
<column name="reference_density" nullable="true" xsi:type="varchar" comment="参考密度" length="255"/>
<column name="desc" nullable="true" xsi:type="text" comment="冻存描述"/>
<column name="reference" nullable="true" xsi:type="text" comment="参考"/>
</table>
<table name="experimental_scheme" resource="default" engine="innodb" comment="实验方案">
<column xsi:type="int" name="experimental_scheme_id" padding="10" unsigned="true" nullable="false" identity="true" comment="Entity Id"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="experimental_scheme_id"/>
</constraint>
<column name="collection_name" nullable="false" xsi:type="varchar" comment="合集名称" length="255"/>
<column name="collection_sort" nullable="false" unsigned="true" xsi:type="int" comment="合集排序"/>
<index referenceId="EXPERIMENTALSCHEME_COLLECTION_NAME" indexType="btree">
<column name="collection_name"/>
</index>
<column name="title" nullable="false" xsi:type="varchar" comment="类别" length="255"/>
<column name="image" nullable="false" xsi:type="varchar" comment="image" length="255"/>
<column name="mp_url" nullable="true" xsi:type="varchar" comment="微信小程序URL" length="255"/>
</table>
<table name="product_manual_search" resource="default" comment="产品说明书搜索">
<column xsi:type="int" unsigned="true" name="search_id" identity="true" />
<column xsi:type="varchar" name="name" length="1024" nullable="false" comment="被关联的产品名称" />
<column xsi:type="varchar" name="sku" nullable="false" length="255" comment="被关联的产品sku" />
<column xsi:type="varchar" name="search_sku" nullable="false" length="255" comment="产品说明书sku" />
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="search_id" />
</constraint>
<index referenceId="sku" indexType="btree">
<column name="sku"/>
</index>
<constraint xsi:type="unique" referenceId="unique_sku">
<column name="sku"/>
<column name="search_sku"/>
</constraint>
</table>
</schema>
+63
View File
@@ -0,0 +1,63 @@
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Framework\Console\CommandList">
<arguments>
<argument name="commands" xsi:type="array">
<item name="ImportSearchWordValue" xsi:type="object">Stemcell\Catalog\Console\Command\ImportSearchWordValue</item>
<item name="ProductSimpleExport" xsi:type="object">Stemcell\Catalog\Console\Command\ProductSimpleExport</item>
<item name="CellSortImport" xsi:type="object">Stemcell\Catalog\Console\Command\CellSortImport</item>
<item name="SampleCryopreserveImport" xsi:type="object">Stemcell\Catalog\Console\Command\SampleCryopreserveImport</item>
<item name="ExperimentalSchemeImport" xsi:type="object">Stemcell\Catalog\Console\Command\ExperimentalSchemeImport</item>
<item name="ProductManualSearchImport" xsi:type="object">Stemcell\Catalog\Console\Command\ProductManualSearchImport</item>
<item name="ParentSkuNameImport" xsi:type="object">Stemcell\Catalog\Console\Command\ParentSkuNameImport</item>
<item name="ProtocolsDocumentationPdfUpdate" xsi:type="object">Stemcell\Catalog\Console\Command\ProtocolsDocumentationPdfUpdate</item>
<item name="ProtocolsDocumentationRepair" xsi:type="object">Stemcell\Catalog\Console\Command\ProtocolsDocumentationRepair</item>
<item name="ImportSearchTagsValue" xsi:type="object">Stemcell\Catalog\Console\Command\ImportSearchTagsValue</item>
<item name="ImportSearchTermsValue" xsi:type="object">Stemcell\Catalog\Console\Command\ImportSearchTermsValue</item>
<item name="test" xsi:type="object">Stemcell\Catalog\Console\Command\Test</item>
</argument>
</arguments>
</type>
<preference for="Stemcell\Catalog\Api\SpeciesRepositoryInterface" type="Stemcell\Catalog\Model\SpeciesRepository"/>
<preference for="Stemcell\Catalog\Api\Data\SpeciesInterface" type="Stemcell\Catalog\Model\Species"/>
<preference for="Stemcell\Catalog\Api\Data\SpeciesSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
<preference for="Stemcell\Catalog\Api\CellTypeRepositoryInterface" type="Stemcell\Catalog\Model\CellTypeRepository"/>
<preference for="Stemcell\Catalog\Api\Data\CellTypeInterface" type="Stemcell\Catalog\Model\CellType"/>
<preference for="Stemcell\Catalog\Api\Data\CellTypeSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
<preference for="Stemcell\Catalog\Api\TissueRepositoryInterface" type="Stemcell\Catalog\Model\TissueRepository"/>
<preference for="Stemcell\Catalog\Api\Data\TissueInterface" type="Stemcell\Catalog\Model\Tissue"/>
<preference for="Stemcell\Catalog\Api\Data\TissueSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
<preference for="Stemcell\Catalog\Api\CellSortRepositoryInterface" type="Stemcell\Catalog\Model\CellSortRepository"/>
<preference for="Stemcell\Catalog\Api\Data\CellSortInterface" type="Stemcell\Catalog\Model\CellSort"/>
<preference for="Stemcell\Catalog\Api\Data\CellSortSearchResultsInterface" type="Stemcell\Catalog\Model\Api\Data\CellSortSearchResults"/>
<preference for="Stemcell\Catalog\Api\CryopreserveRepositoryInterface" type="Stemcell\Catalog\Model\CryopreserveRepository"/>
<preference for="Stemcell\Catalog\Api\Data\CryopreserveInterface" type="Stemcell\Catalog\Model\Cryopreserve"/>
<preference for="Stemcell\Catalog\Api\Data\CryopreserveSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
<preference for="Stemcell\Catalog\Api\ExperimentalSchemeRepositoryInterface" type="Stemcell\Catalog\Model\ExperimentalSchemeRepository"/>
<preference for="Stemcell\Catalog\Api\Data\ExperimentalSchemeInterface" type="Stemcell\Catalog\Model\ExperimentalScheme"/>
<preference for="Stemcell\Catalog\Api\Data\ExperimentalSchemeSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
<preference for="Stemcell\Catalog\Api\ProductManualSearchRepositoryInterface" type="Stemcell\Catalog\Model\ProductManualSearchRepository"/>
<preference for="Stemcell\Catalog\Api\Data\ProductManualSearchInterface" type="Stemcell\Catalog\Model\ProductManualSearch"/>
<preference for="Stemcell\Catalog\Api\Data\ProductManualSearchSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
<type name="Amasty\ElasticSearch\Model\Search\GetRequestQuery">
<plugin name="stemcell_category_option_self_excluding_aggregation_request"
type="Stemcell\Catalog\Plugin\Amasty\ElasticSearch\AddCategoryOptionSelfExcludingAggregation"/>
</type>
<type name="Amasty\ElasticSearch\Model\Search\GetResponse\GetAggregations">
<plugin name="stemcell_category_option_self_excluding_aggregation_response"
type="Stemcell\Catalog\Plugin\Amasty\ElasticSearch\UseCategoryOptionSelfExcludingAggregation"/>
</type>
<preference for="Magento\Catalog\Model\Product\Gallery\Processor" type="Stemcell\Catalog\Model\Product\Gallery\Processor" />
<preference for="Magento\Theme\Block\Html\Topmenu" type="Stemcell\Catalog\Block\Theme\Html\Topmenu" />
<preference for="Magento\Catalog\Helper\Product\View" type="Stemcell\Catalog\Helper\Product\View"/>
<preference for="Magento\Catalog\Pricing\Render\FinalPriceBox" type="Stemcell\Catalog\Block\Pricing\Render\FinalPriceBox"/>
</config>
+23
View File
@@ -0,0 +1,23 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="catalog_block_product_list_collection">
<observer name="product_sheet_search" instance="Stemcell\Catalog\Observer\ProductSheetSearch" />
</event>
<event name="catalog_product_save_after">
<observer name="product_manual_search_sync"
instance="Stemcell\Catalog\Observer\ProductSheetSearchSync" />
</event>
<event name="controller_front_send_response_before">
<observer name="csp_render" instance="Magento\Csp\Observer\Render" disabled="true" />
</event>
<event name="entity_manager_save_after">
<observer name="product_manual_search_sync" instance="Stemcell\Catalog\Observer\ProductManualSearchSync" />
</event>
<event name="catalog_controller_category_init_after">
<observer name="sample-pack-access" instance="Stemcell\Catalog\Observer\CategoryControllerAccess" />
</event>
</config>
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
<extension_attributes for="Magento\Catalog\Api\Data\ProductInterface">
<attribute code="search_words" type="string" />
<attribute code="childrenImages" type="string" />
<attribute code="parents" type="string" />
<attribute code="childrenShortDescription" type="string" />
<attribute code="cell_flag" type="boolean" />
</extension_attributes>
<extension_attributes for="Magento\ConfigurableProduct\Api\Data\OptionValueInterface">
<attribute code="label" type="string" />
<attribute code="products" type="int[]" />
</extension_attributes>
</config>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Stemcell_Catalog">
<sequence>
<module name="Magento_Catalog"/>
<module name="Amasty_ElasticSearch"/>
</sequence>
</module>
</config>
+87
View File
@@ -0,0 +1,87 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
<route url="/V1/catalog/product" method="GET">
<service class="Stemcell\Catalog\Model\Api\Product" method="getList"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
<route url="/V1/catalog/product-with-filter/:categoryId" method="GET">
<service class="Stemcell\Catalog\Model\Api\Product" method="categoryProduct"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
<route url="/V1/product/:sku" method="GET">
<service class="Stemcell\Catalog\Model\Api\Product" method="getBySku"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
<route url="/V2/search" method="GET">
<service class="Stemcell\Catalog\Model\Api\Product" method="search"/>
<resources>
<resource ref="anonymous" />
</resources>
</route>
<route url="/V1/cell-sort-tool" method="GET">
<service class="Stemcell\Catalog\Model\Api\CellSortTool" method="getProducts"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
<route url="/V1/product-manual" method="GET">
<service class="Stemcell\Catalog\Model\Api\Product" method="productManual"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
<route url="/V1/operation-video" method="GET">
<service class="Stemcell\Catalog\Model\Api\Product" method="videos"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
<route url="/V1/sample-cryopreserve" method="GET">
<service class="Stemcell\Catalog\Model\Api\SampleCryopreserve" method="execute"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
<route url="/V1/experimental-scheme" method="GET">
<service class="Stemcell\Catalog\Model\Api\ExperimentalScheme" method="execute"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
<route url="/V1/cell-separation" method="GET">
<service class="Stemcell\Catalog\Model\Api\CellSeparation" method="execute"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
<route url="/V1/tesr-product-finder" method="GET">
<service class="Stemcell\Catalog\Model\Api\TesrProductFinder" method="execute"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>
</routes>
@@ -0,0 +1,12 @@
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Catalog\Model\Layer\FilterList">
<arguments>
<argument name="filterableAttributes" xsi:type="object">Magento\Catalog\Model\Layer\Category\FilterableAttributeList</argument>
</arguments>
</type>
<preference for="Stemcell\Catalog\Api\Data\ProductListWithFilterInterface" type="Stemcell\Catalog\Model\Api\Data\ProductListWithFilter" />
</config>