Skip to content

Commit

Permalink
Merge pull request #102 from EmicoEcommerce/feat-builder-template
Browse files Browse the repository at this point in the history
feat-builder-template
  • Loading branch information
ah-net authored Jan 16, 2025
2 parents ce9391a + 4f904f4 commit 3ac1613
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
13 changes: 13 additions & 0 deletions src/Api/Data/LandingPageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ interface LandingPageInterface extends ExtensibleDataInterface
public const META_KEYWORDS = 'meta_keywords';
public const TWEAKWISE_FILTER_TEMPLATE = 'tweakwise_filter_template';
public const TWEAKWISE_SORT_TEMPLATE = 'tweakwise_sort_template';
public const TWEAKWISE_BUILDER_TEMPLATE = 'tweakwise_builder_template';
public const HEADER_IMAGE = 'header_image';
public const CATEGORY_ID = 'category_id';
public const PAGE_ID = 'page_id';
Expand Down Expand Up @@ -135,6 +136,12 @@ public function getTweakwiseFilterTemplate();
*/
public function getTweakwiseSortTemplate();

/**
* Get tweakwise_builder_template
* @return int|null
*/
public function getTweakwiseBuilderTemplate(): ?int;

/**
* Get active stores IDs
* @return int[]
Expand Down Expand Up @@ -279,6 +286,12 @@ public function setTweakwiseFilterTemplate(?string $tweakwiseFilterTemplate): La
*/
public function setTweakwiseSortTemplate(?string $tweakwiseSortTemplate): LandingPageInterface;

/**
* @param string|null $tweakwiseBuilderTemplate
* @return LandingPageInterface
*/
public function setTweakwiseBuilderTemplate(?string $tweakwiseBuilderTemplate): LandingPageInterface;

/**
* @param array|null $storeIds
* @return LandingPageInterface
Expand Down
19 changes: 19 additions & 0 deletions src/Model/LandingPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,25 @@ public function setTweakwiseSortTemplate(?string $tweakwiseSortTemplate): Landin
return $this->setData(self::TWEAKWISE_SORT_TEMPLATE, $tweakwiseSortTemplate);
}

/**
* Get tweakwise_builder_template
* @return string|null
*/
public function getTweakwiseBuilderTemplate(): ?string
{
return $this->getData(self::TWEAKWISE_BUILDER_TEMPLATE);
}

/**
* Set tweakwise_builder_template
* @param string $tweakwiseBuilderTemplate
* @return \Emico\AttributeLanding\Api\Data\LandingPageInterface
*/
public function setTweakwiseBuilderTemplate(?string $tweakwiseBuilderTemplate): LandingPageInterface
{
return $this->setData(self::TWEAKWISE_BUILDER_TEMPLATE, $tweakwiseBuilderTemplate);
}

/**
* Get active stores IDs
* @return int[]
Expand Down
3 changes: 2 additions & 1 deletion src/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<column xsi:type="varchar" name="canonical_url" nullable="true" comment="Canonical URL"/>
<column xsi:type="boolean" name="hide_selected_filters" nullable="true" default="1" comment="Whether to hide selected filters"/>
<column xsi:type="int" name="tweakwise_sort_template" nullable="true" comment="Tweakwise sort template"/>
<column xsi:type="int" name="tweakwise_builder_template" nullable="true" comment="Tweakwise builder template"/>
<constraint xsi:type="primary" referenceId="PRIMARY"><column name="page_id"/></constraint>
<index referenceId="EMICO_ATTRIBUTELANDING_PAGE_URL_PATH" indexType="btree"><column name="url_path"/></index>
<constraint xsi:type="foreign" referenceId="EMICO_ATTRLANDING_PAGE_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID"
Expand All @@ -50,4 +51,4 @@
<constraint xsi:type="primary" referenceId="PRIMARY"><column name="page_id"/></constraint>
<index referenceId="EMICO_ATTRIBUTELANDING_PAGE_URL_PATH" indexType="btree"><column name="url_path"/></index>
</table>
</schema>
</schema>
4 changes: 2 additions & 2 deletions src/etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?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="Emico_AttributeLanding" setup_version="1.0.1">
<module name="Emico_AttributeLanding" setup_version="1.0.2">
<sequence>
<module name="Magento_Catalog"/>
<module name="Magento_LayeredNavigation"/>
</sequence>
</module>
</config>
</config>

0 comments on commit 3ac1613

Please sign in to comment.